| Thread | Last Post | Replies |
|
| Setting the size of a JComboBox | 25 Sep 2003 07:33 GMT | 3 |
I'm trying to set the size of a JComboBox inside a JApplet using the GridLayout. I've tried setSize() and setBounds() but none of them worked, it was as if the JComboBox was ignoring them.
|
| adapt JDialog size to JTable content? | 25 Sep 2003 06:29 GMT | 1 |
I have a JDialog that can be toggled on and off from my application. The JDialog contains a JScrollPane containing a JTable. Can I get the table to size itself according to its contents and making all data visible?
|
| JMenuItem DEL shortcut | 24 Sep 2003 19:55 GMT | 2 |
Want the DEL key to be a shortcut for a menu item. The code below shows on the right of the delete word menu item to be "Ctrl-Delete". How can I set the accelerator to be just DEL? Thanks
|
| JFrame & minsize | 24 Sep 2003 17:19 GMT | 1 |
I'm trying to set a minimal size at a jframe, to avoid to let a user resize the jfame lower than 500x500 pixel. does anyone have a solution for that? thank you
|
| how get mouse position in monitor (not in the window)? | 24 Sep 2003 17:12 GMT | 1 |
how get mouse position in monitor (not in the window)? I'd like to get the mouse position (x,y) in the monitor, not in windows. I'd like to write a preogram which save the mouse position every secons (while the user use the computer).
|
| Underlining text in JLabel | 24 Sep 2003 16:41 GMT | 7 |
I am looking for an example code on how to underline text displayed in JLabel. thanks for any help Hari
|
| SwingWorker & thread priorities | 24 Sep 2003 16:20 GMT | 1 |
I was wondering if there was any good reason why the code for SwingWorker (from Sun's Java site), does not set the priority of the worker thread it creates? E.g., Thread t = new Thread(doConstruct);
|
| Problems with ATI 3D Rage Pro Card | 24 Sep 2003 15:56 GMT | 2 |
I have a Dell machine running Windows 2000 with an ATI 3D Rage Pro PCI video card. For some reason Java applications that paint any kind of window won't run (applications that just run at a command prompt seem to work). There are no errors...the application just doesn't run!
|
| JTable key bindings--space only works once? | 24 Sep 2003 15:44 GMT | 1 |
I have a JTable with a custom renderer and a custom cell editor. The editor is likely to be the source of my problem, but I thought I'd ask anyway. My editor returns a JPanel with a button to the south and a label in the
|
| JTable with row header (not a newbie question) | 24 Sep 2003 15:40 GMT | 3 |
First, thanks to Christian Kaufhold's site at http://www.chka.de/swing/table/row-headers/JTable.html, I was able to get a row header working with my JTable. I've turned off focus and selection abilities in it, so it basically works as advertised.
|
| equivalent for awt paint method in swing? | 24 Sep 2003 15:14 GMT | 1 |
I am currently looking to find a way to draw lines and dots etc. such as the draw and paint methods of applet.Applet do, but not within an applet, but within a javax.swing component. Thanks
|
| reusing menu as popup | 24 Sep 2003 07:11 GMT | 2 |
i have a JFrame with a complex JMenubar / JMenu-structure. Is there any chance to reuse single menus as popup menus? I found out, that one can get the popup from a JMenu by calling getPopupMenu() and show() it where you like. I thought, I was done.
|
| Card Game and FlowLayout | 24 Sep 2003 06:15 GMT | 2 |
I wrote little card game where I am using FlowLayout to show cards (JButton descendant) in player's hand, with hGap set to -20 (it means cards are overlayed). It is nice but cards are overlayed from right to left (it is based on ZOrder of card components, first card on the left
|
| changing text color in a JTextPane using HTML ? | 24 Sep 2003 00:52 GMT | 5 |
I have a JTextPane (output) using a DefaultStyledDocument doc. I would like to write text in it but i don't know how to change the color of it : ex :
|
| Can I propogate antialiasing within a JDialog? | 23 Sep 2003 22:50 GMT | 2 |
I have subclassed JDialog and overridden the paint function to turn on antialiasing as follows: public void paint(Graphics g) { ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING,
|