Bringing one JInternalFrame to the front of the JDesktopPane

2004-02-18 Thread Marcos . Rebelo
I'm using one JDesktopPane in my project and I need to set one JInternalFrame in front of all the other and selected. Until know this is the better I can do. If the JInternalFrame is iconifyed this don't work. I know this must be a very simple thing to do but I don't find how. import

setting colors of only one JComponent instance

2004-02-18 Thread Walthier Mt
Hi List! How should I set the colors of my JComboBox instance? The following sets it for all combo: CODE UIManager.put(ComboBox.disabledBackground, Color.red); UIManager.put(ComboBox.disabledForeground, Color.green); UIManager.put(ComboBox.foreground, Color.magenta);

Re: Bringing one JInternalFrame to the front of the JDesktopPane

2004-02-18 Thread Brian Gagne
Calling just the desktop manager method only does part of the job and leaves the state inconsistent. This code should fix your problem: pnButtons.add(new JButton(new AbstractAction("Open 1"){ public void actionPerformed(ActionEvent arg0) { try { ifr1.setIcon(false); ifr1.setSelected(true); }

Re: listview question.....

2004-02-18 Thread Joe Sam Shirah
Hi Jessamine, wondering if java has a ListView fuction similar to that of VB? If you want to show rows with columns and headers, then javax.swing.JTable is the component to use. If each row is just a single item that you want users to pick or select from, then javax.swing.JList is

RE: Bringing one JInternalFrame to the front of the JDesktopPane

2004-02-18 Thread Marcos . Rebelo
Thanks, seems to be perfect. In the end of this work I shall write a book called Tips for real dummy programmers like me. Thanks Marcos -Original Message- From: Brian Gagne [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 5:19 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]