| Thread | Last Post | Replies |
|
| Problem to update JTextArea with ScrollPane | 11 Jan 2006 16:45 GMT | 2 |
I have added a scrollpane to my jtextArea. Then I have implemented an UpdateListener interface to handle events fired from my Model class ( I am using the MVC). The problem I am facing is: I add the scrollpane to the jtextarea and then I add the scrollpane to
|
| JScrollPane and scrolling speed | 11 Jan 2006 02:43 GMT | 2 |
What method is there to set how fast the scrollpane scrolls whenever I choose the actual arrows on the ends of the scrollbars? Mine scroll really slow (few pixels at a time) and another application that I've seen scrolls a lot faster (and fast enough to be considered normal ...
|
| animation in custom table cell renderer | 10 Jan 2006 21:20 GMT | 1 |
Does anybody know how to make animated gifs work in cell renderer? I'm trying to use JLabel as base component with animated gif as image. It works perfectly anywere except JTable...
|
| Open new JPanel (JFrame, ...) by clicking JButton | 10 Jan 2006 19:15 GMT | 5 |
I'm writing a program in Java, in which I want to use more than one window. Can anyone tell me how I can open a new JPanel (or perhaps I'd better choose "extends JFrame"?) by clicking a JButton in the main program?
|
| jtextfield in jtable | 10 Jan 2006 14:27 GMT | 2 |
I'm using jTextFields in JTable.I have custom editor ,and everything works fine while i'm adding and removing rows .Only the problem is that when i add several rows ,fill them up ,and then remove them ,the last edited jTextField stays on the panel with his value ,until i resize ...
|
| Java Swing help (JSpinner, JButton) | 10 Jan 2006 06:15 GMT | 1 |
I'm just trying to have a JSpinner, and have its value printed out whenever the JButton is pressed. Code at http://mysite.verizon.net/gricksigger/view_code.txt
|
| scrollbars not becoming active | 10 Jan 2006 01:45 GMT | 2 |
I have a bunch of buttons/textfields that are dynamically generated by parsing data and they are all placed into a JPanel which uses gridbaglayout. I then put the panel into a scrollpane. If enough buttons/textfields get created they end up becoming miniscule on the
|
| JComboBox+JLabel as one component | 09 Jan 2006 22:52 GMT | 4 |
In Swing, most of my comboxes are used with a JLabel ( on the left-hand side or above) to tell the users what the combo is about. That's a pretty basic use case... I did not find a component merging the two, to make my code less
|
| Creating a custom JSplitPane component | 09 Jan 2006 21:27 GMT | 3 |
I would like to create a custom Swing component that functions exactly the same as a JSplitPane but that draws no lines for the divider bar, instead it only leaves space between the panes. How would I go about this? I guess it involves inheriting JSplitPane and then doing ...
|
| how can i know user home directory from java | 09 Jan 2006 17:24 GMT | 3 |
I want to know user home directory when i run through java applet. I could not success through System.getProperty("user.home") as it gave me security exception. Then i tried the following way which simply exec the commands "echo %HOMEDRIVE%%HOMEPATH%" for windows and for linux
|
| Problem with Preferred and Minimum sizes | 09 Jan 2006 17:22 GMT | 1 |
Hi, I want to have 4 buttons and the buttons should always have the minimum size that I specify. And if the text of the buttons changes, I want them to expand automatically. Here is the code that I wrote, but it seems to have some problem. If I take out the button's preferred
|
| Bringing a Java Application to Front | 09 Jan 2006 10:52 GMT | 1 |
Running on Windows XP; tested under Java 1.4 and Java 1.5: I'm using sockets to check to se if my application is already running when I start. If so, I send a message to the running version, telling it which file to open. In some situations, there may be no new file to
|
| JToggleButton backgroundcolor | 09 Jan 2006 09:12 GMT | 1 |
I am looking for a method to set the color of a pressed togglebutton. Setbackground only works für not pressed JToggleButtons. Gunther ---
|
| Major enhancements to Swing Drag and Drop in Mustang | 08 Jan 2006 07:06 GMT | 1 |
If you happen to be interested, I've just published a blog introducing the major enhancements made to Swing Drag and Drop for Mustang. You can find it here: http://weblogs.java.net/blog/shan_man/archive/2006/01/first_class_dra.html
|
| Using images in a JApplet | 08 Jan 2006 00:02 GMT | 5 |
I am having a problem displaying images on an applet, either in a jlabel or in a jbutton. Every time I run the applet I get an error message saying "applet not initialized". This is what I am currently doing to insert a new image in a a JLabel
|