| Thread | Last Post | Replies |
|
| GUI freezing up, code running fine. | 04 Jan 2006 19:09 GMT | 2 |
I'm using Netbeans 5.0 beta for an IDE, with swing components. The situation is something like this: The program is a board game - the user chooses a building from a panel, and then is supposed to get a message to choose what resource to pay
|
| JList Font Bug | 04 Jan 2006 14:52 GMT | 6 |
Consider this SSCCE. If you take out the comment on the setFont statement, it stop working -- displaying a blank screen in W2K/JDK 1.0 Why. It fails even when I set it to the default Dialog, 12 , BOLD. // sample use of jList
|
| Install keystroke on action without using a JMenuItem | 04 Jan 2006 12:21 GMT | 3 |
I need to install an Action with a defined accelerator key without using a corresponding JMenuItem. I've got a JButton to correspond with the accelerator key, but no Menu item. I've been looking at the code for JMenuItem and I found the code in
|
| Problem with SWT and Layouts | 04 Jan 2006 03:37 GMT | 1 |
I'm coding with SWT and I came across a problem with layouts. I have a shell, which has a sashForm, which has two sashForms. Another one of these has yet another sashForm within it. Now, this third sashForm has a Composite(GridLayout), which consists of several Composites. These
|
| What's the secret to using JSeparator? | 04 Jan 2006 03:30 GMT | 7 |
The API documentation for JSeparator says that, besides using it in menus, it can be used "elsewhere in a GUI wherever a visual divider is useful." I have never been able to use it (show a visible divider) except in a menu. Anyone know the "secret of the separator"?
|
| Layout to Composite | 03 Jan 2006 18:18 GMT | 2 |
In SWT, can you set a RowLayout or GridLayout to a Composite? I seem to have some problems with that -Mikko --
|
| Dragging non-selected cell in JTree | 03 Jan 2006 18:02 GMT | 1 |
I have implemented Drag and Drop from a JTree by setting tree.setDragEnabled( true ); tree.setTransferHandler( new NodeTransferSource() ); where NodeTransferSource is a subclass of TransferHandler.
|
| Toolbar Drop Down Button | 03 Jan 2006 17:00 GMT | 4 |
After fruitlessly searching for a nice open source drop down button that worked well under a variety of look and feels, I ended up writing one. The code is LGPL for those that are interested - download from the link below. I included a write up of some of the design issues. If ...
|
| Problem with floating toolbar | 03 Jan 2006 08:59 GMT | 1 |
I used JToolBar to create a toolbar and added it to the frame. When I drag it with mouse, a gray box appears instead of the buttons, while the mouse is still pressed. This looks awkward. How can I avoid it? I dont want to remove the floating property. Also is there a way I can
|
| JTabbedPane ChangeListener | 03 Jan 2006 08:22 GMT | 2 |
I was just wondering, if i want to know if the user selected a particular tab on a JTabbedPane how will i do this ? So I can listen to see if the user changed the tab by the following code public class MyFrame extends JFrame
|
| Launching a chm file that is in a jar file. | 03 Jan 2006 00:29 GMT | 1 |
We want to include our online help file (chm format) in our jar file. This is easy enough. The problem is I can't figure out how to launch the help file when I need to. I have to be able to execute an OS command to view the help.
|
| Newbie Problem with Java Label | 02 Jan 2006 14:23 GMT | 8 |
Hi every1, I'm new to java and trying to learn it by doing it ... The problem I'm having is that I'm trying to display an image (which can only be displayed inside a label ... plz. correct me if I'm wrong). The label's text is displaying but not the picture.
|
| Using ColorSpace | 02 Jan 2006 07:08 GMT | 1 |
Does anyone have an example of using ColorSpace to create a color by HLS? Both of these commands throw a "Unknown color space" exception. ColorSpace cSpace = new ColorSpace.getInstance(ColorSpace.TYPE_HLS);
|
| Action problem | 01 Jan 2006 18:03 GMT | 5 |
What's the best solution for this? I have a bunch of components each in a tab of a JTabbedPane, it is desirable for each pane to have its own 'Submit' button - yes an alternative is to have the button outside the tabbed pane and let it do the right thing
|
| FlowLayout with maximum right margin | 01 Jan 2006 09:18 GMT | 6 |
setMaximumSize() is not recognized by FlowLayout. However, I don't want to setSize(...) anything but only to pack() my JFrame. Do I have to implement my own LayoutManager or use an other one for this trivial task? Is there a general solution to the problem that one only wants
|