• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Putting JMenu into a Frame

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Java Experts,

I have a java.awt.Frame which I obtained from the SWT_AWT class in Eclipse. The problem is that I need to put my swing components into the available awt frame. One main problem is my JMenu which cannot possibly be displayed in the frame but I want it inside. Is there a solution to my problem? Thanks!

Tim Berett
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you've probably already done this but try looking at
http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html

It's a nice gui tutorial.

You may need to set the layout manager for your FRame

JFrame.setLayout(LayoutManager arg);

Hope this helps
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic