I have a class extending from JFrame. I created a JPanel and created a JscrollPane like foll..
panelInput=new JPanel(); scrollPane = new JScrollPane(panelInput); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); getContentPane().add(scrollPane); The scrollpane is not visible when i execute the program..what may be happened?? any help??
posted 12 years ago
Welcome to the Ranch visu. No problem at all. Call setSize and setVisible on the parent container. [ November 23, 2003: Message edited by: Jose Botella ]
SCJP2. Please Indent your code using UBB Code
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF