Package javax.swing

Examples of javax.swing.JScrollPane


    reportPaneHolder.setOpaque(false);
    reportPaneHolder.setBackground(null);
    reportPaneHolder.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    reportPaneHolder.add(drawablePanel);

    reportPaneScrollPane = new JScrollPane(reportPaneHolder);
    reportPaneScrollPane.getVerticalScrollBar().setUnitIncrement(20);
    reportPaneScrollPane.setBackground(null);
    reportPaneScrollPane.setOpaque(false);
    reportPaneScrollPane.getViewport().setOpaque(false);
    ((JComponent) reportPaneScrollPane.getViewport().getView()).setOpaque(false);
View Full Code Here


    buttonPane.add(new JButton(new SaveAction()));

    final JPanel contentPane = new JPanel();
    contentPane.setLayout(new BorderLayout());
    contentPane.add(buttonPane, BorderLayout.NORTH);
    contentPane.add(new JScrollPane(profileList), BorderLayout.CENTER);
    return contentPane;
  }
View Full Code Here

    textArea.setLineWrap(false);
    textArea.setEditable(true);

    final JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.add(new JScrollPane(textArea), BorderLayout.CENTER);
    return panel;
  }
View Full Code Here

    gbc.gridx = 1;
    gbc.gridy = 0;
    gbc.fill = GridBagConstraints.BOTH;
    gbc.weightx = 1;
    gbc.weighty = 1;
    panel.add(new JScrollPane(patternField), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 1;
    panel.add(new JLabel("Extension"), gbc);
View Full Code Here

    gbc.gridx = 1;
    gbc.gridy = 0;
    gbc.fill = GridBagConstraints.BOTH;
    gbc.weightx = 1;
    gbc.weighty = 1;
    panel.add(new JScrollPane(formulaField), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 1;
    panel.add(new JLabel("Extension"), gbc);
View Full Code Here

    expressionsTable = new JTable(expressionsTableModel);
    expressionsTable.setDefaultRenderer(String.class, new EditableMetaDataRenderer());

    final JPanel contentPane = new JPanel();
    contentPane.setLayout(new BorderLayout());
    contentPane.add(new JScrollPane(expressionsTable), BorderLayout.CENTER);
    setContentPane(contentPane);

    final JMenu actionsMenu = new JMenu("Actions");
    final SortAction sortAction = new SortAction();
    actionsMenu.add(sortAction);
View Full Code Here

    expressionsTable = new JTable(expressionsTableModel);
    expressionsTable.setDefaultRenderer(String.class, new EditableMetaDataRenderer());

    final JPanel contentPane = new JPanel();
    contentPane.setLayout(new BorderLayout());
    contentPane.add(new JScrollPane(expressionsTable), BorderLayout.CENTER);
    setContentPane(contentPane);
    setSize(800, 600);
  }
View Full Code Here

    tree.setCellRenderer(new ConfigTreeRenderer());
    tree.setRootVisible(false);
    tree.setShowsRootHandles(true);
    tree.addTreeSelectionListener(new ModuleTreeSelectionHandler());
   
    return new JScrollPane
        (tree, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
            ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
  }
View Full Code Here

                    enableAppropriately();
                }
            }
        });

        return new JScrollPane(list);
    }
View Full Code Here

            }
        });

        defaultTreeBackground = treeComponent.getTree().getBackground();

        treeScrollPane = new JScrollPane();

        treeComponent.getTree().setBackground(workingBackgroundColor)//change the color to better indicate that
        showTextInViewport("Has not built projects/tasks yet.");

        return treeScrollPane;
View Full Code Here

TOP

Related Classes of javax.swing.JScrollPane

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.