Demos and Usage of javax.swing.JScrollPane.setViewportView(Component view)


   1: import javax.swing.JPanel;
   2: import javax.swing.JScrollPane;
   3: 
   4:         ...
   5: 
   6:         JScrollPane scrollPane = new JScrollPane();
   7:         ...
   8:         scrollPane.setViewportView(retVal);
   9:         m_panel.removeAll();

View Full Code Here
   1: import javax.swing.JOptionPane;
   2: import javax.swing.JScrollPane;
   3: import javax.swing.JSplitPane;
   4:         ...
   5:                 
   6:         JScrollPane scroll = new JScrollPane(tree);
   7:         
   8:         ...
   9:         if(editor == null)
  10:             scroll.setViewportView(null);
  11:         else                
  12:         ...
  13:             editor.setNode((XACMLTreeNode)value);
  14:             scroll.setViewportView(editor.getComponent());

View Full Code Here
   1: import javax.swing.JPanel;
   2: import javax.swing.JScrollPane;
   3: import javax.swing.JTextField;
   4:         ...
   5:         m_setEntities.setAutoscrolls(true);
   6:         JScrollPane scrollAllPane=new JScrollPane();
   7:         scrollAllPane.setViewport(new BorderedViewport());
   8:         ...
   9:         scrollAllPane.setViewportView(m_allEntities);
  10:         scrollAllPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),localizationManager.getPhrase("serviceModeler.serviceModelAllEntities")));
  11:         ...
  12:         scrollSetPane.setViewport(new BorderedViewport());
  13:         scrollSetPane.setViewportView(m_setEntities);

View Full Code Here
   1:     private BorderLayout borderLayout1 = new BorderLayout(); 
   2:     private JScrollPane clientScrollPane = new JScrollPane(); 
   3:     private JPanel serverPanel = new JPanel(); 
   4:         ...
   5:         }); 
   6:         clientScrollPane.setViewportView(textLabel); 
   7:         contentPane.add(clientScrollPane,  BorderLayout.CENTER); 
   8:         ...
   9:             client = new ClientHandler(serverIP); 
  10:             clientScrollPane.setViewportView(client); 
  11:             new Thread(client).start(); 
  12:         ...
  13:         if(client != null) client.close(); 
  14:         clientScrollPane.setViewportView(textLabel); 

View Full Code Here
   1: import javax.swing.JComponent;
   2: import javax.swing.JScrollPane;
   3: import javax.swing.JSplitPane;
   4:         ...
   5:             JSplitPane finalRetVal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
   6:             JScrollPane scrollPane = new JScrollPane();
   7:         ...
   8:             scrollPane.setViewportView(m_visualizationViewer);
   9:             m_visualizationViewer.getPickedState().addItemListener(m_pickedStateTreeSyncListener);

View Full Code Here
   1: import javax.swing.JPanel;
   2: import javax.swing.JScrollPane;
   3: import javax.swing.JTree;
   4:         ...
   5:         
   6:         JScrollPane scrollAllPane=new JScrollPane();
   7:         scrollAllPane.setViewport(new BorderedViewport());
   8:         ...
   9:         scrollAllPane.setViewportView(m_allReasons);
  10:         
  11:         ...
  12:         scrollSetPane.setViewport(new BorderedViewport());
  13:         scrollSetPane.setViewportView(m_reasons);

View Full Code Here
   1: 
   2:     private JScrollPane treePane;
   3:     private Map treeMap=new HashMap();
   4:         ...
   5:         DynamicTree tree=getTree(null);
   6:         treePane=new JScrollPane(tree);
   7: 
   8:         ...
   9:         splitPane.add(treePane);
  10:         splitPane.add(new JScrollPane(tblProperties));
  11:         splitPane.setPreferredSize(new Dimension(500, 300));
  12:         ...
  13:     {
  14:         treePane.setViewportView(tree);

View Full Code Here
   1: import javax.swing.JPopupMenu;
   2: import javax.swing.JScrollPane;
   3: 
   4:         ...
   5:             add(table, BorderLayout.CENTER);
   6:             JScrollPane pane = (JScrollPane) getParent().getParent();
   7:             pane.getViewport().setBackground(Color.WHITE);
   8:         ...
   9:             pane.setViewportView(FacetsTable.this);
  10:             pane.setColumnHeaderView(columnHeaders);

View Full Code Here
   1: import javax.swing.JTable;
   2: import javax.swing.JScrollPane;
   3: import javax.swing.JTextField;
   4:         ...
   5: 
   6:    private JScrollPane chooseConfigSPanel;
   7: 
   8:         ...
   9:    
  10:          chooseConfigSPanel = new JScrollPane();
  11:          chooseConfigTable = new JTable();
  12:         ...
  13:          chooseConfigSPanel.add(chooseConfigTable);
  14:          chooseConfigSPanel.setViewportView(chooseConfigTable);

View Full Code Here
   1: import javax.swing.JRadioButton;
   2: import javax.swing.JScrollPane;
   3: import javax.swing.JTabbedPane;
   4:         ...
   5:       _logTextArea.setName("logTextArea");
   6:       JScrollPane jscrollpane1 = new JScrollPane();
   7:         ...
   8:       jscrollpane1.setViewportView(_logTextArea);
   9:       jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
  10:         ...
  11:       JScrollPane jscrollpane1 = new JScrollPane();
  12:       jscrollpane1.setViewportView(_objectFileList);

View Full Code Here
   1:                 client = new ClientHandler(remoteclient,this); 
   2:                 clientScrollPane.setViewportView(client); 
   3:                 new Thread(client).start(); 
   4:         ...
   5:     }
   6:     clientScrollPane.setViewportView(textLabel);
   7:     room_Choice.disable();
   8:         ...
   9:     userName_TextField.setText("");
  10:     clientScrollPane.setViewportView(textLabel);
  11:     users_List.clear();
  12:         ...
  13:     private BorderLayout borderLayout1 = new BorderLayout(); 
  14:     private JScrollPane clientScrollPane = new JScrollPane(); 

View Full Code Here
   1: 
   2:     private JScrollPane addressScrollPane;
   3:         ...
   4:     private JScrollPane blockScrollPane;
   5:         ...
   6:     private JScrollPane ruleScrollPane;
   7:     private JScrollPane ruleSetScrollPane;
   8:         ...
   9: 
  10:         addressScrollPane.setViewportView(addressList);

View Full Code Here
   1: import javax.swing.JPanel;
   2: import javax.swing.JScrollPane;
   3: import javax.swing.JTextPane;
   4:         ...
   5: 
   6:             JScrollPane sp = new JScrollPane();
   7:         ...
   8:             sp.setViewportView(daytext[i]);
   9:             sp
  10:         ...
  11:         JScrollPane sp = new JScrollPane();
  12:         sp.setViewportView(todoPreview);

View Full Code Here
   1: import javax.swing.JPanel;
   2: import javax.swing.JScrollPane;
   3: import javax.swing.JTextPane;
   4:         ...
   5:             
   6:             JScrollPane sp = new JScrollPane();
   7:         ...
   8:             sp.setViewportView(daytext[i]);
   9:             sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
  10:         ...
  11:         JScrollPane sp = new JScrollPane();
  12:         sp.setViewportView(todoPreview);

View Full Code Here