Package net.sf.jabref

Examples of net.sf.jabref.FocusRequester


    public void actionPerformed(ActionEvent e) {
        Date date = datePicker.getDate();
        if (date != null) {
            editor.setText(Util.easyDateFormat(date));
            // Set focus to editor component after changing its text:
            new FocusRequester(editor.getTextComponent());
        }
    }
View Full Code Here


        tf.setName("tf");
    // add action to reset-button. resets tf and requests focus
    reset.addActionListener(new AbstractAction() {
      public void actionPerformed(ActionEvent event) {
        tf.setText("");
        new FocusRequester(tf);
      }
    });

        JPanel main = new JPanel();
        main.setLayout(gbl);
View Full Code Here

          }
         
          if (frame.getTabbedPane().getTabCount() > 0) {
        sidePaneManager.toggle(fetcherTitle);
        if (sidePaneManager.isComponentVisible(fetcherTitle)) {
          new FocusRequester(getTextField());
        }
      }         
        }
View Full Code Here

        EntryEditor editor = panel.getEntryEditor(entry);
        if (mode != BasePanel.SHOWING_EDITOR) {
            panel.showEntryEditor(editor);
            panel.adjustSplitter();
        }
        new FocusRequester(editor);
    }
View Full Code Here

        if (previewActive)
            panel.showPreview(preview);
        else
            panel.hideBottomComponent();
        panel.adjustSplitter();
        new FocusRequester(table);
    }
View Full Code Here

    getContentPane().add(mainPanel, BorderLayout.CENTER);
    getContentPane().add(optionsPanel, BorderLayout.SOUTH);
    this.setSize(getSize());
    pack();
    Util.placeDialog(this, owner);
    new FocusRequester(table);
  }
View Full Code Here

TOP

Related Classes of net.sf.jabref.FocusRequester

Copyright © 2018 www.massapicom. 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.