• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding the panels

 
narayana satish
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell me when we are creating a Frame we can name the frame like JFrame f=new JFrame("Getting information");
can the same possible in the JPanel.Please help me out
 
aarti sharma
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
no u cant use a string in the panel's constructor.u can use a layout
eg.
JPanel=new JPanel(Layout Manager);
or simply
JPanel=new JPanel();
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic