wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes In need of desperate help :) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "In need of desperate help :)" Watch "In need of desperate help :)" New topic
Author

In need of desperate help :)

Lloyd Jenkins
Greenhorn

Joined: Apr 17, 2002
Posts: 11
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...
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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:


GenRocket - Experts at Building Test Data
Lloyd Jenkins
Greenhorn

Joined: Apr 17, 2002
Posts: 11
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

Joined: Apr 17, 2002
Posts: 11
Sadly it didn't work (my coding is beyond help )
Thanks anyway!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In need of desperate help :)
 
Similar Threads
Creating a RMI text editor???
notepad
Using PopupMenu with awt components
KeyListener problem
adding a save method