| Thread | Last Post | Replies |
|
| Need help with layered animation in Swing | 30 Nov 2003 18:37 GMT | 5 |
I'm new to java and Swing, and I have some questions about doing a particular animation. I'm trying to animate a phase portrait, which is a representation of the motion of an oscillator (think of a pendulum). One axis of the
|
| Writing a ListCellRenderer | 29 Nov 2003 02:25 GMT | 4 |
I'm writing my own ListCellRenderer for a JList, and I seem to be running into a problem. The code below (in getListCellRendererComponent) is supposed to (or so I am told) appropriately change the color of the selected item so it
|
| a simple java timer | 28 Nov 2003 19:12 GMT | 9 |
Just wondering, has anyone here ever used java.swing.timer if so, have you got any examples? i cant seem to find many on google :s
|
| Detect double-click in editable JComboBox? | 28 Nov 2003 17:31 GMT | 2 |
I have an editable JComboBox. I want it to scroll to the default value if the user double-clicks in the edit area. So, I tried using 'addMouseListener()' with a MouseAdapter to listen for the click count. I'm hearing nothing, though. Can a JComboBox not respond to a
|
| best way to use an icon with paint() | 28 Nov 2003 16:40 GMT | 1 |
Just wondering, currently painting 6 shapes onto a jPanel, and ive got to continue doing this, but on some of them, i need to display a icon. Any ideas?
|
| Need some help with animation | 27 Nov 2003 20:58 GMT | 6 |
I need some help with animation. Specifically, I am trying to create a class that will play an animated GIF (GIF89a) in a JPanel and stop or start when the user clicks the mouse. This seems like something that should be pretty straight forward but I've already
|
| Max num of enterable characters in a TextField/JTextField | 27 Nov 2003 18:50 GMT | 2 |
How does one specify the maximum number of characters that may be entered in a TextField or JTextField? Gregg
|
| Misbehaviour of scrollbars in JScrollPane | 27 Nov 2003 18:42 GMT | 2 |
I add 500 JPanels to a JScrollPane which is equipped with a FlowLayout Manager (i.e. this is some kind of thumb view with a vertical scrollbar only). The scrollbar is adjusted accordingly to the extent of the scrollpane.
|
| Custom ComboBox Editor in JTable focus issue | 27 Nov 2003 15:06 GMT | 4 |
I created a custom JComboBox.KeySelectionManager that allows progressive key selection. For instance, when installed in a combo box populated with U.S. states, a user can type 'ar' and the combo box will select 'Arizona' instead of 'Rhode Island.'
|
| JTabbedPane layout question??? | 27 Nov 2003 10:10 GMT | 1 |
Is it possible to put a component (ie. JComboBox) on the same line as the tabs in a JTabbedPane? If so how? ________
| |------- ------- |-------------------- |
| How to detect when a component is moved from 1 Panel to another | 27 Nov 2003 00:05 GMT | 1 |
I have several JPanels. One of them has a JToolbar in it. I want to know when the toolbar is moved from it's original panel to another panel? I put a MouseMotionListen on the JToolBar and it does detect that it's getting dragged, but when I release the mouse in the new JPanel, ...
|
| Jbutton and text | 26 Nov 2003 22:40 GMT | 5 |
I have a Jbutton with some dynamic text (that mean that i don't know how long will it), and i wish that in spite of being too long, there will not be some "..." appears. I want that the text be divided into several lines .... See this ascii draw I have ---------------- | ...
|
| JScrollPane not appearing | 26 Nov 2003 12:02 GMT | 1 |
as the subject line appears, the JScrollPane doesn't appear when the JPanel in its veiw port becomes bigger than the scroll pane. Does anyone see anything obviously wrong with this code? JFrame myFrame1 = new JFrame();
|
| Labels not showing up after icons.. | 26 Nov 2003 10:48 GMT | 1 |
Just wondering, ive got a big jLabel, and on that label ive set a .jpeg as a Icon.. Ive then put jLabels over the top of this, aswell as a combo Box. The thing is, when i run my program, all these labels ontop of the main
|
| to insert an image in a Label (awt, not swing) | 26 Nov 2003 08:08 GMT | 6 |
I want insert a JPG (or jpg?) image in a Label (the Label is a Component of a Frame; I don't want to use swing for compatibility with browsers that don't support it). This is a part of my "class finestra extends Frame":
|