History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17069
Type: Bug Bug
Status: Open Open
Assignee: Kirill Kalishev
Reporter: Richard Richter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Can't alt-tab between two projects on Linux with JDK 1.6.0_04

Created: 05 Feb 08 18:28   Updated: 05 May 08 12:47
Component/s: User Interface

Environment:
Linux: Ubuntu, IceWM window manager
JDK: Sun's 1.6.0_04-b12

Build: 7,590
Severity: Low


 Description  « Hide
When I open another project in a new frame I can't alt-tab to the previous one. I don't see this project as another window in alt-tab list and I have to minimize the window to be able to work with other project.

I noticed this problem with EAP Idea 7 with previous versions of JDK 1.6 as well.



 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 11 Feb 08 15:56
Richard: thank you for specifying the window manager. I've checked this in 7590: bug happens with IceWM, but does not happen with default Ubuntu Gnome manager. So, the workaround is to change window manager.

Kirill: the following primitive application which can open several frames has no this bug in IceWM. So, this is IDEA-specific behavior.
Bug happens at least with Metal and IDEA 4.5 look and feels.

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.text.MessageFormat;

@SuppressWarnings({"HardCodedStringLiteral", "MagicNumber"})
public class WindowPusher {
	public static void main(final String[] argv) {
		JFrame masterFrame = new JFrame("Master");
		JPanel masterPanel = new JPanel();
		masterFrame.setContentPane(masterPanel);

		masterPanel.setLayout(new BorderLayout());
		JButton pusherButton = new JButton("Push new window");
		masterPanel.add(pusherButton);

		pusherButton.addActionListener(new ActionListener() {
			private int myNextNumber = 1;

			public void actionPerformed(ActionEvent e) {
				JFrame frame = new JFrame(MessageFormat.format("Number: {0}", myNextNumber));
				frame.setSize(100, 100);
				frame.pack();
				frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
				frame.setVisible(true);
				myNextNumber++;
			}
		});

		masterFrame.setSize(100, 100);
		masterFrame.pack();
		masterFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
		masterFrame.setVisible(true);
	}
}

Richard Richter - 26 Feb 08 16:43
I never tested it in different WM, good to know; however I can still use "minimize trick" - I'm not willing to give up my IceWM. ))

Idea 6 worked without problem, so it's actually only Idea 7 problem. I'm not SWING expert, so I really don't know anything further.


Richard Richter - 05 May 08 12:47
I upgraded to Ubuntu 8.04, IceWM 1.2.33 and with Idea 7.0.3 it works fine now. I don't know if this bug is still relevant.