Package javax.swing

Examples of javax.swing.JScrollPane


  public List(Widget parent, String name) throws GUIException {
    super(parent, name);
    list = new JList();
    list.setCellRenderer(new ListCellRenderer());
    scrollPane = new JScrollPane(list);
    list.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent e) {
        try {
          MapDataModel model = getDataModel();
          if (sendEvents && model != null && !e.getValueIsAdjusting()) {
View Full Code Here


    panels = new ArrayList();
  }
 
  public void addPanel(JCascadePanel panel) {
    JButton button = panel.getButton();
    JScrollPane scrollPane = new JScrollPane(panel);
    final JPanel container = new JPanel(new BorderLayout());
    container.add(scrollPane, BorderLayout.CENTER);

    button.setMaximumSize(new Dimension(LFConstants.MAX_WIDTH, LFConstants.DEFAULT_HEIGHT));
    button.setAlignmentX(1.0f);
View Full Code Here

    tableHeader = table.getTableHeader();
    sorter = new TableSorter();
    sorter.addMouseListenerToHeaderInTable(table);
    messageModel = new MessageModel();
    scrollPane = new JScrollPane(table);
    columnKeys = new ArrayList();
    columnLabels = new ArrayList();
    columnSizes = new ArrayList();

    table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
View Full Code Here

    total++;

    setPreferredSize(new Dimension(200,30*itemCount));
    JFrame frame = new JFrame(controller.getName());
    frame.setContentPane(new JScrollPane(this));
    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        total--;
        if (total == 0) {
          System.exit(0);
View Full Code Here

  public TextPane(Widget parent, String name) throws GUIException {
    super(parent, name);
    textPane = new JTextPane();
    document = textPane.getDocument();
    scrollPane = new JScrollPane(textPane);

    Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);

    Style black = textPane.addStyle("black", def);
    ColorConstants.setForeground(black, Color.black);
View Full Code Here

          }
        }
      }
    });
    tree.setCellRenderer(new TreeCellRenderer());
    scrollPane = new JScrollPane(tree);
    tree.putClientProperty("JTree.lineStyle", "Angled");
  }
View Full Code Here

  public IconView(Widget parent, String name) throws GUIException {
    super(parent, name);
    JIconView.initialize();
    iconView = new JIconView();
    iconView.setBackground(Color.white);
    scrollPane = new JScrollPane(iconView);
    iconView.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent e) {
        int index = e.getFirstIndex();
        MapDataModel model = getDataModel();
        try {
View Full Code Here

        //Configuration panel
        //**********************************************************
        JPanel panelConfig = new JPanel();
        panelConfig.setLayout(Layout.getGBL());
       
        JScrollPane scroller = new JScrollPane(textFileTypes);
        scroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);

        String types = "";
        for (String type : settings.getStringArray(DcRepository.ModuleSettings.stFileImportFileTypes)) {
            types += types.length() > 0 ? "," : "";
            types += type;
View Full Code Here

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

    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = 1;
    gbc.weightx = 1;
    gbc.weighty = 1;
    gbc.fill = GridBagConstraints.BOTH;
    add(new JScrollPane(messageTwoField), gbc);
  }
View Full Code Here

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

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

    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = 2;
    gbc.anchor = GridBagConstraints.EAST;
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.