| Thread | Last Post | Replies |
|
| Serializing a JTable | 11 Sep 2005 02:10 GMT | 1 |
First, I want to thank Michael Dunn for his answer to my last question! A user can reorder the columns of a JTable; and he can change their width. Now, I am about to write code to serialize these
|
| How to layout OK and Cancel buttons | 10 Sep 2005 17:47 GMT | 6 |
is there a satndard way to layout the buttons "OK" and "Cancel" for java programs? I'm asking because java already ask to use some defined icons if possible. I generally put "OK" to the left and "Cancel" to the right. Is this "the" way? TIA
|
| howto update JTree visually | 10 Sep 2005 12:16 GMT | 4 |
I'm trying to update a JTree after it's already been created, so after a few operations, I add more nodes to my root node and would like to update it in my scrollpane. My problem is, when I add nodes to it, I don't know how to make it visually update.
|
| a simple FONT question... | 10 Sep 2005 12:12 GMT | 4 |
this is syntax for constructor: Font(String name, int style, int size) so how do you do BOLD AND ITALIC? obviously this gives me an error.. label.setFont(new Font("Arial", Font.BOLD, Font.ITALIC, 22));
|
| Best Practices for GUI updating | 10 Sep 2005 12:11 GMT | 2 |
All, I recall some issue, at some point in my java programming career, where subclassing a gui class (e.g. JFrame) and over-riding paint() didn't work as intended, but over-riding paintComponent() did (or vice versa).
|
| How to "save" a layout? | 10 Sep 2005 12:05 GMT | 9 |
The layout-manager helps you to put all the components where you want, and give them the initial size. But users could drag the frame of the components freely, so how could I "save" the drag-result? I mean, when
|
| JSpinner arrow buttons are irresponsive | 09 Sep 2005 21:12 GMT | 8 |
Below, I believe, is a quite standard JSpinner creation with a date model. However, spinner's arrow buttons are irresponsive and the display of the date doesn't spin. What could be the cause and the soultion for the problem?
|
| JTable add row conditional... | 09 Sep 2005 19:54 GMT | 4 |
Im trying to have a new row added to a JTable when the previous row has been filled in... Ive tried to override "public void tableChanged(TableModelEvent e)"
|
| How to scroll to element of list? | 09 Sep 2005 04:31 GMT | 4 |
I'm playing around with a JList and would like the scroll window to move to a specific index at start-up. I thought that ensureIndexIsVisible might do the trick, but it seems not to. It happens for example when I show 5 elements, the number of elements is 11 and the selected ...
|
| Disabling scrolling of a JTextPane when document is updated | 08 Sep 2005 21:40 GMT | 2 |
I have the following problem, that I try to resolve unsuccessfully for some time: I have a JTextPane in a JScrollPane. When I use setText() to update the text in, the JTextPane gets scrolled to the end (last line).
|
| custom JButton's borders (in UI update() ?) | 08 Sep 2005 05:41 GMT | 2 |
I'm playing a bit with JButton aspect. I've seen several beautiful buttons in some java L&F and am trying to subclass only the JButton class in order to keep my original L&F but only have SOME buttons with a different "style".
|
| layouts layouts layouts.. | 07 Sep 2005 23:27 GMT | 30 |
I know I have asked lot about this here, but I'm baffled by how hard this is.. I've been doing layouts w/HTML and css for years, and never have a problem getting my stuff to look exactly as I want it to, even complex layouts.. but Swing layouts is just a different league....;)
|
| Render Fonts smoothly... | 07 Sep 2005 16:39 GMT | 15 |
I am trying to draw a string onto an image as smoothly as possible. The problem is that I am streching the font a little to fit my area fully.. AffineTransform fontTransform = new AffineTransform(); fontTransform.scale( xScale , yScale);
|
| Swing AbstractAction/Action relation to the MVC? | 07 Sep 2005 16:34 GMT | 5 |
It's great to be able to isolate UI events into Swing actions so the same action is called from a menu, toolbar and/or shortcut. But what is its relevance to the MVC-pattern. I have isolated all UI actions of my app in a single ActionFactory class, but I am simple unsure about ...
|
| Simple Swing-application crashes JVM 1.5 and parts of Windows | 07 Sep 2005 11:30 GMT | 9 |
I am using Java 1.5 and have written a Swing-application, which will "crash" when its main window is closed. Under Windows 98 the JVM does not terminate in this case and even CTRL-ALT-DEL will not bring up the task manager anymore to
|