GUI/swing application doesn't appear under W2K

Hi, all,
I wrote a Java GUI application with JDK1.4.1_01, when I run it on Win2K Professional (SP3) the
GUI doesn't appear without any exception.
But when I ran the same application under XP and Win98, the GUI application run ok and the GUI appears.
What is the problem?
regards,
Adam

First I thought you had several jre's installed and windows used the wrong one when you type java ...
Now I think it has to be someting wrong in your code.
Can you try someting that should work?
Compile and run the following code:
javac testPanel.java
java testPanel
import javax.swing.*;
import java.awt.*;
public class testPanel extends Thread{
     public static void main(String[] args) {
          try{
               // get out of the static context
               new testPanel().start();
               new testPanel().start();
               new testPanel().start();
          }catch(Exception e){
               e.printStackTrace();
     public void run(){
          // Create a container with a flow layout, which arranges its children
          // horizontally
          Panel panel = new Panel();
          // A container can also be created with a specific layout
          panel = new Panel(new FlowLayout(FlowLayout.RIGHT));
          // Add several buttons to the container
          panel.add(new Button("A"));
          panel.add(new Button("B"));
          panel.add(new Button("C"));
          // Create frame with a text area in the center
          Frame frame = new Frame();
          Component comp = new TextArea();
          frame.add(comp, BorderLayout.CENTER);
          // Add the container to the bottom of the frame
          frame.add(panel, BorderLayout.SOUTH);
          // Show the frame
          int width = 300;
          int height = 300;
          frame.setSize(width, height);
          frame.setVisible(true);
}

Similar Messages

  • GUI/swing application doesn't appear under Win2K

    Hi, all,
    I wrote a Java GUI application with JDK1.4.1_01, when I run it on Win2K Professional (SP3) the
    GUI doesn't appear without any exception.
    But when I ran the same application under XP and Win98, the GUI application run ok and the GUI appears.
    What is the problem?
    regards,
    Adam

    I wrote a Java GUI application with JDK1.4.1_01, when
    I run it on Win2K Professional (SP3) the
    GUI doesn't appear without any exception. Maybe it 's shy. Have you thought about coaxing it out with a little biscuit?

  • Ipod touch doesn't appear under devices.  message - file not found.

    My ipod touch doesn't appear under devices when I plug it into the computer.  My mac tried to sync with the ipod touch and then gave me the message "ipod touch could not be synced.  File not found."  This just suddenly started.  What file? and what happened to it? help, please.

    PROBLEM SOLVED - I did not know that in itunes under "devices" there is a "hide" and "show" if you mouse over the area to the right of the word "devices".  My ipod touch was somehow hidden.  I still do not know why I got the "file not found" message.

  • Swing application doesn't launch

    Hallo,
    I've programmed a simple swing-application that was til now functionning correctly. But today I can't launch this application. If I launch it with java -jar myprog.jar I get following information:
    Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: sun.font.FileFontStrike.createScalerContext(J[DZIIZFF)J
    at sun.font.FileFontStrike.createScalerContext(Native Method)
    at sun.font.FileFontStrike.<init>(Unknown Source)
    at sun.font.FileFont.createStrike(Unknown Source)
    at sun.font.Font2D.getStrike(Unknown Source)
    at sun.font.Font2D.getStrike(Unknown Source)
    at sun.font.CompositeStrike.getStrikeForSlot(Unknown Source)
    at sun.font.CompositeStrike.getFontMetrics(Unknown Source)
    at sun.font.FontDesignMetrics.initMatrixAndMetrics(Unknown Source)
    at sun.font.FontDesignMetrics.<init>(Unknown Source)
    at sun.font.FontDesignMetrics.getMetrics(Unknown Source)
    at sun.swing.SwingUtilities2.getFontMetrics(Unknown Source)
    at javax.swing.JComponent.getFontMetrics(Unknown Source)
    at javax.swing.plaf.metal.MetalTitlePane$TitlePaneLayout.computeHeight(Unknown Source)
    at javax.swing.plaf.metal.MetalTitlePane$TitlePaneLayout.preferredLayoutSize(Unknown Source)
    at java.awt.Container.preferredSize(Unknown Source)
    at java.awt.Container.getPreferredSize(Unknown Source)
    at javax.swing.JComponent.getPreferredSize(Unknown Source)
    at javax.swing.plaf.metal.MetalRootPaneUI$MetalRootLayout.layoutContainer(Unknown Source)
    at java.awt.Container.layout(Unknown Source)
    at java.awt.Container.doLayout(Unknown Source)
    at java.awt.Container.validateTree(Unknown Source)
    at java.awt.Container.validateTree(Unknown Source)
    at java.awt.Container.validate(Unknown Source)
    at java.awt.Window.pack(Unknown Source)
    at logviewer.Main$1.run(Main.java:61)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: sun.font.FileFontStrike.createScalerContext(J[DZIIZFF)J
    at sun.font.FileFontStrike.createScalerContext(Native Method)
    at sun.font.FileFontStrike.<init>(Unknown Source)
    at sun.font.FileFont.createStrike(Unknown Source)
    at sun.font.Font2D.getStrike(Unknown Source)
    at sun.font.Font2D.getStrike(Unknown Source)
    at sun.font.CompositeStrike.getStrikeForSlot(Unknown Source)
    at sun.font.CompositeStrike.getFontMetrics(Unknown Source)
    at sun.font.FontDesignMetrics.initMatrixAndMetrics(Unknown Source)
    at sun.font.FontDesignMetrics.<init>(Unknown Source)
    at sun.font.FontDesignMetrics.getMetrics(Unknown Source)
    at sun.swing.SwingUtilities2.getFontMetrics(Unknown Source)
    at javax.swing.JComponent.getFontMetrics(Unknown Source)
    at javax.swing.plaf.metal.MetalTitlePane$TitlePaneLayout.computeHeight(Unknown Source)
    at javax.swing.plaf.metal.MetalTitlePane$TitlePaneLayout.preferredLayoutSize(Unknown Source)
    at java.awt.Container.preferredSize(Unknown Source)
    at java.awt.Container.getPreferredSize(Unknown Source)
    at javax.swing.JComponent.getPreferredSize(Unknown Source)
    at javax.swing.plaf.metal.MetalRootPaneUI$MetalRootLayout.layoutContainer(Unknown Source)
    at java.awt.Container.layout(Unknown Source)
    at java.awt.Container.doLayout(Unknown Source)
    at java.awt.Container.validateTree(Unknown Source)
    at java.awt.Container.validateTree(Unknown Source)
    at java.awt.Container.validate(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    after this output the application hangs, my windows commad prompt doesn't show the prompt.
    Secondary, it is not possible to launch the Java-Applet in Control Panel of Windows. It happans nothing.
    Whats going wrong? My program didn't change, it's the same program I was using since longer time. What could I do to make it function correctly?
    with regards
    Rafal Ziolkowski

    Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: sun.font.FileFontStrike.createScalerContext(J[DZIIZFF)J
    UnsatisfiedLinkError indicates that the JVM cannot find a native method's definition. Generally this means that the shared object file (.so on unices, .dll on Windows) cannot be found by the JVM.
    Since the missing method is visibly Sun's code, presumably a built-in JRE method, that probably means your JRE/JDK install has been corrupted (corroborated by a quick Google search on the obvious keywords).
    Try reinstalling the JRE or JDK.
    Secondary, it is not possible to launch the Java-Applet in Control Panel of Windows. It happans nothing. I don't understand this sentence. What are you doing exactly, and how is that related to the first question?
    Much luck,
    J.

  • Adobe applications don't appear under "open with"

    When I control-click an AI file on my desktop, or some graphic, I do not see any Adobe applications like Illustrator and Photoshop as available options UNLESS those applications are already open. I end up having to dig deep under "Other" everytime to find the applications.  I don't have this problem with other applications.  This began when I installed CS5 recently. How do I get Illustrator, Photoshop, etc.. to appear under "Open With" automatically?  I have already tried to do an "always open with for all files of this type" but that does not get saved after I shut down. It always defaults back to preview.
    What is the remedy?  I would think solving the first problem bolded above should solve the second automatically.

    Have a look at this...
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions...
    Reset Launch Services...
    http://www.thexlab.com/faqs/resetlaunchservices.html#Anchor-Reset-47857
    Reboot.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

  • Unable to create Keynote Keynote in 2048x1536 px. for iPad w/ retina display. This option doesn't appear under "Slide Size". Keynote 5.1.1.

    I have tried creating a Keynote document for iPad 3 but 2048x1536 does not appear under thre options for slide size.
    The biggest is 1920x1080. I have updated all software and Keynote is on the latest version 5.1.1. I have tried on two different machines but I get the same issue.
    Any ideas what it could be?
    Any help appreciated.
    Thanks.

    you create a custom size:
    inspector > document > slide size

  • When I add new music to iTunes, it doesn't appear under artists or anywhere else in library.

    The other night, I tried adding a bunch of music that I had sitting on my Seagate external hard drive to my iTunes library, which is also located on my external. I attempted to add around 1,500 songs at once. It was giving me problems at first and only added some of the music so I tried again. Now I have a problem.
    When I add new music, iTunes only recognizes that I added it after I close iTunes are restart it. But then, the music doesn't show up under artists or anything. The new music shows up under the Recently Added smart playlist, the folder is located in the iTunes library, and when you search for the music it says its there, but it's not under artists or in the song list or anything.
    Example:
    1. Added music from Abandon All Ships! (who I didn't have before), but they don't show up under artists despite the fact that iTunes says the music is there.
    2. Added music from Whitechapel (who I had before), but the album doesn't show up with the rest.
    Hopefully this makes sense the way I explained it. It's all rather frustrating.

    Hello transcend94,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    iTunes: Understanding iTunes Media Organization
    http://support.apple.com/kb/ht3847
    Avoid using different versions of iTunes, or you may be unable to locate content, or may import or transfer content to the wrong location.
    Best of luck,
    Mario

  • My application doesn't appear in search results...

    How can I override the default robots.txt file for my application? The default settings disallow all robots and prevent me from being indexed by search engines.
    Surely this must be possible?

    Hi Joel,
    Thanks for the info... agreed that rogue bots can be pesky.
    If you remain concerned about the bot in question, you might consider a version of the file which either explicitly disallows or allows certain robots. For example, according to http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=40364, you could enable only a handful of well-behaved bots while blocking other robots using the following syntax:
    User-agent: *
    Disallow: /
    User-agent: Googlebot
    Disallow:
    User-agent: Slurp
    Disallow:
    User-agent: msnbot
    Disallow:
    Thanks again for your helpful replies!
    -jeremy

  • HT204291 The mirroring option doesn't appear under AirPlay on my iPad

    I can Home Share with two computers and an iPod with my Apple TV for playing iTunes libraries and for Videos, but cannot get The Mirroring option to show up under AirPlay on my iOS devices (iPod Touch and iPad).

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    Restart your mobile device.

  • Back-up / Retrieve Files from an external hard drive that doesn't appear in Devices

    Someone please help!
    I am going to write the "history" from my disk utility repair here so that other's who copy and paste into search may find it:
    (PLEASE SCROLL 13 ROWS DOWN)
    Verify and Repair volume “Your Hard Drive Name”
    Checking Journaled HFS Plus volume.
    Checking extents overflow file.
    Checking catalog file.
    Keys out of order
    Rebuilding catalog B-tree.
    The volume   could not be repaired.
    Volume repair complete.Updating boot support partitions for the volume as required.Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
    Ok. I would really love to reformat this disk, but I have stuff on here from film school that I CAN NOT lose
    Question:
           How would I go about backing-up the disk if the image doesn't appear under devices? I went to the "Restore" tab/button, but I can not choose the hard drive in the first field. I could have sworn my hard drive was formatted for Mac, but I may have formatted it back to FAT32. I know the disk still functions because when it is powered on, it cycles with/without being connected to my MacPro, but after that, it will only cycle if connected (confirming connection). It does run again when I connect the firewire cable. Here is my equipment:
    8-Core MacPro 16GB-Mem RAID
    MacOSX 10.6.8 | 2 X 1TB Internal HDD
    Aug-2008 15" MacBookPro
    (That I used the Maxtor-External with mostly)
    DEVICE IN QUESTION
    500GB Maxtor One-Touch Plus
    FireWire 400 6-pin Connection Bus (2 Ports)
    Purchased in Early 2008 from Staples
    I can fit the back-up on my 2nd HDD in my MacPro or in my other External:
    2 TB G-Technology G-RAID External
    1 x eSATA |  2 x FireWire 800 9-pin |  1 x USB 2.0
    Self Powered DC-IN
    I have had a nightmare searching for answers, so any options you might have would be tremendously helpful. I can't lose the data because I have everything I did during film school on there. That stuff is basically what you pay for when you go to film school, you pay to show what you can do and what equipment you have used. SAVE ME FELLOW APPLE PEOPLE!!!! We COMMAND, as well as CONTROL!
    -RaphSai

    Get Disk Warrior that will repair the problems without requiring that you reformat the drive - $99.00 on a bootable CD. Will not work on a FAT formatted drive.
    You will need to use Drag and Drop to save your files by copying them from the bad drive to a good one.
    To reprep the drive:
    Drive Preparation
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

  • KM Reports Doesn't appear

    Hi all,
    I try to create a new KM Report but doesn't appear. Under Sytem Administration --> System Configuration --> KM Content Management --> Repository Managers --> Reports, I configure a new report and I set java class, initial path and initial role parameters. This report is active but doesn't appear under "initial path parameter". I check the report folder permission and it set full control to Everyone Group.
    Java class is deployed without error.
    Why report is not visible? My portal and KM version is 6.0.16.0.0 (NW04 SPS16)
    Thanks in advance.
    Paolo

    Hi Stefano,
    have you check out this <a href="https://forums.sdn.sap.com/thread.jspa?threadID=171322">thread</a>? I hope it also helps you to resolve your issue.
    Regards,
    Robert

  • TMS - CCMS Alert domain doesn't appear

    On my training system when I go into STMS, then CCMS Alert Monitor,(The "Bell" icon") the domain doesn't appear under change and transport system. It also won't allow me to create it in rz20. I've tried redistributing and activating the stms configuration and it still won't appear. Ideas?
    Thanks,
    Daniel

    Your Problem is not with STMS configuration.
    Based on what you have explained i am thinking because of the system copy you have performed the MTE classes of target system  have been over written from source system (of your system copy)
    But it is not a big deal to bring the MTE classes again.Below is the procedure.
    Logon to the Solman - RZ21 --> Configure Central reaction ---> Assign Central reaction
    Under System ID - Select SID of your satelite System --> +MTE Class from the system.
    Once you do that you should get following message ### MTE Classes were collected by <Satellite System>
    Hope this helps

  • IPod does not appear under devices in Itunes

    These problems started a couple weeks ago: When I connect my iPod classic to my Windows 7 laptop, it doesn't appear under devices in iTunes, but the iPod says its connected. Also, a little blue sheild appeared over the iTunes icon on my desktop. When I click on iTunes, a message comes up telling me to turn off compatability mode before I open iTunes for best results because it was running on an earlier version of iTunes. I've tried switching the compatability around and all of the troubleshooting options possible for iTunes but nothing has changed and my iPod still does not show up in devices. What sould I do?

    The blue shield is Windows 7 telling you, to log in as Administrator, it need this higher priviledge to add devices like your iPod to the Machine.
    Perhaps, you can go to Microsoft forum, for the how_to override. (must be install and run iTunes as Administrator)
    Have a nice day!

  • My ipad doesn't appear in iTunes. I have followed the Apple troubleshooting tips and step by step guide but it is still not there

    My iPad doesn't appear in iTunes. I have followed the Apple troubleshooting guide, step by step. I have rebooted both devices, checked that I have a USB 2.0 and still it doesn't appear under devices. The iPad shows as a camera in iPhoto and downloads the photos but doesn't show as a device.

    Do you have a PC? if so, go into the control panel, look for the add/remove programs. Look for one named something like 'apple mobile device support'. remove it and restart your computer. then plug your device in and see if the driver installs.

  • Need Help to update the labels in the GUI syncronously - Swing application

    Hello everyone,
    I need some help regarding a swing application. I am not able to syncronously update the counters and labels that display on my Swing GUI as the application runs in the background. But when the running of application is completed, then the labels on the GUI are getting updated, But I want update the labels and counters on the GUI syncronously as the code executes... below I am giving the format of the code I have written..............
    public class SwingApp extends JFrame{
            // here i have declared the label and component varibles like...
                      private JTextField startTextField;
           private JComboBox maxComboBox;
           private JTextField logTextField;
           private JTextField searchTextField;
           private JLabel imagesDownloaded1;
           private JLabel imagesDownloaded2;
           private JLabel imagesDidnotDownload1;
           private JLabel imagesDidnotDownload2;
                      private JButton startButton;
    //now in the constructer.............
    public Swing(){
    //I used gridbaglayout and wrote the code for the GUI to appear....
    startButton = new JButton("Start Downloading");
        startButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            try{
                 actionSearch();   //actionSearch will contain all the code and the function calls of my application...........
            }catch(Exception e1){
                 System.out.println(e1);
        constraints = new GridBagConstraints();
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 5, 5);
        layout.setConstraints(startButton, constraints);
        searchPanel.add(startButton);
    //update is a function which initiates a thread which updates the GUI. this function will be called to pass the required variables in the application
    public void update(final int count_hits, final int counter_image_download1, final int didnot_download1) throws Exception{
         Thread thread = new Thread(new Runnable() {
             public void run() {
                  System.out.println("entered into thread");
                  System.out.println("the variable that has to be set is " + count_hits);
                  server_hits_count.repaint(count_hits);
                  server_hits_count.setText( " "+ Integer.toString(count_hits));
                  imagesDownloaded2.setText(" " + Integer.toString(counter_image_download1));
                  imagesDidnotDownload2.setText(" " + Integer.toString(didnot_download1));
                  repaint();
         //this.update(count_hits);
         thread.start();
    //Now in main............................
    public static void main(String[] args){
    Swing s = new Swing();
    s.setVisible(true);
    }//end of main
    }//end of class SwingAbove I have given the skeleton code of my application........ Please tell me how to update the GUI syncronously...
    Please its a bit urgent...............
    Thank you very much in advance
    chaitanya

    First off, note that this question should have been posted in the Swing section.
    GUI events run in a separate thread (the AWT / Event Dispatch Thread) than your program.
    You should be invoking AWT/Swing events via SwingUtilities.invokeLater().
    If for whatever reason you want to have the program thread wait for the event to process
    you can use invokeAndWait().
    http://java.sun.com/javase/6/docs/api/javax/swing/SwingUtilities.html

Maybe you are looking for