Hi! I have to make 2 questions, for Java, hope you can help me! Im java beginner and I just make a program, with Swing tools, I create an object JFrame, call a class, where I have JButtons, labels, textboxes etc. JFrame input=new Test(); my programme works correctly but I need 2 things plus! 1) I want in some parts when I press a button, after all the works it does, I want to recall the class from the beginning so it repaint the frame with the new objects (because of the new data). Is there any way?i tried the repaint(); but does nothing. I want to clear all the frame and start test() from the beginning so I paints again the frame. 2)i have a frame (JPanel) where I have buttons. The number of buttons change dynamically. I use GridBagLayout. But when the numbers of buttons/labels is bigger than the JPanel can be, the buttons get together and the letters in labels can not be read!!! I want, when the buttons get more than the JPanel can have, put a scroller in it!!! How can I put it? Thanks for reading all this!!! Sorry my English are not good! Im not English :) Have a nice day all!