I have no clue how to put this.
try setting the JPanel visible
Adam Burda wrote:I am running windows 7 64bit Home Premium with an intel core i3 and 4GB of ram. I run my java code in eather prompt or i use JCreator LE. Every time i wright an app I get a blank frame or a blank panel. But only when I put in a JTextArea or a JTextField. Buttons, CheckBoxes, and Raido Buttons all show fine. But when i add a textfield the program compiles fine then i run it. The window pop's up, but nothing on it. Unless i grab one of the sides to adjust the size of the window myself, bigger or smaller. Then the window displays the buttons, textfield...... I have tryed resizing, and using other layouts. I have no clue what the bug is. This happens with any and all code I wright.
To every Tunnel there is always a way out
So keep Trying...
Digen Mahara wrote:It is a problem that all of us face.
Try to use the getContentPane() mathod this should help you <google it> you will get something that may help you
luck, db
There are no new questions, but there may be new answers.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |