Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Problems editing menus
Problems editing menus [message #9936] Wed, 10 December 2003 18:51 Go to next message
Eclipse UserFriend
Originally posted by: withheld.example.com

Hi there, I've been playing with the VE and I'm very impressed.

I've got a frame to which I've added a JMenuBar, and I've added a few
JMenu's but I'm having no luck adding JMenuItems. I saw the post about
using add bean, but I've tried building from beans, and the behaviour's
the same.

Am I doing something daft? I can manually add code, and the menu works
fine. I've been dropping the jMenuItems elsewhere then fixing the code
(moving add calls), and the result's fine.

And one final plea. Could anyone reccomend a good site or book that would
explain the java/swing way of doing things? The creations of objects per
command and the construction methods etc. I'm from C++/MFC land, (more C++
than MFC) so I guess I'm looking for a guide to best practices before I do
too much hacking.

Thanks for your time.

Pete
Re: Problems editing menus [message #9959 is a reply to message #9936] Wed, 10 December 2003 20:05 Go to previous messageGo to next message
Eclipse UserFriend
You can drop/edit/reorder JMenuItems by dropping them in the Java Beans
View hiearchy on top of the JMenu. This of course also works with any
other type of bean as well.

Sun's Swing tutorial is an excellent resource for getting started in all
things Swing. You can find it here:
http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

Good luck,
- Jeff

Peter Bradshaw wrote:
> Hi there, I've been playing with the VE and I'm very impressed.
>
> I've got a frame to which I've added a JMenuBar, and I've added a few
> JMenu's but I'm having no luck adding JMenuItems. I saw the post about
> using add bean, but I've tried building from beans, and the behaviour's
> the same.
>
> Am I doing something daft? I can manually add code, and the menu works
> fine. I've been dropping the jMenuItems elsewhere then fixing the code
> (moving add calls), and the result's fine.
>
> And one final plea. Could anyone reccomend a good site or book that would
> explain the java/swing way of doing things? The creations of objects per
> command and the construction methods etc. I'm from C++/MFC land, (more C++
> than MFC) so I guess I'm looking for a guide to best practices before I do
> too much hacking.
>
> Thanks for your time.
>
> Pete
>
Re: Problems editing menus [message #10027 is a reply to message #9959] Thu, 11 December 2003 03:15 Go to previous message
Eclipse UserFriend
Originally posted by: pete.NOSPAM.flatNOfeetSPAMpete.com

Excellent.

I'll get on with reading and coding now.

Thanks!

Jeff Myers wrote:

> You can drop/edit/reorder JMenuItems by dropping them in the Java Beans
> View hiearchy on top of the JMenu. This of course also works with any
> other type of bean as well.

> Sun's Swing tutorial is an excellent resource for getting started in all
> things Swing. You can find it here:
> http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

> Good luck,
> - Jeff

> Peter Bradshaw wrote:
> > Hi there, I've been playing with the VE and I'm very impressed.
> >
> > I've got a frame to which I've added a JMenuBar, and I've added a few
> > JMenu's but I'm having no luck adding JMenuItems. I saw the post about
> > using add bean, but I've tried building from beans, and the behaviour's
> > the same.
> >
> > Am I doing something daft? I can manually add code, and the menu works
> > fine. I've been dropping the jMenuItems elsewhere then fixing the code
> > (moving add calls), and the result's fine.
> >
> > And one final plea. Could anyone reccomend a good site or book that would
> > explain the java/swing way of doing things? The creations of objects per
> > command and the construction methods etc. I'm from C++/MFC land, (more C++
> > than MFC) so I guess I'm looking for a guide to best practices before I do
> > too much hacking.
> >
> > Thanks for your time.
> >
> > Pete
> >
Re: Problems editing menus [message #573627 is a reply to message #9936] Wed, 10 December 2003 20:05 Go to previous message
Eclipse UserFriend
You can drop/edit/reorder JMenuItems by dropping them in the Java Beans
View hiearchy on top of the JMenu. This of course also works with any
other type of bean as well.

Sun's Swing tutorial is an excellent resource for getting started in all
things Swing. You can find it here:
http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

Good luck,
- Jeff

Peter Bradshaw wrote:
> Hi there, I've been playing with the VE and I'm very impressed.
>
> I've got a frame to which I've added a JMenuBar, and I've added a few
> JMenu's but I'm having no luck adding JMenuItems. I saw the post about
> using add bean, but I've tried building from beans, and the behaviour's
> the same.
>
> Am I doing something daft? I can manually add code, and the menu works
> fine. I've been dropping the jMenuItems elsewhere then fixing the code
> (moving add calls), and the result's fine.
>
> And one final plea. Could anyone reccomend a good site or book that would
> explain the java/swing way of doing things? The creations of objects per
> command and the construction methods etc. I'm from C++/MFC land, (more C++
> than MFC) so I guess I'm looking for a guide to best practices before I do
> too much hacking.
>
> Thanks for your time.
>
> Pete
>
Re: Problems editing menus [message #573757 is a reply to message #9959] Thu, 11 December 2003 03:15 Go to previous message
Eclipse UserFriend
Originally posted by: pete.NOSPAM.flatNOfeetSPAMpete.com

Excellent.

I'll get on with reading and coding now.

Thanks!

Jeff Myers wrote:

> You can drop/edit/reorder JMenuItems by dropping them in the Java Beans
> View hiearchy on top of the JMenu. This of course also works with any
> other type of bean as well.

> Sun's Swing tutorial is an excellent resource for getting started in all
> things Swing. You can find it here:
> http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

> Good luck,
> - Jeff

> Peter Bradshaw wrote:
> > Hi there, I've been playing with the VE and I'm very impressed.
> >
> > I've got a frame to which I've added a JMenuBar, and I've added a few
> > JMenu's but I'm having no luck adding JMenuItems. I saw the post about
> > using add bean, but I've tried building from beans, and the behaviour's
> > the same.
> >
> > Am I doing something daft? I can manually add code, and the menu works
> > fine. I've been dropping the jMenuItems elsewhere then fixing the code
> > (moving add calls), and the result's fine.
> >
> > And one final plea. Could anyone reccomend a good site or book that would
> > explain the java/swing way of doing things? The creations of objects per
> > command and the construction methods etc. I'm from C++/MFC land, (more C++
> > than MFC) so I guess I'm looking for a guide to best practices before I do
> > too much hacking.
> >
> > Thanks for your time.
> >
> > Pete
> >
Previous Topic:N00b install problems
Next Topic:org.eclipse.ve.examples
Goto Forum:
  


Current Time: Sat Jun 07 03:31:10 EDT 2025

Powered by FUDForum. Page generated in 0.02825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top