• 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
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic