• 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();
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!