| Thread | Last Post | Replies |
|
| Image gymnastics | 06 Jan 2004 23:35 GMT | 1 |
I want to create a bitmap (an Image of some sort in Java?) from a graphics display in one Swing component and blit it to another Swing component to be displayed. Can anyone tell me how to best approach this?
|
| JSplitPane Not Acting Correctly | 06 Jan 2004 23:11 GMT | 3 |
I've tried everything that I can find from the Java 1.4.2 API specs for JSplitPane in order to control the splitter, but almost nothing works. I can manually drag it into the place I want, but no code I write affects it, or actually works the way it says it should.
|
| Creating a HUD in Java | 06 Jan 2004 21:07 GMT | 1 |
Hi all... I'm developing a java application based on the old Supremacy board game... The display is a large map of the board, which is zoomable and scrollable. I'd like to place several components on top of this, such as an 'Empire
|
| how to ignore VK_UP in JTextPane | 06 Jan 2004 18:08 GMT | 2 |
i want to write a console- or shell-like object (extends JTextPane). if the user presses the up-key and down-key, he should be able to "scroll" through his already entered commands. i have it somehow realised with a KeyListener like that:
|
| Texts on buttons aren't honored by Action | 06 Jan 2004 02:28 GMT | 3 |
We make multiple buttons, e.g. [Joe], [Mary], [Paul], [Suzy], etc. And when we set a same Action object to these buttons, button texts "Joe", "Mary", etc. are all disappeared from the buttons' surfaces. This text disappearing phenomenon occurs when we use only one button. It should
|
| Left Mouse Button Clicks Butting? | 06 Jan 2004 02:22 GMT | 2 |
When we dispatch an event from button A's ActionListener onto Button B, if the event specifies a left mouse button click, it seems to be nullified, i.e. ineffective. Does someone know the cause of the problem and solution?
|
| Refusing a user action on a redio button | 06 Jan 2004 00:51 GMT | 4 |
I have a swing interface with radio buttons in a button group. I would like to be notified if the user clicks on one of the buttons BEFORE the action actually take place because under certain conditions I could refuse the action. I guess one way would be to use a normal
|
| Changing Look & Feel: layouting and component sizes | 05 Jan 2004 19:11 GMT | 11 |
I have a non modal JDialog in which information about the current demo is displayed. When changing the look and feel, the buttons and other components' sizes are not correctly adjusted to the new look and feel. I call
|
| Why is the argument of setActionCommand a String? | 05 Jan 2004 18:01 GMT | 5 |
Does anyone know why the argument of setActionCommand (for example in JButton) is a String rather than an Object? Since the only thing that I ever see done with the value of actionCommand is to compare its reference it could be any kind of Object. Furthermore if it
|
| java.lang.ArrayIndexOutOfBoundsException | 05 Jan 2004 15:12 GMT | 2 |
Hi, Goodmorning, I run into an ArrayIndexOutOfBoundsException. From the stack trace we can see that it does not really have anything to do with our code other than one line and that runs our event
|
| JColorChooser question | 05 Jan 2004 02:31 GMT | 1 |
Can anyone suggest a way that I can have JColorChooser's showDialog appear initially in its RGB tab? (ie index 2) For example, when the program below runs, it initially displays the "Swatches" tab (ie index 0), but there doesn't
|
| Java 2D scaling and mouse coordinates problems | 04 Jan 2004 21:00 GMT | 1 |
I made a simple drawing applet in Java, using Graphics 2D API. You can draw shapes, select them, drag them, etc. I tried to add zooming abilities by overriding the paintComponent
|
| JTable Header / Custom | 04 Jan 2004 20:13 GMT | 6 |
I'd like to change the L&F of the JTable Header but I'm not sure how to do this. Basically, I want the header columns to look flat instead of raised, with a custom background color.
|
| How to skip some UndoableEvents in UndoableEditListener? | 04 Jan 2004 18:43 GMT | 2 |
i'm writing a textbox (extends JTextPane) witch can handle syntax highlighting. i handle colorization with doc.setCharacterAttributes. my textbox also supports undo/redo but the problem is, that the colorization-steps are also made undoable (but they shouldn't)!
|
| Center text in a JLabel? | 03 Jan 2004 23:36 GMT | 13 |
I'm not sure what I'm missing here, but I can't get my text to center in a JLabel: Note my 2 different attempts... JLabel statusPane = new JLabel( );
|