• Post Reply Bookmark Topic Watch Topic
  • New Topic

Glass Pane  RSS feed

amol bakre
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was writing a program where i inserted the following lines of code -
JFrame frame = new JFrame("..");
the code did'nt compile !!
it gave me an error -
add(java.awt.PopupMenu) in java.awt.Component cannot be applied to (javax.swing.JTextField)
frame.getGlassPane().add(new JTextField(20));
Is this not the current way to add components to glasspane assuming ofcourse that components can be added to glasspane and i think they should get added!!
and actually i have to pop up a tabbed pane on the screen when the user selects the option from the menu,does any of you have got an alternitive way the tabbed pane should be modal.
thank you
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!