This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

In need of desperate help :)  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.
I'm stuck with listeners currently.
I've created a frame and canvas. On the frame I have a menu bar, which when I select OPTIONS --> VIEW REPORT if loads up a word file I have into Word. I have the code for loading it now (thanks to Cindy), and the project compiles fine and runs fine. But when I select the VIEW REPORT option with the mouse nothing happens. I'm also trying to be able to load if with CNTRL & V too, but didn't have much luck succeeding.
Please can someone help me. Many thanks.
Here's the frame and canvas codes as these are most relevant for this question. I've done quite a bit of my project, but need to get this working before I can realistically attempt any more. Thanks.
Frame:

.....and Canvas...
 
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WOW! That's a lot of code and work just to use a menu item. How about something like this.

As far as the accelerator:
 
Lloyd Jenkins
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hehe.
It's actually part of a 2D assignment I have to do for tomorrow morning (not a prayer ), and all that code was for the whole menu (which incidently only half of which works yet ).
I'm just useless with listeners...and java as a whole
Thanks! I'll try it
 
Lloyd Jenkins
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sadly it didn't work (my coding is beyond help )
Thanks anyway!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!