| Thread | Last Post | Replies |
|
| BoxLayout making component too big | 17 May 2005 00:13 GMT | 9 |
if i put some component in a FlowLayout, they have a "clever" size. But i need to have them verticaly, so i use a BoxLayout(Y_AXIS). But the layout make the components big to fill all the panel space (in fact the 2 radio button are ok, but the combo box has a big height). How can ...
|
| Getting KeyEvent from JLabel | 16 May 2005 22:46 GMT | 2 |
how can I subclass the JLabel to have it produce KeyEvents? I have an image being displayed using a JLabel and would like to receive KeyEvents when it is in focus. Or do I need to create a new class for this?
|
| JFormattedTextField editing problem | 16 May 2005 15:44 GMT | 1 |
Sorry for the newbie question. I have a JFormattedTextField, created like this: ftf = new JFormattedTextField(new Double(value)); When I try to edit it's value, all numbers after the comma disappear.
|
| TreeTable in Swing | 15 May 2005 19:38 GMT | 1 |
I have a TreeTable to Code in Swing. The design is as follows Column1 Column2 Column3 Column4 - Node1 This entire space is a Merged Row
|
| Which book is better, Core Java or Thinking in Java? | 15 May 2005 15:07 GMT | 13 |
Or is there something better for someone who is a beginner to Java? Is one of these two books better for learning Swing? Overall which is better for all the important topics? I've been using the downloaded version of Thinking in Java as a reference while reading
|
| How to programmatically select a list in JList? | 15 May 2005 03:12 GMT | 3 |
I am using JList component and I add a vector of data by calling list.setDataList( vec ); Then I fire up the dialog with the JList component in it, I would like to hard-code it to highlight the very first data on the list, how can I
|
| JComboBox nuisance | 14 May 2005 17:39 GMT | 4 |
Thanks, I create a JComboBox and setEditable(true) and set initial item to zero (which looks like a textfield). The problem? 1st time when keys are typed and <enter> key is pressed, it fires
|
| Animated GIF Freezes in the first cycle | 14 May 2005 16:52 GMT | 7 |
I added an animated GIF to a JLabel's Icon, but the animation doesn't complete a full cycle. It gets through half of the frames and then freezes in that position. Can someone tell me what I'm doing wrong or point me to an example on how to add an animated GIF to either a JLabel or ...
|
| Automatically scroll to selected node in JTree | 14 May 2005 11:35 GMT | 2 |
This is already implemented: I have a JTree in a JScrollPane. I have a JCombobox, containing all the names of the nodes of the JTree. When I select a node-name in the comboBox, the corresponding node in the
|
| How can I stop text field from consuming irrelevant characters? | 13 May 2005 20:00 GMT | 9 |
I have a JFormattedTextField formatted with a NumberFormatter. I have set up another component using getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW). I want that component to be able to receive and
|
| Color for underlining in JTextPane | 13 May 2005 14:17 GMT | 1 |
I use this code to underline text in a JTextPane: SimpleAttributeSet attributes = new SimpleAttributeSet(); StyleConstants.setUnderline(attributes, true); StyledDocument document = getStyledDocument();
|
| JSplitPane not working as expected | 12 May 2005 21:10 GMT | 2 |
I'm trying to do something that sounds like it should be simple. I want to create a vertical JSplitPane where the bottom area has an original size that is known, and the top has all the rest of the space. I was hoping to not have to mess with setDividerLocation() or
|
| Icon for JDialog. | 12 May 2005 20:35 GMT | 4 |
Dear Experts, We have a complicated GUI system which is using a JDialog as a logon window without any JFrame created. As a result we have no icon at the task bar at the bottom of the Windows desktop.
|
| AWT Abstracts: Visibility and Focus | 12 May 2005 16:20 GMT | 2 |
I have been using Visibility and Focus in a couple of projects now (both Java and Javascript) but I am still unsure of exactly what either of these events do; the code I've used so far has been kiddied from older classmates who don't even know what exactly it does! Any answers
|
| borderless tablecell | 12 May 2005 15:34 GMT | 1 |
I have a JTable object. I do not want a borber round my selected table cell. How do I make a borderless table cell. I think I need a CellRenderer or something like that. Where to find an example ? thanks a lot
|