| Thread | Last Post | Replies |
|
| GridBagLayout problems | 29 Sep 2006 08:34 GMT | 15 |
Can anyone suggest fixes for two problems, in the example app below, when I resize the window vertically smaller: 1) The textfields suddenly resize to minimal width. 2) The table doesn't get scrollbars in its scrollpane
|
| TreePath | 28 Sep 2006 20:53 GMT | 3 |
It seems to me that if your tree contains TreeNodes, it should be trivial to construct a TreePath for a TreeNode by just calling ".getParent()" on each node in turn until you reach the root, pushing each node onto the top of a stack. So it seems almost an oversight to me that ...
|
| Can JOptionPane use a MaskFormatter for data input | 28 Sep 2006 15:49 GMT | 6 |
I would like to have a dialog box that prompts the user for an IP address. Is there a way to use JOptionPane, but have the data entry text box restrict the input to be ###.###.###.###? Thanks
|
| Java to UML | 28 Sep 2006 07:35 GMT | 3 |
I have a Java program and I want to see the relation between the classes in a visual manner (e.g. UML). Is there any tool , preferable free, for converting a java package into some graphical representation? Thanks a lot.
|
| scrollRectToVisible generating NullPointerException intermittently | 27 Sep 2006 22:22 GMT | 2 |
This is a VERY intermittent problem. I'm testing scrolling around in a JTable/JScrollPane. I use 2 for loops to scroll between the first 20 rows in the table with 200 repetitions. There is no pattern for the Exception generation. Most of the time it works, and sometimes it doesn't.
|
| Return values from an ActionListener? | 27 Sep 2006 20:57 GMT | 1 |
I'm still relatively new to Java/Swing programming and have a pretty simple question about using ActionListeners. I have a big array of stuff, and I want to send that array to a method to do some editing of the array but using a button ActionListener.
|
| Noddy layout question! | 27 Sep 2006 16:55 GMT | 1 |
Apologies for the noddy question, I've been away from using Swing for over a year, and I just can't work out how to do this! I am using a card layout, which changes based on a selection elsewhere in the GUI. The card components are composed of varying numbers of
|
| JTree display update issue with new nodes | 27 Sep 2006 16:39 GMT | 7 |
I have a problem with the following code. The code is supposed to create a new node and add it as a child to another node in a JTree. This is indeed happening but the tree is only updating the display and selecting the new node the first time a node is added. For each ...
|
| focusLost vs. actionPerformed | 27 Sep 2006 11:31 GMT | 6 |
I have a number of JTextField components that allow user entry. I have set up both an ActionListener and a FocusListener so that, for either actionPerformed or focusLost, the value is examined for validity. If it is invalid, a message dialog is put up
|
| Layouts. Which to use, and when/ | 27 Sep 2006 07:35 GMT | 1 |
Hallo all. I just started to write myself an addressbook, but there seem to be so many layouts. Is there a listing available on - the various layouts
|
| ComboBox width before setVisible?? | 26 Sep 2006 18:51 GMT | 3 |
I'm using a comboBox and need to know his size before i set the frame visible, i did more or less this code: JFrame frame = new Frame(); ............
|
| panel size vs. frame size | 26 Sep 2006 12:14 GMT | 9 |
i'm writing a gui that has a main panel and includes 3 subpanels.. and has a Menu Bar.. i'm setting size of Frame with GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds()
|
| BoxLayout, strunt, rigidarea | 26 Sep 2006 09:56 GMT | 1 |
I've got a problem. Please look at the code below. When I use rigidarea to spearate buttons, no matter how large is the frame, buttons are separated properly. But when I use vertical and horizontal struts vertical space between buttons is changing along with the frame size. What is ...
|
| Changing JFrame components at runtime | 25 Sep 2006 22:59 GMT | 12 |
In my JFrame I have a JPanel's extension class with a 2-dimensional array of 3X3 JLabels. This array is, of course, created in initComponents() of MyPanel class. I've put a menu item in which user can change the dimension of JLabels'
|
| JAVA TEXT AREA GUI problem | 25 Sep 2006 14:33 GMT | 4 |
Is anybody know how to create a JAVA TEXT AREA with multiple color text in each line? (the setForegound seems can be used for single color for the whole text.)
|