Package javax.swing

Examples of javax.swing.JScrollPane


    mSettingsPn.add(DefaultComponentFactory.getInstance().createSeparator(
        mLocalizer.msg("buttons.time", "Time buttons")), cc.xyw(1, 1, 3));

    mTimeButtonsPn = new TimesListPanel(Settings.propTimeButtons.getIntArray());
   
    JScrollPane pane = new JScrollPane(mTimeButtonsPn);
    pane.setBorder(BorderFactory.createEmptyBorder());
    pane.setViewportBorder(BorderFactory.createEmptyBorder());
   
    mSettingsPn.add(pane, cc.xy(2, 3));
   
    if(TVBrowser.isUsingSystemTray()) {
      JEditorPane helpLabel = UiUtilities.createHtmlHelpTextArea(mLocalizer.msg("info","The times of the  buttons are also used for the '<a href=\"#link\">{0}</a>' in the tray menu.", TrayOnTimeSettingsTab.getName()), new HyperlinkListener() {
View Full Code Here


        c.gridwidth = 4;
        c.weightx = 1;
        c.weighty = 1;
        c.fill = GridBagConstraints.BOTH;
        c.insets = new Insets(5, 5, 5, 5);
        JScrollPane scrollPane = new JScrollPane();
        scrollPane.setViewportView(resultList);
        resultPanel.add(scrollPane, c);
        removeResultButton = new JButton("Remove");
        removeResultButton.setEnabled(false);
        removeResultButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
View Full Code Here

      public void itemStateChanged(ItemEvent e) {
        mShowTimeCounter.setEnabled(e.getStateChange() == ItemEvent.SELECTED);
      }
    });
   
    JScrollPane scrollPane = new JScrollPane(pb.getPanel());
    scrollPane.setBorder(null);
    scrollPane.setViewportBorder(null);
   
    JPanel scrollPanel = new JPanel(new FormLayout("default:grow","default"));
    scrollPanel.add(scrollPane,cc.xy(1,1));
   
    return scrollPanel;
View Full Code Here

    mTable.getColumnModel().getColumn(1).setMaxWidth(300);

    panel.add(new JLabel(mLocalizer.msg("titleFilterText","Show only programs with the following title:")), cc.xy(1,1));
    panel.add(mTitleSelection, cc.xy(3,1));
   
    panel.add(new JScrollPane(mTable), cc.xyw(1, 3, 3));

    ButtonBarBuilder2 builder = ButtonBarBuilder2.createLeftToRightBuilder();

    JButton config = new JButton(TVBrowserIcons.preferences(TVBrowserIcons.SIZE_SMALL));
View Full Code Here

    gbc.gridwidth = 2;
    gbc.fill = GridBagConstraints.BOTH;
    gbc.weightx = 1;
    gbc.weighty = 1;
    gbc.anchor = GridBagConstraints.WEST;
    final JScrollPane scrollPane = new JScrollPane(carrierPanel);
    scrollPane.getViewport().setBackground(carrierPanel.getBackground());
    add(scrollPane, gbc);

    final JPanel buttonPane = new JPanel();
    buttonPane.setLayout(new GridLayout(1, 1));
    buttonPane.add(updateButton);
View Full Code Here

    final JTextArea area = new JTextArea(this.licence);
    area.setLineWrap(true);
    area.setWrapStyleWord(true);
    area.setCaretPosition(0);
    area.setEditable(false);
    licencePanel.add(new JScrollPane(area));
    return licencePanel;

  }
View Full Code Here

    detailsAction = new DetailsAction();

    messageLabel = new JLabel();
    backtraceArea = new JTextArea();

    scroller = new JScrollPane(backtraceArea);
    scroller.setVisible(false);

    final JPanel detailPane = new JPanel();
    detailPane.setLayout(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints();
View Full Code Here

    private void applyScrollableUnitIncrement(int increment) {
        try {
            // Fix for the continuous scrolling issue (not very elegant..)
           
            JViewport vp = (JViewport) getParent();
            JScrollPane sp = (JScrollPane) vp.getParent();
            JScrollBar sb = sp.getVerticalScrollBar();
           
            if (increment != 0)
                sb.setUnitIncrement(increment);
        } catch (Exception e) {
            logger.warn("Could not set the incrememt for the scrollbar", e);
View Full Code Here

      model.setValueAt(depInfo.getLicenseName(), i, 2);
      model.setValueAt(depInfo.getInfo(), i, 3);
    }

    this.table = new JTable(model);
    add(new JScrollPane(this.table));

  }
View Full Code Here

    final ResourceBundleSupport bundleSupport = new ResourceBundleSupport(Locale.getDefault(),
        SwingPreviewModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(SwingPreviewModule.class));

    setLayout(new BorderLayout());
    this.table = SystemPropertiesPanel.createSystemPropertiesTable();
    add(new JScrollPane(this.table));

    // Add a popup menu to copy to the clipboard...
    this.copyPopupMenu = new JPopupMenu();

    final String label = bundleSupport.getString("system-properties-panel.popup-menu.copy");
View Full Code Here

TOP

Related Classes of javax.swing.JScrollPane

Copyright © 2015 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.