+ 1
add from palette java
I'm using netbeans and doing a project that involve in design font-end. I'm confuse about how it layer in java because if i dont add panel before instead i add from palette that makes element i added before sometimes display sometimes don't. Does anyone have solution for this ? Thanks for reading and sorry for bad English.
2 Answers
+ 1
If you not using any Layout for example FlowLayout and add any component then you need to adds setLayout(null) to your frame which means your frame is not gonna use any Layout. Post your code if you still dont understand
+ 4
If you use this statement
setLayout(null);
But it does not work
Maybe you can add another temp element to avoid this problem