Code example for JScrollPane

Methods: setViewportView

0
			} 
		} 
	} 
 
	private JScrollPane addSoftwareUnitsTable() {
		softwareUnitsPane = new JScrollPane();
		softwareUnitsTable = new JTableSoftwareUnits();
		softwareUnitsTable.setDragEnabled(true);
		SoftwareUnitTableDropListener listener = new SoftwareUnitTableDropListener(softwareUnitsTable);
		softwareUnitsPane.setViewportView(softwareUnitsTable);
		softwareUnitsTable.addMouseListener(new MouseAdapter() {
			@Override 
			public void mouseClicked(MouseEvent event) {
				createPopup(event);
				setButtonEnableState(); 
			} 
 
			@Override 
			public void mouseEntered(MouseEvent event) {
				createPopup(event);
Contextual code suggestions in your IDE  Get Codota for Java