java - How do I create a JPanel and put it on a JFrame from another class? -


i trying learn java gui stuff. trying create special jpanel, have created in class [it panel 2 labels on it] inside 1 class, , using passed jframe add jframe other class. have been trying myjframe.add(thepanel) , such, never seems anything. have tried doubly making sure sset visible, @ reasonable location, ect.

i trying create panel in 1 class, , .add given jframe. there not understanding.

i not best @ java gui stuff... please kind :) advice can give wonderful.

i using netbeans. if drag special panel created on panel in design editor, adds instance of panel, can't seem make own instance of , have appear.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -