public void setSelected(final boolean _selected) throws PropertyVetoException { super.setSelected(_selected); if (_selected) { pane_.requestFocus(); } }
public void internalFrameDeiconified(InternalFrameEvent _evt) { // System.err.println("DEICONIFIED "+_evt.getSource()); menusOrganisationFenetres(); try { Object source = _evt.getSource(); if (source instanceof BuInternalFrame) ((BuInternalFrame) source).setSelected(true); } catch (PropertyVetoException ex) {} if (ifListener_ != null) { for (Iterator it = ifListener_.iterator(); it.hasNext();) { ((InternalFrameListener) it.next()).internalFrameDeiconified(_evt); } } }
public void setSelected(boolean _state) throws PropertyVetoException { super.setSelected(_state); if(isSelected()) ltPages_.requestFocus(); }
public void setSelected(boolean _state) throws PropertyVetoException { super.setSelected(_state); if(isSelected()) trTree_.requestFocus(); //tpMain_.requestFocus(); }
public void setSelected(boolean _state) throws PropertyVetoException { super.setSelected(_state); if (isSelected()) grid_.requestFocus(); }
public void setSelected(boolean _state) throws PropertyVetoException { super.setSelected(_state); if (isSelected()) pane_.requestFocus(); }
public void setClosed(boolean _closed) throws PropertyVetoException { super.setClosed(_closed); if(isClosed()&&isSelected()) setSelected(false); // should be done before ? }
public BuInternalFrame(String _title, boolean _resizable, boolean _closable, boolean _maximizable, boolean _iconifiable) { super(_title,_resizable,_closable,_maximizable,_iconifiable); getRootPane().putClientProperty ("defeatSystemEventQueueCheck",Boolean.TRUE); getGlassPane().setName(null); setLayer(JLayeredPane.DEFAULT_LAYER); if(FuLib.jdk()>=1.5) { try { Class c=getClass(); Method m=c.getMethod("setFocusTraversalPolicyProvider", new Class[] { Boolean.TYPE }); m.invoke(this,new Object[] { Boolean.TRUE }); //setFocusTraversalPolicy(new LayoutFocusTraversalPolicy()); } catch(Throwable th) { FuLog.error(th); } //setFocusTraversalPolicyProvider(true); } try { setSelected(false); } catch(PropertyVetoException ex) { } //setLocation(10,10); setSize(111,111); }