Examples of addComponentListener()


Examples of javax.swing.JLabel.addComponentListener()

                        l = new JLabel(Tools.getString("Dialog.Cluster.CoroConfig.WarningAtLeastTwoInt.OneMore"));
                    }
                    l.setForeground(Color.RED);
                    configPanel.add(l);
                    configPanel.add(new JLabel(""));
                    l.addComponentListener(new ComponentListener() {
                        @Override
                        public void componentHidden(final ComponentEvent e) {
                            /* do nothing */
                        }

View Full Code Here

Examples of javax.swing.JLayeredPane.addComponentListener()

                quit.setOpaque(false);
                controls.add(buttonPanel, BorderLayout.NORTH);
                controls.setOpaque(false);
                buttonPanel.setOpaque(false);
               
                layeredPane.addComponentListener(new ComponentAdapter() {

                    @Override
                    public void componentResized(ComponentEvent e) {
                        JComponent c = (JComponent) e.getComponent();
                        Rectangle r = c.getBounds();
View Full Code Here

Examples of javax.swing.JList.addComponentListener()

                        if (source instanceof JList && source.getClass().getName().equals("org.netbeans.modules.editor.hints.borrowed.ListCompletionView")) {
                            JList list = (JList) source;

                            if (list.isDisplayable()) { // about to become visible
                                list.addListSelectionListener(EditorHintsListener.getInstance());
                                list.addComponentListener(EditorHintsListener.getInstance());

                                // Attempt to speak selection.
                                Object selectedValue = list.getSelectedValue();
                                if (TextToSpeechOptions.isScreenReading() && selectedValue != null && selectedValue instanceof Fix) {
                                    Fix f = (Fix) selectedValue;
View Full Code Here

Examples of javax.swing.JPanel.addComponentListener()

    listBoxPnRight.add(btnPanel2, BorderLayout.EAST);

    centerPn.add(listBoxPnRight);

    final JPanel result = new JPanel(new BorderLayout());
    result.addComponentListener(new ComponentAdapter() {

      @Override
      public void componentHidden(ComponentEvent e) {
        if (e.getComponent() == result) {
          mRefreshListTimer = null;
View Full Code Here

Examples of javax.swing.JPanel.addComponentListener()

        builder.add(viewHandler.getOrderPanelView().buildPanel(window, "200",
                null, "240", false), cc.xy(1, 1));
        builder.add(ButtonBarFactory.buildCenteredBar(buttonExcelBasis), cc.xy(
                1, 3));
        JPanel panel = builder.getPanel();
        panel.addComponentListener(viewHandler.getPanelBasisListener(window));
        return panel;
    }

    private void initComponents(final WindowInterface window) {
        yearChooser = viewHandler.getYearChooser();
View Full Code Here

Examples of javax.swing.JPanel.addComponentListener()

    builder.addLabel("Totale kostnader:", cc.xy(5, 1));
    builder.add(labelTotalCost, cc.xy(7, 1));
    builder.add(new JScrollPane(tableTransportCostOrder), cc.xyw(1, 3, 7));

    JPanel panelBasis = builder.getPanel();
    panelBasis.addComponentListener(new PanelBasisListener(window));

    return panelBasis;
  }

  private JPanel buildTransportCostBasisPanel(final JButton buttonRemove,
View Full Code Here

Examples of javax.swing.JScrollPane.addComponentListener()

        ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
        ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    if (comp instanceof TableTab) {
      pane.setVerticalScrollBar(((TableTab) comp).getVerticalScrollBar());
    }
    pane.addComponentListener(new ComponentListener() {
      public void componentResized(ComponentEvent event) {
        int width = pane.getViewport().getWidth();
        comp.setSize(new Dimension(width, comp.getHeight()));
      }
View Full Code Here

Examples of javax.swing.JScrollPane.addComponentListener()

      toolBar.add(new PaletteButton(data, context));
    }

    final JScrollPane paletteScrollpane = new JScrollPane(toolBar);
    paletteScrollpane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    paletteScrollpane.addComponentListener(new ScrollbarSyncHandler(paletteScrollpane.getVerticalScrollBar(), toolBar));
    return paletteScrollpane;
  }

  private void rebuildReportMenu()
  {
View Full Code Here

Examples of javax.swing.JScrollPane.addComponentListener()

      toolBar.add(new PaletteButton(data, context));
    }

    final JScrollPane paletteScrollpane = new JScrollPane(toolBar);
    paletteScrollpane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    paletteScrollpane.addComponentListener(new ScrollbarSyncHandler(paletteScrollpane.getVerticalScrollBar(), toolBar));
    return paletteScrollpane;
  }

  private void rebuildReportMenu()
  {
View Full Code Here

Examples of javax.swing.JSplitPane.addComponentListener()

        } catch (IOException e) {
            e.printStackTrace();
            return;
        }
        final JSplitPane splitPane = createSplitPane();
        splitPane.addComponentListener(new ComponentAdapter() {
            private boolean firstTime = true;

            @Override
            public void componentResized(ComponentEvent e) {
                if (firstTime) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.