+ 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.

22nd Mar 2019, 4:41 PM
anhquan
anhquan - avatar
2 Respostas
+ 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
22nd Mar 2019, 9:57 PM
JavaBobbo
JavaBobbo - avatar
+ 4
If you use this statement setLayout(null); But it does not work Maybe you can add another temp element to avoid this problem
22nd Mar 2019, 7:59 PM
ABADA S
ABADA S - avatar