| Thread | Last Post | Replies |
|
| How to change color of text in disabled JTree? | 15 Feb 2005 12:21 GMT | 5 |
When using JTree.setEnabled(false); all entries turn into the standard metal disabled grey. Is there a way to change this color? I tried my own item renderer and setting the foreground color of the item
|
| copy from Java Console | 15 Feb 2005 10:18 GMT | 1 |
Using the JRE 1.3, and the "copy" button from the Java Console, on Windows, the copied text goes into the system clipboard. Afterwards it can be pasted anywhere. Using JRE 1.4.1 the copied text goes into a file like
|
| JComboBox and ActionEvent | 15 Feb 2005 10:17 GMT | 2 |
I'm using an editable JComboBox to let the user select a word, which is added to a list when the user selects. The JComboBox sends an ActionEvent when 1) the user edits and presses ENTER, 2) The user selects from the dropdown using the mouse or clicking ENTER and 3) When
|
| No repaints / frozen GUI | 15 Feb 2005 00:39 GMT | 3 |
No, I'm *not* doing a lengthy task/blocking operation on the EDT. But my Swing GUI still stops repainting. This is part of a pretty big Swing fat client app that's still being developed on Java 1.3 because it needed to run on OS/2 boxes. Now we're
|
| JLabel overlapping | 14 Feb 2005 20:15 GMT | 2 |
i would like to add JLabels to a custom JPanel. But even with the "null layout", JLabel are not drawn at all. I i remove the line which sets the layout to null, all the JLabels are displayed in "grid" after a resize of the app. Code to add the JLabel: System.err ...
|
| Undo | 14 Feb 2005 14:50 GMT | 1 |
I am trying to add an undo listener to a jtable but could not get it to work. Does anyone know how to add a undo function to a jtable assuming the default cell editor component is a jtextfield? A small code sample would be helpful
|
| Getting a reference to an object instantiated by doClick() | 14 Feb 2005 14:19 GMT | 4 |
How do I select a particular tab of a tabbed pane in a dialog that I display via doClick()? My main GUI gives my user the option of creating a new Foo, which has a variety of attributes. I need my user to confirm the values of all of those
|
| Delaying repainting | 14 Feb 2005 10:36 GMT | 12 |
I have a routine that makes a bunch of changes to a JTree, and it takes a few seconds. The effect is rather distracting, with the tree dancing about. Is there any way to turn off the repainting until the changes are all done, and then repaint in one shot?
|
| Changing a Panel at run time. | 14 Feb 2005 06:17 GMT | 3 |
Not sure how to do this. Simple example would be say I have a JTabbedPane with a JPanel object on it. How do I drop\replace this JPanel to load a newer modified one while running.?
|
| Does anyone actually do UI storyboarding? | 14 Feb 2005 02:47 GMT | 5 |
I hear a lot of talk about UI storyboarding (especially around interview time), but after 10 years and 7 companies, small to large, I've never seen any hint of a UI storyboard. Is this something that academics thought should be part of the process, or
|
| Finding reference to specific component | 13 Feb 2005 02:22 GMT | 1 |
I am trying to determine the best way to find a reference to a specific component on a GUI. I have a JFrame called MyFrame. MyFrame invokes a JDialog called MyDialog and passes a reference to itself to MyDialog so that MyDialog can find out
|
| Change foreground color of an editable JcomboBox | 12 Feb 2005 17:19 GMT | 2 |
You can change the foreground text color of a non editable Jcombo box with:- myCombo.setForeground(Color.aColor); or globally in with:-
|
| How to include JFrame program in HTML document. | 12 Feb 2005 15:05 GMT | 4 |
Hi Java Professionals, Could anyone tell me how to include a JFrame program in an HTML document. I know that an applet can be added to an HTML document by using <APPLET CODE="xyz.class"> tag, but I don't have an idea of how to include a JFrame
|
| JMenu not drawing correctly | 12 Feb 2005 14:06 GMT | 9 |
I'm having a bit of trouble with JMenu. Depending on certain actions I will use the JMenuItem.setEnabled() method to enable/disable certain JMenuItems. However, at times the menu will not be drawn correctly when I click on it.
|
| How to request focus for DefaultTableCellRenderer? | 12 Feb 2005 04:03 GMT | 2 |
How can I request the focus for a specific cell of a table? This code does not work: ((DefaultTableCellRenderer)table.getCellRenderer(row,column)).requestFocusInWindow() (returns false)
|