addInternalFrame(frame, "", 750, 160, false);
discoverer=new jalview.ws.Discoverer(); // Only gets started if gui is displayed.
+
+ this.addKeyListener(new KeyAdapter()
+ {
+ public void keyPressed(KeyEvent k)
+ {
+ System.out.println(k);
+ }
+ });
}
/**
frame.setLocation(xOffset * openFrameCount, yOffset * ((openFrameCount-1)%10)+yOffset);
}
- desktop.add(frame);
- frame.toFront();
-
-
final JMenuItem menuItem = new JMenuItem(title);
frame.addInternalFrameListener(new javax.swing.event.InternalFrameAdapter()
{
});
windowMenu.add(menuItem);
+
+ desktop.add(frame);
+ frame.toFront();
+ try{
+ frame.setSelected(true);
+ }catch(java.beans.PropertyVetoException ve)
+ {}
}
/**