This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
public class Test2 extends JFrame{ public Test2() { JInternalFrame jInternalFrame = new JInternalFrame("Test",true,true,true,true); JPanel jPanel = new PanelTest(); JScrollPane jScrollPane = new JScrollPane(jPanel,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); jInternalFrame.getContentPane().add(jScrollPane); getContentPane().add(jInternalFrame); jInternalFrame.setVisible(true); setSize(600,600); setVisible(true); }
public static void main(String[] args) { new Test2(); } }