Full screen swing application in Gnome 3



Hi,

I found a bug when using Java swing applications in Gnome 3. When a
swing application is full screen or split screen by pushing the
application against the top or side of the screen respectively, the
menus become unusable. What happens is that a menu collapses
immediately after releasing the mouse button. i.e., a user cannot use
the menu unless the window is dragged from a full- or split screen
state. Please look at the bottom for a simple test program that
reproduces the problem. Also, this YouTube movie illustrates the
problem: http://www.youtube.com/watch?v=noq6OhuWPQA

The bug is present in Sun's Java 1.6 and 1.7, but not in OpenJDK 1.6.
I already submitted a bug report at Sun. My question to this list is
(forgive me if this is the wrong list to ask): should I report this as
a bug @ the gnome bug tracker, and if yes, what category should I file
it under. Also, should I rather ask this at the gnome-bugsquad list
than this list?

Kind Regards,
Vasco

An extremely simple test program that reproduces the problem:

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.SwingUtilities;


public class Main {

	public static void main(String[] args) {
		
		SwingUtilities.invokeLater(new Runnable(){
			@Override
			public void run() {
				JFrame f = new JFrame();
				JMenuBar jmb = new JMenuBar();
				JMenu jm = new JMenu("File");
				jm.add(new JMenuItem("New"));
				jmb.add(jm);
				f.setJMenuBar(jmb);
				f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				f.setSize(800, 600);
				f.setVisible(true);
			}
			
		});
	}
}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]