Package javax.swing

Examples of javax.swing.JScrollPane


        });
       
        JList list = new JList(ch);
        list.setCellRenderer(new ChannelListCellRenderer(true, true));
       
        channelPanel.add(new JScrollPane(list), BorderLayout.CENTER);
       
        JPanel btnPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
       
        JButton ok = new JButton(Localizer.getLocalization(Localizer.I18N_OK));
        ok.addActionListener(new ActionListener() {
View Full Code Here


        southPanel.add(mSendBtn, cc.xy(1, 1));
        southPanel.add(mShowDescription, cc.xy(3, 1));
        southPanel.add(close, cc.xy(5, 1));

        mDialog.getContentPane().add(panel, BorderLayout.NORTH);
        mDialog.getContentPane().add(new JScrollPane(mList), BorderLayout.CENTER);
        mDialog.getContentPane().add(southPanel, BorderLayout.SOUTH);

        layoutWindow("programListWindow", mDialog, new Dimension(500, 500));

        mDialog.setVisible(true);
View Full Code Here

  private TablePanel table;
 
  public ScrollPanel(LogFrame frame) {
    super(frame);
    this.table = new TablePanel(frame);
    JScrollPane pane = new JScrollPane(table,
        JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
        JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    pane.setVerticalScrollBar(table.getVerticalScrollBar());
    setLayout(new BorderLayout());
    add(pane);
  }
View Full Code Here

    mGroupListModel = new DefaultListModel();

    mGroupList = new JList(mGroupListModel);
    mGroupList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    panel2.add(new JScrollPane(mGroupList), BorderLayout.CENTER);

    JPanel panel3 = new JPanel(new BorderLayout());
    JPanel btnPn = new JPanel();
    btnPn.setLayout(new GridLayout(0, 1, 0, 4));
View Full Code Here

         
          return background;
        }
      });
     
      JScrollPane sp = new JScrollPane(mChannelTable);

      addAncestorListener(new AncestorListener() {
        public void ancestorAdded(AncestorEvent event) {}

        public void ancestorMoved(AncestorEvent event) {}
View Full Code Here

    mRightLabel.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));

    leftPanel.add(mLeftLabel,BorderLayout.NORTH);
    rightPanel.add(mRightLabel,BorderLayout.NORTH);

    leftPanel.add(new JScrollPane(mLeftList),BorderLayout.CENTER);
    rightPanel.add(new JScrollPane(mRightList),BorderLayout.CENTER);

    JPanel leftButtons=new JPanel(new GridLayout(2,1));
    JPanel rightButtons=new JPanel(new GridLayout(2,1));

    JPanel panel2=new JPanel(new BorderLayout());
View Full Code Here

    mVariableTable.getColumnModel().getColumn(0).setPreferredWidth(40);
    mVariableTable.getColumnModel().getColumn(0).setCellRenderer(renderer);
    mVariableTable.getColumnModel().getColumn(1).setCellRenderer(renderer);
    mVariableTable.getColumnModel().getColumn(2).setCellRenderer(renderer);
   
    JScrollPane sp = new JScrollPane(mVariableTable);

    addAncestorListener(new AncestorListener() {
      public void ancestorAdded(AncestorEvent event) {}
     
      public void ancestorMoved(AncestorEvent event) {}
View Full Code Here

    mEditorPane = new JEditorPane();
    mEditorPane.setContentType("text/html");
    mEditorPane.addHyperlinkListener(this);
    mEditorPane.setEditable(false);
   
    main.add(mScrollPane = new JScrollPane(mEditorPane));

    // buttons
    JPanel buttonPn = new JPanel(new FlowLayout(FlowLayout.TRAILING));
    main.add(buttonPn, BorderLayout.SOUTH);
   
View Full Code Here

    mBtnPanel.add(mDownBt);
    mBtnPanel.add(mBottomBtn);
   
    setLayout(new BorderLayout());
    add(mTitleLb,BorderLayout.NORTH);
    add(new JScrollPane(mList),BorderLayout.CENTER);
   
    JPanel p1 = new JPanel(new BorderLayout());
    p1.add(mBtnPanel, BorderLayout.NORTH);
    add(p1,BorderLayout.EAST);
   
View Full Code Here

    setEntries(currSelection,allItems,notSelectableItems);
   
    mList = new JList(mListModel);
    mList.setCellRenderer(mItemRenderer = new SelectableItemRenderer());
   
    mScrollPane = new JScrollPane(mList);
   
    mScrollPane.getVerticalScrollBar().setBlockIncrement(50);
    mScrollPane.getVerticalScrollBar().setUnitIncrement(20);
   
    mItemRenderer.setScrollPane(mScrollPane);
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.