Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / September 2003

Tip: Looking for answers? Try searching our database.

Running in Unix

Thread view: 
Ivor - 09 Sep 2003 09:00 GMT
Recently, I've written a GUI but it doesn't work properly in Unix.
However, it works fine in windows98(under DOS mode). Does anyone have
similar experience before and know how to solve it?
Brand-X - 09 Sep 2003 09:38 GMT
> Recently, I've written a GUI but it doesn't work properly in Unix.
> However, it works fine in windows98(under DOS mode). Does anyone have
> similar experience before and know how to solve it?

There are so many possibilities for why this might happen it would be
ridiculous to speculate. If you want assistance it would be good if you
could describe what errors you are getting, what code you are using (at
least around the error) and what java version each of these systems are
running.

Cheers,

Adam
Ivor - 10 Sep 2003 05:49 GMT
import java.awt.*;
import javax.swing.UIManager;
import javax.swing.*;
import java.awt.event.*;

class OpenAction extends AbstractAction {
   public OpenAction() {
    super("Open ...", new ImageIcon("./images/toolbarIcons/open.gif"));

    putValue(Action.SHORT_DESCRIPTION, "Open a DBLab File");
    putValue(Action.MNEMONIC_KEY, new
Integer(java.awt.event.KeyEvent.VK_O));
    putValue(Action.ACCELERATOR_KEY,
        KeyStroke.getKeyStroke(KeyEvent.VK_O, Event.CTRL_MASK));
   }
   public void actionPerformed(ActionEvent event) {
    /******** PUT ALL IMPLEMENTATION HERE!!! **************/
    System.out.println("Open Works");
   }
}
Above is the code that I use for adding Hot key and print out "Open
Works" to standard output.
However, when I run this with the main program in Unix, when I press
"Ctrl o", it did nothing. But when I run it under Dos mode, the hot
key works.

Cheers,
Ivor

> > Recently, I've written a GUI but it doesn't work properly in Unix.
> > However, it works fine in windows98(under DOS mode). Does anyone have
[quoted text clipped - 9 lines]
>
> Adam


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.