| Thread | Last Post | Replies |
|
| JSlider Repaint gives NullPointerException from | 15 Jun 2004 20:10 GMT | 1 |
The code below gives the NullPointerException from javax.swing.plaf.metal.MetalLookAndFeel.getControlDarkShadow(MetalLookAndFee l.java:1071) in JDK 1.3.1_12. However, the error is not given in JDK 1.4.2_04 . To be
|
| MouseInputListeners and drag'n'drop | 15 Jun 2004 19:34 GMT | 3 |
I have a component, a Jwhich implements DragGestureRecognizer and has a number of MousInputListeners added to it. As soon as those listeners are added, it loses the ability to recognize a drag gesture (ie. dragGestureRecognized never gets called). This can be traced exactly to when
|
| How to programmatically scroll to the last row of a JTable? (eom) | 15 Jun 2004 19:23 GMT | 1 |
|
| Swing paintComponent() question | 15 Jun 2004 18:19 GMT | 1 |
I wrote a custom Swing component that overrides paintComponent() to implement a tiled-image background. For optimal performance, I use the clipping rectangle of the input Graphics object to decide which part of the tile to repaint.
|
| Checkbox TreeCellRenderer | 15 Jun 2004 17:45 GMT | 1 |
I have implemented the TreeCellRenderer, such that each node in my JTree has a checkbox and a label in a JPanel. Now I am creating a mouse listener for the tree. I can get the name of the node using TreePath.getLastPathComponent(). But how can
|
| JFrame.setExtendedState and Windows | 15 Jun 2004 08:50 GMT | 1 |
Is it true that setExtendedState(MAXIMIZED_BOTH) does not work for a JFrame under Windows (XP in my case)? The other constant (namely ICONIFIED) works flawlessly, but any form of MAXIMIZED_* is ignored by my program.
|
| JTextArea cut and paste question | 15 Jun 2004 07:34 GMT | 4 |
On MS Windows, I'm using ctl-C and ctl-V to cut and paste text info between applications. But when I use ctl-C to copy text from a JTextArea, it loses its line endings ("\r\n" in this case). Can anyone please give me
|
| Seleceting Tree Item | 15 Jun 2004 06:11 GMT | 2 |
How do i go about highlighting a node in a JTree given the Tree node. I have the TreeNode and it already exists within the tree, but I want to have it selected in the Tree Eg
|
| Treepath from DefaultMutableTreeNode | 15 Jun 2004 06:10 GMT | 2 |
How does one obtain the TreePath gien a DefaultMutableTreeNode?
|
| Click versus Drag to move JSlider | 14 Jun 2004 22:22 GMT | 3 |
How do you make it so a JSlider can be moved by clicking where you want it to be? The default behavior seems to only allow dragging it. I've downloaded the demo's from
|
| SQL optimisation | 14 Jun 2004 22:18 GMT | 6 |
Is there a more efficient way to write this query? conn.prepareStatement( "SELECT confirm, ordertimestamp, unencrypted, encrypted FROM orders WHERE confirm > ? AND vendorid = ? ORDER BY confirm LIMIT 1" );
|
| Scrollable JMenu or like that | 14 Jun 2004 20:57 GMT | 7 |
Basically, I have a JMenu that contains so many items that it has become quite unwieldy. All the items under this particular menu would be very difficult to sub-categorize. Is a scrollable JMenu out of the question? If
|
| JSpinner problem | 14 Jun 2004 13:23 GMT | 2 |
I want a JSpinner field to display a value between 1.000 and 1.100, formatted like that. So 1.01, for instance, should display as 1.010. The following code: JSpinner ogField = new JSpinner();
|
| EXAMPLES OF GUI's | 14 Jun 2004 02:51 GMT | 1 |
Hello I am working on a mortgage calculation project for class and am having difficultly with the actionPerformed() and itemStateChanged() methods. Can someone direct me to example codes dealing with JComboBox() methods associated with calculations??
|
| Drag and Drop on Linux not working | 14 Jun 2004 00:52 GMT | 1 |
I have an app that accepts both stringFlavor and javaFileListFlavor objects dropped onto it. This is working well under Windows and Mac OS X. I just tried testing under Linux and my drop area isn't recognized there. When I drag either a string or file object the cursor icon ...
|