List of usage examples for javax.swing JPanel setBorder
@BeanProperty(preferred = true, visualUpdate = true, description = "The component's border.") public void setBorder(Border border)
From source file:com.att.aro.ui.view.videotab.VideoTab.java
private JPanel getTitledWrapper(String title, JComponent component) { JPanel pane = new JPanel(new GridBagLayout()); pane.setOpaque(false);/* w w w . j a v a2 s. c om*/ pane.setBorder(new RoundedBorder(new Insets(0, 10, 10, 10), Color.WHITE)); JPanel fullPanel = new JPanel(new BorderLayout()); fullPanel.setOpaque(false); // Create the header bar BpHeaderPanel header = new BpHeaderPanel(ResourceBundleHelper.getMessageString(title)); header.setImageTitle(Images.BLUE_HEADER.getImage(), null); if (component != null) { header.add(component, BorderLayout.EAST); } fullPanel.add(header, BorderLayout.NORTH); pane.add(fullPanel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, headInsets, 0, 0)); return pane; }
From source file:guineu.util.dialogs.AxesSetupDialog.java
/** * Constructor//from ww w . jav a2s . com */ public AxesSetupDialog(XYPlot plot) { // Make dialog modal super(GuineuCore.getDesktop().getMainFrame(), true); xAxis = plot.getDomainAxis(); yAxis = plot.getRangeAxis(); NumberFormat defaultFormatter = NumberFormat.getNumberInstance(); NumberFormat xAxisFormatter = defaultFormatter; if (xAxis instanceof NumberAxis) { xAxisFormatter = ((NumberAxis) xAxis).getNumberFormatOverride(); } NumberFormat yAxisFormatter = defaultFormatter; if (yAxis instanceof NumberAxis) { yAxisFormatter = ((NumberAxis) yAxis).getNumberFormatOverride(); } // Create labels and fields JLabel lblXTitle = new JLabel(xAxis.getLabel()); JLabel lblXAutoRange = new JLabel("Auto range"); JLabel lblXMin = new JLabel("Minimum"); JLabel lblXMax = new JLabel("Maximum"); JLabel lblXAutoTick = new JLabel("Auto tick size"); JLabel lblXTick = new JLabel("Tick size"); JLabel lblYTitle = new JLabel(yAxis.getLabel()); JLabel lblYAutoRange = new JLabel("Auto range"); JLabel lblYMin = new JLabel("Minimum"); JLabel lblYMax = new JLabel("Maximum"); JLabel lblYAutoTick = new JLabel("Auto tick size"); JLabel lblYTick = new JLabel("Tick size"); checkXAutoRange = new JCheckBox(); checkXAutoRange.addActionListener(this); checkXAutoTick = new JCheckBox(); checkXAutoTick.addActionListener(this); fieldXMin = new JFormattedTextField(xAxisFormatter); fieldXMax = new JFormattedTextField(xAxisFormatter); fieldXTick = new JFormattedTextField(xAxisFormatter); checkYAutoRange = new JCheckBox(); checkYAutoRange.addActionListener(this); checkYAutoTick = new JCheckBox(); checkYAutoTick.addActionListener(this); fieldYMin = new JFormattedTextField(yAxisFormatter); fieldYMax = new JFormattedTextField(yAxisFormatter); fieldYTick = new JFormattedTextField(yAxisFormatter); // Create a panel for labels and fields JPanel pnlLabelsAndFields = new JPanel(new GridLayout(0, 2)); pnlLabelsAndFields.add(lblXTitle); pnlLabelsAndFields.add(new JPanel()); pnlLabelsAndFields.add(lblXAutoRange); pnlLabelsAndFields.add(checkXAutoRange); pnlLabelsAndFields.add(lblXMin); pnlLabelsAndFields.add(fieldXMin); pnlLabelsAndFields.add(lblXMax); pnlLabelsAndFields.add(fieldXMax); if (xAxis instanceof NumberAxis) { pnlLabelsAndFields.add(lblXAutoTick); pnlLabelsAndFields.add(checkXAutoTick); pnlLabelsAndFields.add(lblXTick); pnlLabelsAndFields.add(fieldXTick); } // Empty row pnlLabelsAndFields.add(new JPanel()); pnlLabelsAndFields.add(new JPanel()); pnlLabelsAndFields.add(lblYTitle); pnlLabelsAndFields.add(new JPanel()); pnlLabelsAndFields.add(lblYAutoRange); pnlLabelsAndFields.add(checkYAutoRange); pnlLabelsAndFields.add(lblYMin); pnlLabelsAndFields.add(fieldYMin); pnlLabelsAndFields.add(lblYMax); pnlLabelsAndFields.add(fieldYMax); if (yAxis instanceof NumberAxis) { pnlLabelsAndFields.add(lblYAutoTick); pnlLabelsAndFields.add(checkYAutoTick); pnlLabelsAndFields.add(lblYTick); pnlLabelsAndFields.add(fieldYTick); } // Create buttons JPanel pnlButtons = new JPanel(); btnOK = new JButton("OK"); btnOK.addActionListener(this); btnApply = new JButton("Apply"); btnApply.addActionListener(this); btnCancel = new JButton("Cancel"); btnCancel.addActionListener(this); pnlButtons.add(btnOK); pnlButtons.add(btnApply); pnlButtons.add(btnCancel); // Put everything into a main panel JPanel pnlAll = new JPanel(new BorderLayout()); pnlAll.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); add(pnlAll); pnlAll.add(pnlLabelsAndFields, BorderLayout.CENTER); pnlAll.add(pnlButtons, BorderLayout.SOUTH); pack(); setTitle("Please set ranges for axes"); setResizable(false); setLocationRelativeTo(GuineuCore.getDesktop().getMainFrame()); getValuesToControls(); }
From source file:net.sf.mzmine.util.dialogs.AxesSetupDialog.java
/** * Constructor/*ww w . java 2 s . c o m*/ */ public AxesSetupDialog(XYPlot plot) { // Make dialog modal super(MZmineCore.getDesktop().getMainWindow(), true); xAxis = plot.getDomainAxis(); yAxis = plot.getRangeAxis(); NumberFormat defaultFormatter = NumberFormat.getNumberInstance(); NumberFormat xAxisFormatter = defaultFormatter; if (xAxis instanceof NumberAxis) xAxisFormatter = ((NumberAxis) xAxis).getNumberFormatOverride(); NumberFormat yAxisFormatter = defaultFormatter; if (yAxis instanceof NumberAxis) yAxisFormatter = ((NumberAxis) yAxis).getNumberFormatOverride(); // Create labels and fields JLabel lblXTitle = new JLabel(xAxis.getLabel()); JLabel lblXAutoRange = new JLabel("Auto range"); JLabel lblXMin = new JLabel("Minimum"); JLabel lblXMax = new JLabel("Maximum"); JLabel lblXAutoTick = new JLabel("Auto tick size"); JLabel lblXTick = new JLabel("Tick size"); JLabel lblYTitle = new JLabel(yAxis.getLabel()); JLabel lblYAutoRange = new JLabel("Auto range"); JLabel lblYMin = new JLabel("Minimum"); JLabel lblYMax = new JLabel("Maximum"); JLabel lblYAutoTick = new JLabel("Auto tick size"); JLabel lblYTick = new JLabel("Tick size"); checkXAutoRange = new JCheckBox(); checkXAutoRange.addActionListener(this); checkXAutoTick = new JCheckBox(); checkXAutoTick.addActionListener(this); fieldXMin = new JFormattedTextField(xAxisFormatter); fieldXMax = new JFormattedTextField(xAxisFormatter); fieldXTick = new JFormattedTextField(xAxisFormatter); checkYAutoRange = new JCheckBox(); checkYAutoRange.addActionListener(this); checkYAutoTick = new JCheckBox(); checkYAutoTick.addActionListener(this); fieldYMin = new JFormattedTextField(yAxisFormatter); fieldYMax = new JFormattedTextField(yAxisFormatter); fieldYTick = new JFormattedTextField(yAxisFormatter); // Create a panel for labels and fields JPanel pnlLabelsAndFields = new JPanel(new GridLayout(0, 2)); pnlLabelsAndFields.add(lblXTitle); pnlLabelsAndFields.add(new JPanel()); pnlLabelsAndFields.add(lblXAutoRange); pnlLabelsAndFields.add(checkXAutoRange); pnlLabelsAndFields.add(lblXMin); pnlLabelsAndFields.add(fieldXMin); pnlLabelsAndFields.add(lblXMax); pnlLabelsAndFields.add(fieldXMax); if (xAxis instanceof NumberAxis) { pnlLabelsAndFields.add(lblXAutoTick); pnlLabelsAndFields.add(checkXAutoTick); pnlLabelsAndFields.add(lblXTick); pnlLabelsAndFields.add(fieldXTick); } // Empty row pnlLabelsAndFields.add(new JPanel()); pnlLabelsAndFields.add(new JPanel()); pnlLabelsAndFields.add(lblYTitle); pnlLabelsAndFields.add(new JPanel()); pnlLabelsAndFields.add(lblYAutoRange); pnlLabelsAndFields.add(checkYAutoRange); pnlLabelsAndFields.add(lblYMin); pnlLabelsAndFields.add(fieldYMin); pnlLabelsAndFields.add(lblYMax); pnlLabelsAndFields.add(fieldYMax); if (yAxis instanceof NumberAxis) { pnlLabelsAndFields.add(lblYAutoTick); pnlLabelsAndFields.add(checkYAutoTick); pnlLabelsAndFields.add(lblYTick); pnlLabelsAndFields.add(fieldYTick); } // Create buttons JPanel pnlButtons = new JPanel(); btnOK = new JButton("OK"); btnOK.addActionListener(this); btnApply = new JButton("Apply"); btnApply.addActionListener(this); btnCancel = new JButton("Cancel"); btnCancel.addActionListener(this); pnlButtons.add(btnOK); pnlButtons.add(btnApply); pnlButtons.add(btnCancel); // Put everything into a main panel JPanel pnlAll = new JPanel(new BorderLayout()); pnlAll.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); add(pnlAll); pnlAll.add(pnlLabelsAndFields, BorderLayout.CENTER); pnlAll.add(pnlButtons, BorderLayout.SOUTH); pack(); setTitle("Please set ranges for axes"); setResizable(false); setLocationRelativeTo(MZmineCore.getDesktop().getMainWindow()); getValuesToControls(); }
From source file:GeometryByReferenceNIOBuffer.java
JPanel createUpdatePanel() { JPanel panel = new JPanel(); panel.setBorder(new TitledBorder("Other Attributes")); String updateComp[] = { "None", "Geometry", "Color" }; transparency = new JCheckBox("EnableTransparency", false); transparency.addActionListener(this); panel.add(transparency);//from ww w . j a va 2 s.c o m updates = new JComboBox(updateComp); updates.setLightWeightPopupEnabled(false); updates.addActionListener(this); updates.setSelectedIndex(0); panel.add(new JLabel("UpdateData")); panel.add(updates); return panel; }
From source file:misc.TablePrintDemo1.java
/** * Adds to and lays out all GUI components on the {@code contentPane} panel. * <p>/* w ww . j a va 2 s . c om*/ * It is recommended that you <b>NOT</b> try to understand this code. It was * automatically generated by the NetBeans GUI builder. * */ private void addComponentsToContentPane() { JPanel bottomPanel = new JPanel(); bottomPanel.setBorder(BorderFactory.createTitledBorder("Printing")); GroupLayout bottomPanelLayout = new GroupLayout(bottomPanel); bottomPanel.setLayout(bottomPanelLayout); bottomPanelLayout.setHorizontalGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(bottomPanelLayout.createSequentialGroup().addContainerGap() .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(headerBox).addComponent(footerBox)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false) .addComponent(footerField) .addComponent(headerField, GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false) .addGroup(bottomPanelLayout.createSequentialGroup().addComponent(fitWidthBox) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(printButton)) .addGroup(bottomPanelLayout.createSequentialGroup().addComponent(showPrintDialogBox) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(interactiveBox))) .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); bottomPanelLayout.setVerticalGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(bottomPanelLayout.createSequentialGroup() .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(headerBox) .addComponent(headerField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(interactiveBox).addComponent(showPrintDialogBox)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(footerBox) .addComponent(footerField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(fitWidthBox).addComponent(printButton)) .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); GroupLayout layout = new GroupLayout(contentPane); contentPane.setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap() .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(scroll, GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE) .addComponent(gradesLabel).addComponent(bottomPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addContainerGap())); layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(gradesLabel) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addComponent(scroll, GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(bottomPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addContainerGap())); }
From source file:eu.delving.sip.Application.java
private JPanel createStatePanel() { statusPanel.setReaction(ABSENT, allFrames.prepareForNothing()); statusPanel.setReaction(NO_DATA, importAction); statusPanel.setReaction(IMPORTED, new InputAnalyzer()); statusPanel.setReaction(ANALYZED_IMPORT, allFrames.prepareForDelimiting()); statusPanel.setReaction(DELIMITED, new ConvertPerformer()); statusPanel.setReaction(SOURCED, new InputAnalyzer()); statusPanel.setReaction(ANALYZED_SOURCE, allFrames.prepareForMapping(desktop)); statusPanel.setReaction(MAPPING, validateAction); if (uploadAction == null) { statusPanel.setReaction(VALIDATED, allFrames.prepareForNothing()); } else {//from w w w . j a v a 2 s . co m statusPanel.setReaction(VALIDATED, uploadAction); } JPanel p = new JPanel(new GridLayout(1, 0, 6, 6)); p.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createBevelBorder(0), BorderFactory.createEmptyBorder(6, 6, 6, 6))); p.add(statusPanel); JPanel rightPanel = new JPanel(new BorderLayout()); rightPanel.add(new WorkPanel(sipModel), BorderLayout.CENTER); rightPanel.add(createButtonPanel(), BorderLayout.WEST); p.add(rightPanel); return p; }
From source file:org.rdv.viz.dial.DialPanel.java
/** * Creates the panel containing settings. * /* www .j ava 2 s . c o m*/ * @return the settings panel */ private JPanel createSettingsPanel() { JPanel settingsPanel = new JPanel(); settingsPanel.setLayout(new BorderLayout()); settingsPanel.setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5)); lowerBoundTextField = new JTextField(6); lowerBoundTextField.setToolTipText("The minimum value for the dial"); lowerBoundTextField.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { setRangeFromTextFields(); } }); settingsPanel.add(lowerBoundTextField, BorderLayout.LINE_START); upperBoundTextField = new JTextField(6); upperBoundTextField.setToolTipText("The maximum value for the dial"); upperBoundTextField.setHorizontalAlignment(JTextField.TRAILING); upperBoundTextField.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { setRangeFromTextFields(); } }); settingsPanel.add(upperBoundTextField, BorderLayout.LINE_END); return settingsPanel; }
From source file:de.tbuchloh.kiskis.gui.SecuredElementView.java
private Component createMainTab() { final JPanel textFields = new JPanel(new SpringLayout()); textFields.setBorder(LnFHelper.createDefaultBorder()); final JLabel nameLabel = LnFHelper.createLabel(M.getString("name_label")); //$NON-NLS-1$ nameLabel.setVerticalAlignment(SwingConstants.TOP); nameLabel.setLabelFor(_name);/*from w w w.j a v a 2s . c o m*/ textFields.add(nameLabel); textFields.add(_name); final JLabel pwdLabel = LnFHelper.createLabel(M.getString("password_label")); //$NON-NLS-1$ pwdLabel.setVerticalAlignment(SwingConstants.TOP); pwdLabel.setLabelFor(_pwdField); textFields.add(pwdLabel); textFields.add(_pwdField); final JPanel datePanel = new JPanel(); final GridBagBuilder builder = new GridBagBuilder(datePanel); builder.setAlignment(GridBagConstraints.NORTHWEST); builder.add(_dateField); builder.add(_neverBox); builder.setFill(GridBagConstraints.NONE); builder.setAlignment(GridBagConstraints.EAST); builder.addLast(_historyLink); builder.setFill(GridBagConstraints.BOTH); builder.setAlignment(GridBagConstraints.NORTHWEST); final JLabel expiresLabel = LnFHelper.createLabel(M.getString("expires_label")); //$NON-NLS-1$ expiresLabel.setVerticalAlignment(SwingConstants.TOP); expiresLabel.setLabelFor(datePanel); textFields.add(expiresLabel); textFields.add(datePanel); SpringUtilities.makeCompactGrid(textFields, 3, 2, 5, 5, 5, 5); return textFields; }
From source file:eu.europeana.sip.gui.SipCreatorGUI.java
public SipCreatorGUI() throws FileStoreException { super("Delving SIP Creator"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); MetadataModel metadataModel = loadMetadataModel(); File fileStoreDirectory = getFileStoreDirectory(); FileStore fileStore = new FileStoreImpl(fileStoreDirectory, metadataModel); GroovyCodeResource groovyCodeResource = new GroovyCodeResource(); this.dataSetListModel = new DataSetListModel(new DataSetListModel.ConnectedStatus() { @Override/*from w ww . j a v a 2 s .c om*/ public boolean isConnected() { return connectedBox.isSelected(); } }); this.dataSetList = new JList(dataSetListModel); this.sipModel = new SipModel(fileStore, metadataModel, groovyCodeResource, new PopupExceptionHandler()); this.dataSetClient = new DataSetClient(new DataSetClient.Context() { @Override public String getServerUrl() { return sipModel.getAppConfigModel().getServerUrl(); } @Override public String getAccessKey() { return sipModel.getAppConfigModel().getAccessKey(); } @Override public void setInfo(DataSetInfo dataSetInfo) { dataSetListModel.setDataSetInfo(dataSetInfo); dataSetActions.setDataSetInfo(dataSetInfo); } @Override public void setList(List<DataSetInfo> list) { if (list != null) { Set<String> untouched = dataSetListModel.setDataSetInfoList(list); if (!untouched.isEmpty()) { dataSetActions.setUntouched(untouched); } for (DataSetInfo dataSetInfo : list) { dataSetActions.setDataSetInfo(dataSetInfo); } } else { log.warn("received empty list from the server"); } } @Override public void tellUser(String message) { sipModel.getUserNotifier().tellUser(message); } @Override public void disconnected() { connectedBox.setSelected(false); sipModel.getUserNotifier().tellUser(String.format("Disconnected from Repository at %s", sipModel.getAppConfigModel().getServerHostPort())); } }); dataSetActions = new DataSetActions(this, sipModel, dataSetClient, new Runnable() { @Override public void run() { dataSetListModel.clear(); for (FileStore.DataSetStore dataSetStore : sipModel.getFileStore().getDataSetStores().values()) { dataSetListModel.setDataSetStore(dataSetStore); } dataSetListModel.setPattern(filter.getText()); } }); setJMenuBar(createMenuBar()); JPanel main = new JPanel(new BorderLayout(MARGIN, MARGIN)); main.setBorder(BorderFactory.createEmptyBorder(MARGIN, MARGIN, MARGIN, MARGIN)); JPanel north = new JPanel(new BorderLayout()); north.setBorder( BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(MARGIN, MARGIN, 0, MARGIN), BorderFactory.createRaisedBevelBorder())); titleLabel.setOpaque(true); titleLabel.setFont(new Font("Sans", Font.BOLD, 24)); JLabel northRight = new JLabel(new ImageIcon(getClass().getResource("/delving-logo.png"))); north.add(createFilterPanel(), BorderLayout.WEST); north.add(titleLabel, BorderLayout.CENTER); north.add(northRight, BorderLayout.EAST); getContentPane().add(north, BorderLayout.NORTH); getContentPane().add(main, BorderLayout.CENTER); JPanel south = new JPanel(new GridLayout(1, 0)); south.add(createConnectPanel()); south.add(createFinishedPanel()); getContentPane().add(south, BorderLayout.SOUTH); main.add(createList(), BorderLayout.CENTER); main.add(dataSetActions.getPanel(), BorderLayout.EAST); setSize(SIZE); setLocation((Toolkit.getDefaultToolkit().getScreenSize().width - SIZE.width) / 2, (Toolkit.getDefaultToolkit().getScreenSize().height - SIZE.height) / 2); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { for (FileStore.DataSetStore dataSetStore : sipModel.getFileStore().getDataSetStores().values()) { dataSetListModel.setDataSetStore(dataSetStore); } } }); }
From source file:org.nees.rpi.vis.ui.ProfilePlotFrame.java
private void initSliderArea() { JPanel sliderArea = new JPanel(); sliderArea.setOpaque(false);//from w w w . ja va 2 s . c o m sliderArea.setLayout(new BorderLayout()); sliderArea.setBorder(BorderFactory.createTitledBorder("Time")); contentPane.add(sliderArea, BorderLayout.SOUTH); timeSlider = new JSlider(); timeSlider.setOpaque(false); timeSlider.addChangeListener(new ProfileSliderChangeListener()); timeSlider.addMouseListener(new ProfileSliderMouseListener()); timeLabel = new JLabel(); styleTimeLabel(); JPanel buttonArea = new JPanel(); buttonArea.setOpaque(false); BoxLayout buttonAreaLayout = new BoxLayout(buttonArea, BoxLayout.Y_AXIS); buttonArea.setLayout(buttonAreaLayout); playButton = new VisLinkButton("Play", getClass().getResource("/images/profile-plot/plotplay.png")); playButton.setToolTipText("Display a timed incremental sequence of the profiles"); playButton.addActionListener(new PlayProfilesMovie()); pauseButton = new VisLinkButton("Pause", getClass().getResource("/images/profile-plot/plotpause.png")); pauseButton.setToolTipText("Pause the playback of the profiles sequence"); pauseButton.addActionListener(new PauseProfilesMovie()); pauseButton.setVisible(false); nextButton = new VisLinkButton("Forward", getClass().getResource("/images/profile-plot/plotnext.png")); nextButton.setToolTipText("Plot the profile for the next time increment"); nextButton.addActionListener(new MoveToNextTimeIncrement()); previousButton = new VisLinkButton("Back", getClass().getResource("/images/profile-plot/plotprevious.png")); previousButton.setToolTipText("Plot the profile for the previous time increment"); previousButton.addActionListener(new MoveToPreviousTimeIncrement()); buttonArea.add(playButton); buttonArea.add(pauseButton); buttonArea.add(nextButton); buttonArea.add(previousButton); sliderArea.add(timeSlider, BorderLayout.CENTER); sliderArea.add(timeLabel, BorderLayout.SOUTH); sliderArea.add(buttonArea, BorderLayout.WEST); }