| Thread | Last Post | Replies |
|
| Swing actions in separate code files - how | 17 Sep 2004 19:59 GMT | 7 |
Should the Swing Actions be always inner classes? What if I want them to implement separate code files, because of I dont want a huge single one code file...? How do I get then the access to the GUI application variables,
|
| How to put JLabels in an array? | 17 Sep 2004 18:58 GMT | 2 |
I'm trying to put 10 JLabels in an array, but I always receive an error on following code (defining the first element of the array): RowTlxImp[0]= new JLabel(lblTlxImp1); symbol : constructor JLabel (javax.swing.JLabel)
|
| Special button with red background color when pressed | 17 Sep 2004 17:09 GMT | 10 |
I trying to put a special button in a swing application, which must have a red background when pressed. I tried: UIManager.put("Button.select", Color.red);
|
| JAI problem. | 17 Sep 2004 14:45 GMT | 14 |
Following sample code works fine with windows and fails in UNIX. it gives me the error WARNING: Could not create system preferences directory. System preferences are unusable.
|
| Avoiding right-click selection in JTree. | 17 Sep 2004 13:54 GMT | 2 |
I have a JTree with nodes that have popup menus defined. If I right-click on a node, the node is selected and the popup menu is shown. However, if the nodes don't have popup menus defined, right-click does not select the nodes.
|
| JTable, AbstractTableModel.fireTableRowsInserted problem: selection extending | 17 Sep 2004 06:07 GMT | 5 |
Here's a program which shows a few rows in a JTable, and adds another to the top when you push a button. If you select the top row, and then push the button, the new row is added to the selection. I've tried it on 1.4.2 and 1.5 on Linux.
|
| Problem with resize of JPanel | 17 Sep 2004 05:40 GMT | 6 |
Yes... I always here :-P I have a JFrame with a BorderLayout. In center there' s a JPanel with a GridLayout. In each cell I have a Jbutton.
|
| Puzzles with printed output | 17 Sep 2004 02:14 GMT | 9 |
I'm working with printing from a subclass of JTextPane. The printing has uncovered some aspects of Swing behavior that are puzzling, and in at least one respect, plain wrong. I'm seeking information about what is happening and how I can make my output print correctly.
|
| Modal InternalFrames, has been a bug since 1.2 release.. is it fixed in 1.5? | 16 Sep 2004 20:51 GMT | 5 |
This bug has been around for a long time link http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4139692 Is this fixed in 1.5? Is there an ELEGANT workaround or solution? If there is neither than why is this bug listed as closed?
|
| Best Way to show new window from an existing JFrame | 16 Sep 2004 18:02 GMT | 2 |
I am very new to Java. I have a main application which is a JFrame with a bunch of components on it. When the user clicks on a button, I want to display another window (which also has a bunch of components on it). From this sub-window, the user will make some changes that need ...
|
| Add rows to custom AbstractTableModel | 16 Sep 2004 17:26 GMT | 2 |
Just learning and could use a hand...getting an error when trying to add a row to a table..... "The method addRow(Object[]) from the type MyTableModel is not static" Here are some snippets:
|
| How to hide the command prompt? | 16 Sep 2004 13:03 GMT | 8 |
I want to hide the command prompt. I try to have a bat file with the code " javaw -cp classpath applicationame ". I found that the command prompt still appear but the java console disppear. So, how can I also hide the command prompt using bat file?
|
| JTable, edit a cell, but changed value not seen | 16 Sep 2004 06:47 GMT | 2 |
I have a problem with using JTable, editing a cell in a row and then expecting that edited cell data to automatically show up via tblDisplay.getValueAt(row, i); Just to be clear, tblDisplay is of class JTable.
|
| JOptionPane : customize the Yes/No buttons | 16 Sep 2004 06:37 GMT | 7 |
I want to have custom buttons on my JOptionPane.showOptionDialog window. I know it is possible to change the text on the button, but I want to replace the Yes button (for example) by a customize button, with a new color or an icon.
|
| how to get component associated with an Action | 16 Sep 2004 03:46 GMT | 4 |
Hi all, I do not see from the Action object how to retrieve the component that was associated with a given action for instance
|