| Thread | Last Post | Replies |
|
| Selecting a row in a JTable | 14 May 2004 06:46 GMT | 1 |
When I click on a cell, I'd like the whole row to be highlighted, INCLUDING the selected cell. I've tried using the following code to no avail: setCellSelectionEnabled(false);
|
| JTable error when add or remove datas | 14 May 2004 04:41 GMT | 1 |
The following code (putted in a inherited object from AbstractTableModel object) make some errors : public void deleteRow(int rowToDelete){ try{
|
| How to put a component on top of all other components? | 13 May 2004 20:55 GMT | 4 |
For adding components on top of other components, all code that I've seen uses the method "add(Component, 0)" to add a component such as a ToolTip on top of other components. Such "add(Component, 0)" code works everywhere that I've tried except for the Macintosh implementation of ...
|
| Newbie questions | 13 May 2004 19:16 GMT | 3 |
I am a relative newcomer to Java and am using the Netbeans 3.6 IDE. I have a couple of small projects that I am using to learn the basics. One is an insurance form and all the text fields need to be filled in. I have tried to validate this by using something along the lines of:
|
| getScaledInstance for BufferedImage. | 13 May 2004 18:53 GMT | 2 |
getScaledInstance produces an Image out of my BufferedImage. It does not produced a BufferedImage I can simply cast. What is the best to way to either convert it back to a BufferedImage or to get myself a scaled BufferedImage?
|
| paint() Call Taking Too Long on Windows (Unless Two Copies Running) | 13 May 2004 18:27 GMT | 6 |
I'm writing a drawing program for a collaboration tool, and I'm running into a very strange error: the invocation of the paint() method of Whiteboard, my subclass of JPanel, takes something like a quarter second under certain cicumstances; this occurs whether it is
|
| ActiveX and Applet | 13 May 2004 10:24 GMT | 3 |
In order to reuse current components I need to call an ActiveX control inside a Java applet or a Java program. Could you tell me how this one is possible or where I can look for document about that ?
|
| returned data from dispose()'d JDialog | 13 May 2004 08:11 GMT | 6 |
I have a custom JDialog that is supposed to return several pieces of data from the user. From the Java tutorial, I learned that one good way is to have the JDialog provide accessor methods to return the data.
|
| File Selector | 12 May 2004 22:07 GMT | 2 |
How can I open the Swing-FileSelector in a special subdir? I tried it with the pathname as String, but the FileSelector starts always in the default dir. Thank you.
|
| Speeding up ScrollPane | 12 May 2004 16:25 GMT | 2 |
I notice that AWT ScrollPane scrolls with the wheelmouse more slowly than the equivalent amount of text would. Has anyone got some code to speed up the wheelmouse for Images in a ScrollPane?
|
| Need help with 2D array | 12 May 2004 15:25 GMT | 3 |
Would someone shows me the java syntax to create a 2D array of a calendar, where the rows represents months, such as: Jan, Feb... and columns represent days; assuming that there are 29 days in Feb? I don't know whether to declare this 2D array in String or int, since the months are ...
|
| fill3DRect() and Gradients? | 12 May 2004 15:17 GMT | 1 |
Is it possible to use the Graphics2D.fill3DRect() function and paint with a gradient? I've tried calling setPaint(new GradientPaint(...)) and then calling fill3DRect(), but all I'm left with is a black rectangle. Any thoughts?
|
| dispatchEvent does not work | 12 May 2004 15:13 GMT | 1 |
For somewhat reason I don't get the attached code to work. I want to delegate a key event to an other component eg. a JTextField in big Swing application. But with my version JDK 1.4.2 tested on a Linux JVM and a Windows JVM it does not work.
|
| How to convert TreePath object into an XML file? | 12 May 2004 07:33 GMT | 2 |
I want to convert the selected fields of a JTree, into an XML file. The getSelectionPaths() of JTree returns a TreePath[] object. But how do I convert this into an XML file? Is there any standard java API for that?
|
| Problems with printing JTable | 12 May 2004 06:42 GMT | 1 |
I have a panel with a JTable that I need to print. Printing from the panel is no problem, that works fine. The problem is that I have to print the JTable from an other class that implements Printable since I have to customize the columns/rows first before printing. I pass the
|