public void actionPerformed(final ActionEvent ae) { try { internalFrame.setSelected(true); } catch (PropertyVetoException e1) { e1.printStackTrace(); } }
public void actionPerformed(ActionEvent evt) { try { if (jf.isIcon()) { jf.setIcon(false); } else { jf.setSelected(true); } } catch (Exception ex) { LOGGER.error("queryMenuItem", ex); } } });
public void actionPerformed(ActionEvent evt) { try { if (jf.isIcon()) { jf.setIcon(false); } else { jf.setSelected(true); } } catch (Exception ex) { LOGGER.error("queryMenuItem", ex); } } });
public void actionPerformed(ActionEvent evt) { try { if (schemaFrame.isIcon()) { schemaFrame.setIcon(false); } else { schemaFrame.setSelected(true); } } catch (Exception ex) { LOGGER.error("schemaMenuItem", ex); } } });
private boolean checkFileOpen(File file) { Iterator<JInternalFrame> it = schemaWindowMap.keySet().iterator(); // keys=schemaframes while (it.hasNext()) { JInternalFrame elem = it.next(); File f = ((SchemaExplorer) elem.getContentPane().getComponent(0)) .getSchemaFile(); if (f.equals(file)) { try { // make the schema file active elem.setSelected(true); return true; } catch (Exception ex) { // remove file from map as schema frame does not exist schemaWindowMap.remove(elem); break; } } } return false; }
sf.setSelected(true); int response = confirmFrameClose(sf, se); switch (response) {
private void cascadeMenuItemActionPerformed( ActionEvent evt) { try { int sfi = 1; for (JInternalFrame sf : getAllFrames()) { if (sf != null && !sf.isIcon()) { sf.setMaximum(false); sf.setLocation(30 * sfi, 30 * sfi); sf.moveToFront(); sf.setSelected(true); sfi++; } } } catch (Exception ex) { LOGGER.error("cascadeMenuItemActionPerformed", ex); // do nothing } }
frame.setSelected(true); } catch (java.beans.PropertyVetoException e) {
jf.setSelected(true); } catch (Exception ex) {
jf.show(); try { jf.setSelected(true); } catch (Exception ex) {
frame.setVisible(true); try { frame.setSelected(true); } catch (PropertyVetoException ve) { LOGGER.error(ve);
public void mousePressed(MouseEvent e) { try { frame.setSelected(true); } catch (PropertyVetoException pve) { } showSystemMenu(); } });
"common.alertDialog.title", "Alert"), JOptionPane.WARNING_MESSAGE); sf.setSelected(true); return;
public void actionPerformed(ActionEvent e) { try { internalFrame.setSelected(!internalFrame.isSelected()); } catch (PropertyVetoException ignore) {} } }
public void actionPerformed(final ActionEvent ae) { try { internalFrame.setSelected(true); } catch (PropertyVetoException e1) { e1.printStackTrace(); } }
public boolean requestActiveTopComponent(TopComponent topComponent) { JInternalFrame internalFrame = getInternalFrame(topComponent); if (internalFrame != null) { try { internalFrame.setSelected(true); return true; } catch (PropertyVetoException e) { // fail } } return false; }
public void deactivateInternalFrame(JInternalFrame _f) { if (!SwingUtilities.isEventDispatchThread()) throw new RuntimeException("Not in swing thread."); checkInternalFrame(_f); if (_f.isSelected()) { try { _f.setSelected(false); } catch (PropertyVetoException ex) {} } }
JInternalFrame frame = new JInternalFrame("Report", true, true, true, true); frame.add(new ScrollPane(viewer)); try { frame.setSelected(true); } catch (java.beans.PropertyVetoException e) { }
public void actionPerformed(ActionEvent ae) { JInternalFrame frame = ((ChildMenuItem) ae.getSource()).getFrame(); frame.moveToFront(); try { frame.setSelected(true); } catch (PropertyVetoException e) { e.printStackTrace(); } } });
public void actionPerformed(ActionEvent e) { dialog.pack(); dialog.setLocation(desktop.getWidth()-dialog.getWidth(),0); dialog.show(); try { dialog.setSelected(true); } catch (java.beans.PropertyVetoException ex) {} } });