| Thread | Last Post | Replies |
|
| What did i forgot [ public void mouseClicked (MouseEvent e) ] | 23 Nov 2003 16:46 GMT | 2 |
It's been a while since my last encounter with Swing so it must be something i simply forgot. I extend a JPanel and implement MouseListener. All the methods have empty bodies except for:
|
| User draws selection rectangle over components? | 23 Nov 2003 09:56 GMT | 2 |
I have a JPanel with a bunch of JComponents inside. Now I want that the user can drag the mouse over all of them and draw a selection rectangle over them. How do I do that? Do I have to use and implement the glassPane?
|
| Prioritising the user interface | 22 Nov 2003 15:47 GMT | 2 |
Ive currently set my program up with a simple JFrame interface and a couple of JMenus and JMenuItems. Just enough to allow me to read in some files and start the program running. The program starts about 50+ threads running in the background. Before the
|
| JTable question | 22 Nov 2003 08:48 GMT | 3 |
Do JTables update themselves? That is, if I changed the data that pouplates the TableModel behind the JTable programmatically, will the JTable update?
|
| How to make JTextArea automatically size adjustable | 21 Nov 2003 22:44 GMT | 1 |
Hi, I would like to make a JTextArea automatically size adjustable. Specifically, for example, if I have a JTextArea, I'd like to setText()
|
| keyPressed: JList is shown and selects corresponding entry. How? | 21 Nov 2003 19:26 GMT | 1 |
I have a Component with a KeyListener. When the user types a key, say x, a sorted JList in a JDialog shall pop up and immediately select the first X entry. How can I do that? I have already added a KeyListener that listens for a
|
| Very simple Java AWT Frame resize question | 21 Nov 2003 17:26 GMT | 1 |
In the following code, I create an awt Frame. Unfortunately, when I run the resulting Java application (on Windows) and use the mouse to resize the window, none of the Frame's resize/setSize methods get called. Can anyone explain why this is?
|
| Advanced dialog classes? Preferences Dialog? | 21 Nov 2003 08:02 GMT | 6 |
are there advanced dialog classes in swing (or elsewhere, free) that allow wrinting an Options, Preferences etc dialog easily? Or multi-step dialogs? thanks! Andi
|
| 2d String in a Box | 21 Nov 2003 07:40 GMT | 3 |
I want to draw a string of varying size inside a box. g.drawString("........string....", x, y) g.drawBox(x, y, w, h); -------
|
| Strange gui error | 21 Nov 2003 07:37 GMT | 4 |
I work with sdk 1.4.2 on Win2000 on a gui/swing application. Once in a while, randomly, appears the following stack trace:: java.lang.NullPointerException at sun.awt.windows.WInputMethod.dispatchEvent(Unknown Source)
|
| JLabels and word wrap | 21 Nov 2003 05:49 GMT | 1 |
Do JLabels automatically word-wrap if the label text is too long? If not, is there a way to show a really long line without using HTML or JTextComponents?
|
| Starting and Stopping Animated GIF | 21 Nov 2003 02:38 GMT | 1 |
I posted this on comp.lang.java.programmer last week but nobody answered. I probably should have posted to comp.lang.java.gui in the first place; can anyone give me a hint on how to solve this problem? ---
|
| How does JList get Focus? | 21 Nov 2003 00:36 GMT | 10 |
This should be easy for Swing experts, but I have no success. I have tried every obvious solution (requestFocs()...) I have this little working code (see below) that shows a JPopupmenu with a JList when you press the "arrow down" key. This is nice, but it does not
|
| What is better: Huge popup menu or smaller scrollable list? | 20 Nov 2003 18:02 GMT | 2 |
imagine the user has to choose one of, say, 100 items. They should be displayed when he clicks on a word in a frame or panel, and he can choose one (the 100 items cannot be structured in submenus). What is better: To display them in a nice little scrollable popup menu
|
| transparent JComponents above JLabel | 20 Nov 2003 15:46 GMT | 1 |
I'll describe what I think I want, which hopefully conveys my intent. I would like a text label with a (1,2) gridlayout which is a container for 2 JComponents. The JComponents will register action listeners and visually be just a block
|