Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Swing / AWT / SWT


problem with focus listener  

Hi, I registered focus lisener on JTextField. The listener getting called 2 times during 'TAB' out. Why does Focus Lost event... Continue Reading
Views : 75
Tuesday 23rd of October 2012

SWT migration from Swing  

We're running into issues in work where Swing is just too limiting, especially for an Eclipse plugin we're developing. However, we have a fairly large investment in our Swing GUI development. We're looking at the potential cost/benefit tradeoff of scrapping our... Continue Reading
Views : 55
Tuesday 23rd of October 2012

problem with JTextField  

hi, pls someone how do u retrieve information from ur textfield once it has been entered by a user into the textfield and u do not want to use a button? how do you go about writting an actionlistener for a JTextFiled? thx in advance ... Continue Reading
Views : 70
Tuesday 23rd of October 2012

Help! Problem updating JProgressBar.  

Can someone help me here. When I click a button (which then does a number of things including calling the progressBar.setValue( int ) every now and then), the whole thing basically hangs until it's done. Then the progress bar shows 100%. HOWEVER, if I include a... Continue Reading
Views : 56
Tuesday 23rd of October 2012

JEditorPane and JTextArea  

I have a splitpane. On the left side of the splitpane I have a panel which has a textarea. On the right side of the splitpane I have another panel with a JEditorpane. The contents of the JEditor pane is an html file that has hyperlinks. The... Continue Reading
Views : 55
Tuesday 23rd of October 2012

Jtable boolean checkboxes  

I have a column in a Jtable which is boolen. I have a verify button that take you to a new screen I want to display just the rows that have a check in the box (boolean = true). My jtable data is in a vector. Thanks for any help! Continue Reading
Views : 80
Tuesday 23rd of October 2012

Why can't I get tooltip to show up when text in JTextField certain length  

I want to make a JToolTip show up (and formatted a certain way) when the text in a Continue Reading
Views : 70
Tuesday 23rd of October 2012

jtable and the scrollbar  

Has anyone ever programitcally changed their horizontal scrollbar? I'm using a JTable in a scrollPane and I need to take three... Continue Reading
Views : 106
Tuesday 23rd of October 2012

Mouse Listener Problem  

Hi, I have JInternalFrame, within that I have Scrollable Continue Reading
Views : 46
Tuesday 23rd of October 2012

SWT interface and database  

hi, I have designed gui interface with just two text fields name and bank name and a button. I need to enter this in MySql database so how can i connect it? Any clue or site where it is taught. I googled a lot but what... Continue Reading
Views : 53
Tuesday 23rd of October 2012

Dynamically redrawing columns in TableViewer  

Hi, Does anyone know how to reset column names, properties, etc dynamically. For instance, my application allows the user to add rows as well as columns. When a new row is added to the input, it appears in the table viewer upon refresh(). But what do... Continue Reading
Views : 75
Tuesday 23rd of October 2012

Best Way to present XML in GUI app  

Hi All, I have a XML file with interations of , e.g. ... ... ...and so on Each operation can... Continue Reading
Views : 51
Tuesday 23rd of October 2012

Mediaplayer framework and avi files  

I've got a large number of avi videos that i want to display using the java media framework. In the documentation i find that the framework supports avi files. However, it seems... Continue Reading
Views : 51
Tuesday 23rd of October 2012

Centering  

Hi everyone, I am trying to center a page number on the bottom center on a printed page but i am having some trouble doing it. I am using the windows default page dialog where the user can select the desired page... Continue Reading
Views : 61
Tuesday 23rd of October 2012

Zoom in TextPane  

hi all, I m back. I m creating an RTF Text Editor, i m just near to finish it. I have used JTextPane to load the file contents, but... Continue Reading
Views : 61
Tuesday 23rd of October 2012

how to create hyperlink from java  

dear friends i need to create an hyperlink in my Swing page. on clicking the hyperlink i have to link to file specified. is it possible from java... Continue Reading
Views : 90
Tuesday 23rd of October 2012

JMenuBar  

Can Someone please help me, i've created a menubar with menuitems in a JFrame but i dont no how to do it in a Continue Reading
Views : 54
Tuesday 23rd of October 2012

insert document content into Text Area  

Hi everyone, in my program i'm adding a text field and next to it a button called "browse" well, i want this button to let me chose the path of a document so that it'll appear in the text field, and under the text field and the button I want to browse the... Continue Reading
Views : 62
Tuesday 23rd of October 2012

Using TableCursor & ICellModifier together  

Hi all, Yet another stumbling block encountered while implementing an Excel-like function using JFace & SWT:-( I have an implementation of ICellModifier, called MyCellModifier (along with MyLabelProvider & MyContentProvider). That setup... Continue Reading
Views : 81
Tuesday 23rd of October 2012

Which layout manager  

If I have a panel with Jlabels and other components on 2 separate lines what is the best layout manager to use to get them all lined up correctly? Thanks. Continue Reading
Views : 57
Tuesday 23rd of October 2012

JTextPane  

Hi everyone, I am currently trying to serialize parts of a jtextpane using the java Continue Reading
Views : 46
Tuesday 23rd of October 2012

help! I cant get this to paint  

I need help getting this circle to appear when my circle button is pressed... I need the class headers to remain the same (unless adding extends or implements) because this is actually a piece of an assignment. I've been trying for hours and hours, but I... Continue Reading
Views : 89
Tuesday 23rd of October 2012

Add ActionListener to JButton  

Hi, i have a JPanel with Continue Reading
Views : 51
Tuesday 23rd of October 2012

Ghosting of a JTable display  

Hi, I was wondering if anyone can tell me how this can happen: It does not happen all the time and I can not figure out how to make it happen on... Continue Reading
Views : 78
Tuesday 23rd of October 2012

Do I need to refresh  

I have some code that has several panels one panel holds a button that you press to play a sound file. Another panel holds a tree. When you click on something in the tree I am having it change the value of "filename" which is defined at the top of the class. ... Continue Reading
Views : 50
Tuesday 23rd of October 2012

How to set focus in a particular component  

How to set focus in a particular component while openings the screen. request focus is helpless for me. I am using some of the screens jpanel and some of them are Continue Reading
Views : 49
Tuesday 23rd of October 2012

Check this out.  

I stumbled upon a new blog with some pretty cool GUI effects done in Swing. http://jroller.com/page/gfx Check it out. Continue Reading
Views : 71
Tuesday 23rd of October 2012

Canvas resizing  

I would like to know how to resize a canvas which has been added my applet. And also is it possible to add a canvas to a Continue Reading
Views : 104
Tuesday 23rd of October 2012

window resizing  

I am creating a GUI application using Java and Swing. The GUI portion of the application consists of two panels, one above the other. The frame is given a border layout so that the top panel can be placed in the NORTH section and the bottom panel can be placed in... Continue Reading
Views : 80
Tuesday 23rd of October 2012

Tree Serialization How to  

For my application I am using JTree to hold hierarchy of information. For each of the node I have stored the userobject as hashtable. ... Continue Reading
Views : 50
Tuesday 23rd of October 2012