Problems editing menus [message #9936] |
Wed, 10 December 2003 18:51  |
Eclipse User |
|
|
|
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 #10027 is a reply to message #9959] |
Thu, 11 December 2003 03:15  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
> >
|
|
|
Powered by
FUDForum. Page generated in 0.02825 seconds