use of org.jabref.gui.push.PushToApplicationButton in project jabref by JabRef.
the class JabRefFrame method initLayout.
private void initLayout() {
tabbedPane.putClientProperty(Options.NO_CONTENT_BORDER_KEY, Boolean.TRUE);
setProgressBarVisible(false);
pushApplications = new PushToApplications();
pushExternalButton = new PushToApplicationButton(this, pushApplications.getApplications());
fillMenu();
createToolBar();
setJMenuBar(mb);
getContentPane().setLayout(new BorderLayout());
JPanel toolbarPanel = new JPanel(new WrapLayout(FlowLayout.LEFT));
toolbarPanel.add(tlb);
toolbarPanel.add(globalSearchBar);
getContentPane().add(toolbarPanel, BorderLayout.PAGE_START);
splitPane.setDividerSize(2);
splitPane.setBorder(null);
splitPane.setRightComponent(tabbedPane);
splitPane.setLeftComponent(sidePaneManager.getPanel());
getContentPane().add(splitPane, BorderLayout.CENTER);
UIManager.put("TabbedPane.contentBorderInsets", new Insets(0, 0, 0, 0));
sidePaneManager.updateView();
GridBagLayout gbl = new GridBagLayout();
GridBagConstraints con = new GridBagConstraints();
con.fill = GridBagConstraints.BOTH;
con.anchor = GridBagConstraints.WEST;
JPanel status = new JPanel();
status.setLayout(gbl);
con.weighty = 0;
con.weightx = 0;
con.gridwidth = 1;
con.insets = new Insets(0, 2, 0, 0);
gbl.setConstraints(statusLabel, con);
status.add(statusLabel);
con.weightx = 1;
con.insets = new Insets(0, 4, 0, 0);
con.gridwidth = 1;
gbl.setConstraints(statusLine, con);
status.add(statusLine);
con.weightx = 0;
con.gridwidth = GridBagConstraints.REMAINDER;
con.insets = new Insets(2, 4, 2, 2);
gbl.setConstraints(progressBar, con);
status.add(progressBar);
statusLabel.setForeground(GUIGlobals.ENTRY_EDITOR_LABEL_COLOR.darker());
getContentPane().add(status, BorderLayout.PAGE_END);
// Drag and drop for tabbedPane:
TransferHandler xfer = new EntryTableTransferHandler(null, this, null);
tabbedPane.setTransferHandler(xfer);
tlb.setTransferHandler(xfer);
mb.setTransferHandler(xfer);
sidePaneManager.getPanel().setTransferHandler(xfer);
}
Aggregations