back to this question...
i'm trying to add labels to this Jpanel, but it won't seem to show them..
(this is an applet)
so in the init() if i do
it worksCode:JLabel lblTest; lblTest = new JLabel("TESTING"); panel.add(stackObject);
but if i do the same code in any other method the label doesn't show up on the panel. i've tried to do panel.repaint(), which does nothing
this jpanel is connected to a jscrollpane (not sure if i have to do anything diff for the components to show up....i can add all the stuff i want in the init() method, but if i put the same code in a diff method, it doesn't work........ HELPPP
--770




Reply With Quote