java.awt.Color.BLACK), contentPane.getBorder())); contentPane.addPropertyChangeListener(e -> { if ("border".equals(e.getPropertyName())) { throw new RuntimeException(); contentPane.addPropertyChangeListener(e -> { if ("border".equals(e.getPropertyName())) { throw new RuntimeException();
java.awt.Color.BLACK), contentPane.getBorder())); contentPane.addPropertyChangeListener(e -> { if ("border".equals(e.getPropertyName())) { throw new RuntimeException(); contentPane.addPropertyChangeListener(e -> { if ("border".equals(e.getPropertyName())) { throw new RuntimeException();
private void addListeners() { dialogPanel.addPropertyChangeListener(USER_DATA_CHANGED, new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { handleErrorDisplay(); } }); }
/** * Install the listeners. * * @param p the panel. */ protected void installListeners(JPanel p) { p.addPropertyChangeListener(this); }
public KenaiDialogDescriptor(JPanel p, String s, boolean b, ActionListener l) { super(p, s, b, l); p.addPropertyChangeListener(this); }
/** * Adds a property change listener that listends for "changeNodeLabel" * events. */ private void addEditorListener(JPanel editor) { editor.addPropertyChangeListener(new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { if ("changeNodeLabel".equals(evt.getPropertyName())) { getDisplayComp().setName((String) evt.getNewValue()); SessionNodeWrapper wrapper = (SessionNodeWrapper) getModelNode(); wrapper.setSessionName((String) evt.getNewValue()); adjustToModel(); } } }); }
@Override public void addValueChangeListener(PropertyChangeListener listener) { super.removePropertyChangeListener(VALUE_PROP_NAME, listener); super.addPropertyChangeListener(VALUE_PROP_NAME, listener); }
public void addNotify() { super.addNotify(); // System.out.println("WSClientCustomizer: addNotify (" + this.getComponentCount() + " subcomponents)"); JPanel component = wsCompileEditor.getComponent(); removeAll(); // !PW is this necessary? add(component); component.addPropertyChangeListener(WsCompileClientEditorSupport.PROP_FEATURES_CHANGED, this); component.addPropertyChangeListener(WsCompileClientEditorSupport.PROP_OPTIONS_CHANGED, this); }
@Override public void addNotify() { super.addNotify(); JPanel component = wsCompileEditor.getComponent(); removeAll(); // !PW is this necessary? add(component); component.addPropertyChangeListener(WsCompileClientEditorSupport.PROP_FEATURES_CHANGED, this); component.addPropertyChangeListener(WsCompileClientEditorSupport.PROP_OPTIONS_CHANGED, this); }
@Override public void addNotify() { super.addNotify(); // System.out.println("WSClientCustomizer: addNotify (" + this.getComponentCount() + " subcomponents)"); JPanel component = wsCompileEditor.getComponent(); removeAll(); // !PW is this necessary? add(component); component.addPropertyChangeListener(WsCompileClientEditorSupport.PROP_FEATURES_CHANGED, this); component.addPropertyChangeListener(WsCompileClientEditorSupport.PROP_OPTIONS_CHANGED, this); }
JPanel panel = new SomePanel(); SomeOtherPanel otherPanel = new SomeOtherPanel(); panel.addPropertyChangeListener("value",otherPanel.getListener());
private JPanel createRadialSelect() { JPanel ret = new JPanel(); ret.setLayout(new BoxLayout(ret,BoxLayout.X_AXIS)); JLabel desc = new JLabel("Radius:"); radiusSpinner = new JSpinner(new SpinnerNumberModel(radius,1,30,1)); radiusSpinner.addChangeListener(this); radiusSpinner.setMaximumSize(radiusSpinner.getPreferredSize()); ret.add(Box.createRigidArea(new Dimension(10,1))); ret.add(desc); ret.add(radiusSpinner); // change the enabled status of the spinner ret.addPropertyChangeListener(new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { if( evt.getPropertyName().equals("enabled")) { JPanel src = (JPanel)evt.getSource(); boolean value = (Boolean)evt.getNewValue(); src.getComponent(1).setEnabled(value); src.getComponent(2).setEnabled(value); } } }); return ret; }
/** Creates new form PanelSourceFolders */ PanelSourceFolders(Panel panel) { this.firer = panel; initComponents(); this.setName(NbBundle.getMessage(PanelSourceFolders.class, "LAB_ConfigureSourceRoots")); this.putClientProperty("NewProjectWizard_Title", NbBundle.getMessage(PanelSourceFolders.class,"TXT_JavaExtSourcesProjectLocation")); // NOI18N this.getAccessibleContext().setAccessibleName(NbBundle.getMessage(PanelSourceFolders.class,"AN_PanelSourceFolders")); this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(PanelSourceFolders.class,"AD_PanelSourceFolders")); this.sourcePanel.addPropertyChangeListener (this); this.testsPanel.addPropertyChangeListener(this); ((FolderList)this.sourcePanel).setRelatedFolderList((FolderList)this.testsPanel); ((FolderList)this.testsPanel).setRelatedFolderList((FolderList)this.sourcePanel); }
/** Creates new form PanelSourceFolders */ public PanelSourceFolders (Panel panel) { this.firer = panel; initComponents(); this.setName(NbBundle.getMessage(PanelConfigureProjectVisual.class,"LAB_ConfigureSourceRoots")); this.putClientProperty ("NewProjectWizard_Title", NbBundle.getMessage(PanelSourceFolders.class,"TXT_JavaExtSourcesProjectLocation")); // NOI18N this.getAccessibleContext().setAccessibleName(NbBundle.getMessage(PanelSourceFolders.class,"AN_PanelSourceFolders")); this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(PanelSourceFolders.class,"AD_PanelSourceFolders")); this.sourcePanel.addPropertyChangeListener (this); this.testsPanel.addPropertyChangeListener(this); ((FolderList)this.sourcePanel).setRelatedFolderList((FolderList)this.testsPanel); ((FolderList)this.testsPanel).setRelatedFolderList((FolderList)this.sourcePanel); }
/** Creates new form PanelSourceFolders */ public PanelSourceFolders (Panel panel) { this.firer = panel; initComponents(); this.setName(NbBundle.getMessage(PanelSourceFolders.class,"LAB_ConfigureSourceRoots")); this.putClientProperty ("NewProjectWizard_Title", NbBundle.getMessage(PanelSourceFolders.class,"TXT_ImportAppClientModule")); // NOI18N this.getAccessibleContext().setAccessibleName(NbBundle.getMessage(PanelSourceFolders.class,"AN_PanelSourceFolders")); this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(PanelSourceFolders.class,"AD_PanelSourceFolders")); this.sourcePanel.addPropertyChangeListener (this); this.testsPanel.addPropertyChangeListener(this); ((FolderList)this.sourcePanel).setRelatedFolderList((FolderList)this.testsPanel, FolderList.testRootsFilter()); ((FolderList)this.testsPanel).setRelatedFolderList((FolderList)this.sourcePanel); this.jTextFieldConfigFiles.getDocument().addDocumentListener(configFilesDocumentListener); }
/** Creates new form PanelSourceFolders */ private PanelSourceFolders(Panel panel) { this.firer = panel; initComponents(); this.setName(NbBundle.getMessage(PanelConfigureProjectVisual.class, "LAB_ConfigureSourceRoots")); // NOI18N this.putClientProperty("NewProjectWizard_Title", NbBundle.getMessage(PanelSourceFolders.class, "TXT_JavaExtSourcesProjectLocation")); // NOI18N this.getAccessibleContext().setAccessibleName(NbBundle.getMessage(PanelSourceFolders.class, "AN_PanelSourceFolders")); // NOI18N this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(PanelSourceFolders.class, "AD_PanelSourceFolders")); // NOI18N this.sourcePanel.addPropertyChangeListener(this); this.testsPanel.addPropertyChangeListener(this); ((FolderList) this.sourcePanel).setRelatedFolderList((FolderList) this.testsPanel, FolderList.testRootsFilter()); ((FolderList) this.testsPanel).setRelatedFolderList((FolderList) this.sourcePanel); }
private JComponent createVorbisSettings() { JPanel panel = new JPanel(new BorderLayout()); panel.setName("Ogg Vorbis Encoder"); panel.add(new JLabel("Quality"), BorderLayout.PAGE_START); final JSlider slider = new JSlider(-1, 10); slider.setMajorTickSpacing(1); slider.setPaintLabels(true); slider.setPaintTicks(true); slider.setSnapToTicks(true); slider.setValue((int) (config.getFloat("encoder.vorbis.quality", .3f) * 10)); Box box = Box.createVerticalBox(); box.add(slider); box.add(Box.createVerticalGlue()); panel.add(box, BorderLayout.CENTER); panel.addPropertyChangeListener("accept", new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { config.setFloat("encoder.vorbis.quality", slider.getValue() / 10f); } }); return panel; }
public void addNotify() { super.addNotify(); // System.out.println("WSClientCustomizer: addNotify (" + this.getComponentCount() + " subcomponents)"); JPanel component = wsCompileEditor.getComponent(); removeAll(); // !PW is this necessary? add(component); component.addPropertyChangeListener(WsCompileEditorSupport.PROP_FEATURES_CHANGED, this); }
@Override public void addNotify() { super.addNotify(); JPanel component = wsCompileEditor.getComponent(); removeAll(); // !PW is this necessary? add(component); component.addPropertyChangeListener(WsCompileEditorSupport.PROP_FEATURES_CHANGED, this); }
public NCBIGeneDialog() { super(Cytoscape.getDesktop(), false); setTitle("NCBI Entrez Gene"); try { final JPanel panel = new NCBIGenePanel(); panel.addPropertyChangeListener(this); add(panel); pack(); setLocationRelativeTo(Cytoscape.getDesktop()); } catch (Exception e) { e.printStackTrace(); } }