#navi(contents-page-name): No such page: ST

FrontPage

Terai Atsuhiro 2022-02-01 (火) 22:41:27

http://terai.s55.xrea.com/swing/layeredpane/screenshot.png

boolean flag = true;
protected void createFrame(){
  MyInternalFrame frame = new MyInternalFrame();
  frame.setVisible(true);
  if(flag){
    desktop.add(frame, new Integer(JLayeredPane.DEFAULT_LAYER.intValue()+1));
    flag = false;
  }else{
    desktop.add(frame);
  }
  try{
    frame.setSelected(true);
  }catch(java.beans.PropertyVetoException e){}
}