JFrame from JApplet won't appear as it should

Hi to all,
I have created a JApplet, that contains some buttons. When a button is clicked, a JFrame should be displayed. I am experiencing the following problem: a short blue bar (containing the minimize, maximaze and close button) is the only thing being displayed. When I maximize it, I can not see what should be inside the JFrame (no matter if it has a null or XYLayout).
Does anybody know what could be happening??? To display the Jframe I'm using the following code:
    existingJframe.getContentPane();
    existingJframe.pack();
    existingJframe.setVisible(true);
    existingJframe.setLocation(100,200);
    existingJframe.repaint();Thanks a lot

what happens if you display a JDialog instead of a JFrame here?

Similar Messages

  • Why songs from library won't appear on ipod

    Why does the songs added to my itunes library not appear on my ipod now. It worked fine until a few days ago.I have icloud.

    You might need to turn off iTunes Match on your iPod, then after a minute or so turn it back on to reload your itunes library.

  • Passing values to Jframe from JApplet

    Hi All,
    i need to open a frame when someone clicks on some particular part of an applet. also, i need to pass some values to that frame based on the region selected.
    Previusly i m doing it through showDocument method which calls a JSP which in turn calls the applet that i m trying to change as a frame now.
    Help please.
    Liza

    just to make things more clearer... i was passing values as querystring to JSP which passes them to an applet through parameter tags.
    Liza

  • When I have my Firefox browser running, if I bring up a document from my computer, it appears briefly, then disappears behind the browser. It shows in the taskbar, but won't stay on top until I minimize all other windows.

    When I have my Firefox browser running, if I bring up a document from my computer, it appears briefly, then disappears behind the browser. It shows in the taskbar, but won't stay on top until I minimize all other windows.

    Hi NicoMan,
    According to your description ,we seem to suffer a performance issue here.
    Have you tried to open the task manager to check the system performance  ? Is there any specific process occupied many system resources ?Will the issue occur only with the specific applications ?
    We can try to restart the Windows Explorer process to have a check.
    If it only occurred with the spefcific two applications ,we can try to end the other application processes manually from the task manager to have a check .
    If this is caused by the specific application ,we may need to look for help from the third party support considering they are all the third party applications .
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • IPhone 4s. IOS 7.1.1 Windows 7. Using same lead and usb socket. From yesterday my phone won't appear on computer. Will charge via usb lead. Dont have iTunes on this computer and never had.

    iPhone 4s. IOS 7.1.1 Windows 7. Using same lead and usb socket as always. From yesterday my phone won't appear on computer. Will charge via usb lead. Dont have iTunes on this computer and never had. Am now being asked if I trust this computer. This is new. Also takes longer than usual to signal it is charging. Get usual sound notification but nothing appear in computer. I long ago disables automatic notification that phone was connected. Prefer to bring it up manually.

    Within Contacts, tap Groups at top left. Make sure all contact groups are checked to show, then tap "Done" at top right.
    Within the Calendar app, tap Calendars at the bottom center of the screen. Tap on Show All Calendars.

  • I am having trouble transfering any media from my windows 7 pc to my iPad 3. Currently using the latest version of iTunes n my windows pc but still the media won't appear on my devicewhen being transferred..

    I am having trouble transfering any media from my windows 7 pc to my iPad 3. Currently using the latest version of iTunes n my windows pc but still the media won't appear on my devicewhen being transferred..

    The window would open and I would get the hourglass cursor suggesting something was happening, but the Apple home page (default from the install) would not load, nor would any other page I tried (google, yahoo, cnn).
    Even though it's about a different application, I'd try the following document with that:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    (Safari uses the same webkit engine to render web pages as iTunes uses to render the Store pages. So an issue that can cause the iTunes Store to blank can also cause a Safari for Windows application on the same PC to produce blank pages.)

  • I have downloaded a movie which I brought from itunes. It appears in my ipod class movie menu but it won't playic

    I have downloaded a movie which I brought from itunes. It appears in my ipod classic movie menu but it won't play. I try to update and or restore my ipod but I just keep getting a message saying that I need to connect to the internet which I am and am contected to the itunes store. I try to use the itunes self help support thing but keep getting the message that my ipod serial number is incorrect when it is the serial number which is on my ipod. Any ideas?

    Hey mlf141,
    I see that you have rented a movie on your iOS device and now would like to watch it on your computer. I have an article with information for you dealing with this scenario, and it can be found below:
    About renting movies from the iTunes Store - Apple Support
    http://support.apple.com/en-is/HT201611
    If you rented the movie on your computer, but want to watch it on an iOS device, connect the devices and sync using USB. When you move a rented movie from your computer, it will disappear from your computer’s iTunes library. You can move the movie between devices as often as you want, but you can only have it on one device at a time.
    If you rented the movie on your iOS device or Apple TV, you can’t move it to any other device.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Hi. My id country was Saudi Arabia and I bought lots of apps from it. Now I moved to USA and changed my id counrty. the problem now is that every app that I buy in the USA store and I had already bought in the Saudi store won't appear on my purchased list

    Hi. My id country was Saudi Arabia and I bought lots of apps from it. Now I moved to USA and changed my id counrty. the problem now is that every app that I buy in the USA store and I had already bought in the Saudi store won't appear on my purchased list

    Tell me exactly how much you have in your store credit and I"ll let you know the best solution.
    Also, I'm not 100% sure, but when you switch back to S.A., Apple MAY track your IP and still give you probs if they figure you're trying to get around this problem without moving out of America. But we won't know for 100% until we try it.
    If your store change is less than the price of a single song, then you can ask the iTS support to just cash-out that balance. They'll probably send you a response to reverify this first though.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html
    Once you change back to S.A. please let us know if you can still see the purchases in the Cloud or not from your US I.P. address as I'm curious if they've fixed this exploit fully or not.

  • Can not add a picture to the JFrame from an ActionListener class

    As topic says, I can not add a picture to the JFrame from an ActionListener class which is a class inside the JFrame class.
    I have a Map.java class where I load an image with ImageIcon chosen with JFileChooser.
    I my window class (main class), I have following:
    class OpenImage_Listener implements ActionListener
         public void actionPerformed(ActionEvent e)
              int ans = open.showOpenDialog(MainProgram.this);     // "open" is the JFileChooser reference
              if(ans == open.APPROVE_OPTION)
                   File file = open.getSelectedFile();                    
                   MainProgram.this.add(new Map(file.getName()), BorderLayout.CENTER);     // this line does not work - it does not add the choosen picture on the window,
                            //but if I add the picture outside this listener class and inside the MainProgram constructor, the picture apperas, but then I cannot use the JFileChooser.
                            showMessageDialog(MainProgram.this, fil.getName() ,"It works", INFORMATION_MESSAGE);  // this popup works, and thereby the ActionListener also works.
    }So why can�t I add a picture to the window from the above listener class?

    The SSCCE:
    Ok, I think I solved it with the picture, but now I cannot add new components after adding the picture.
    Look at the comment in the actionlistener class:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class Test extends JFrame{
         JButton b = new JButton("Open");
         JFileChooser jfc = new JFileChooser(System.getProperty("user.dir"));
         Picture pane;
         Test(){
              super("Main Program");
              setLayout(new BorderLayout());
              JPanel north = new JPanel();
              add(north, BorderLayout.NORTH);
              north.add(b);
              b.addActionListener(new Listener());
              setVisible(true);
              setSize(500,500);
              pane = new Picture("");
              add(pane, BorderLayout.CENTER);
         class Listener implements ActionListener {
              public void actionPerformed(ActionEvent e){
                   int ans = jfc.showOpenDialog(Test.this);
                   if(ans == jfc.APPROVE_OPTION)
                        File file = jfc.getSelectedFile();
                        Test.this.add(new Picture(file.getName()), BorderLayout.CENTER);
                        pane.add(new JButton("NEW BUTTON")); // Why does this button not appear on the window???
                        pane.repaint();
                        pane.revalidate();
         public static void main(String[] args)
              Test t = new Test();
    class Picture extends JPanel
         Image pic;
         String filename;
         Picture(String filename)
              setLayout(null);
              this.filename = filename;
              pic = Toolkit.getDefaultToolkit().getImage(filename);
            protected void paintComponent(Graphics g)
                super.paintComponent(g);
                g.drawImage(pic,0,0,getWidth(),getHeight(),this);
                revalidate();
    }

  • My iPhone 5 won't appear in my iPhoto

    My iPhone 5 won't appear in my iPhoto library so that I can import my pictures from my phone.

    Connect your iPhone to your Mac.
    In iTunes, under devices select your iPhone.
    On the main window it shows a summary of your iPhone. Along the top of the main window are tabs. Select Photos.
    The main window changes. Make sure Sync Photos with iPhoto is checked.
    In the bottom right there is an 'Apply' button. click that and your photos should now sync with iPhoto.

  • After upgrading to ios 5, my videos or tv show I purchased won't appear

    After upgrading to ios 5, my videos or tv show I purchased won't appear even though it said it have been download. Is this a bug with the iOS 5.

    In addition to my question above, I was referring to not able to see in on ipad2 and not on the iTunes on my pc. Ihave checked the purchased tab, downloaded tab and via the video app but they are not there. I have tried to purchase a brand new episode via iTunes...as soon as it finished downloading, it disappear from the download or purchased tab

  • The incorrect iCloud email (in the from field)address is appearing

    The incorrect iCloud email (in the from field) address is appearing on my iPod touch, but not on my MacBook Pro. The I Pod's ICloud email account is using my account for Itunes etc., not the icloud email address, how can I reset the "from" address?

    ok thanks, so if I do nothing straight away, they won't free the address up and give it to someone else, correct?

  • My Ipod touch 4th gen won't appear in my Itunes, help me?

    My ipod touch 4th gen won't appear in my Itunes. I have the updated itunes and I can play music from Itunes. My ipod says it's charging but again won't appear in Itunes for me to sync music to it.

    Here:
    iOS: Device not recognized in iTunes for Windows
    I would start with:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    or
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/HT1925Also, turn on the Sidebar.  Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar.

  • External hard drive won't appear on my desktop

    I'm trying to run a backup, but my hard drive won't appear on my desktop. I see it in Disk Utility, so I know it's there...
    ...any suggestions?
    Thanks,
    kevin

    Kevin - There might be a few reasons as to why your external drive won't appear have you tried any of these suggestions:-
    STEP ONE - Confirm that the drive is being seen by the system
    Click the Apple icon and select About This Mac.
    Click More Info.
    Select the Drives and Volumes tab.
    If the Iomega Hard Disk drive is not listed under the USB/FireWire arrow, proceed to STEP THREE.
    If the Hard Disk drive is listed, continue with the next step.
    STEP TWO - Format the Hard Disk drive to Mac HFS format
    The Iomega Hard Disk drive is factory formatted to FAT32 for maximum compatibility. If you have not reformatted the disk or the disk is formatted to FAT32:
    The disk may mount very slowly in OS X if the disk is FAT32 formatted.
    Mac OS X will not mount any DOS (FAT32) partition larger than 128GB. For more information, please check the Apple® Web site at http://docs.info.apple.com/article.html?artnum=107483
    Warning: Erasing your Hard Disk drive will erase all of the information stored on the disk. If possible, back up your data before erasing the hard drive. Mac formatted disks are not cross compatible with other operating systems, such as Windows®, without the purchase of additional third-party software.
    Double-click the Mac hard drive icon.
    Double-click the Applications folder.
    Double-click the Utilities folder.
    Double-click the Disk Utilities icon.
    Highlight the drive in the left window.
    Click the Erase tab.
    Select Mac OS Extended.
    Click the Erase button and then click Erase from the confirmation window.
    If the Hard Disk drive now mounts, you are ready to use the drive.
    If the Hard Disk drive does not mount, continue with the next step.
    STEP THREE - Are the Mac OS X drivers detecting the drive properly?
    The Iomega Hard Drive may not mount if you are using Mac OS X versions under 10.1.3. If you are not using Mac OS X 10.1.3 or higher, please visit the Apple® Web site at http://www.apple.com/macosx/ for information on getting the latest version.

  • CDs, DVDs, disk images won't appear in Sidebar or on Desktop

    Hello,
    Brand new iMac 2.16, right out of the box.
    CDs, DVDs, and Disk Images won't appear on the desktop or in the Sidebar. Nothing is shown over the horizontal gray line at the top of the sidebar, no Macintosh HD, Servers, etc. Disk Images are fully functional, ie Disk Utility recognizes and mounts them just fine.
    I checked Mac Help and followed its instructions:
    (1) In Finder preferences:Pane:General, all 'Show These Items on the Desktop' boxes are checked.
    (2) In Finder preferences:Pane:Sidebar, I checked all boxes under "Show These Items in the Sidebar. BUT these changes are NOT retained. After I close the Preferences, the Sidebar does not change. If I re-open the Sidebar preferences, the relevant boxes are now unchecked, as if I'd never done a thing.
    Restarting was the only way to fix the problem. Thereafter, the upper items in the Sidebar (Macintosh HD, external drives, iPod, CDs) sometimes SPONTANEOUSLY disappear. They still show up on the desktop, but tweaking the Sidebar preferences is again ineffective. Restarting is the only solution.
    Thank you for your help,
    Andy

    Hi Andy, Welcome to Apple's Users Help Users Forums.
    1] Everything elmac says is helpful and correct.
    2] An upgrade to 10.4.8 with the 10.4.8 Combo from blue apple / Mac OS Updates might fix your hiccup. If you don't want .8 then .7 combo.
    3] [OT] For some minor security issues, it is better to surf the internet in a standard account. If you are surfing in an admin account then here is how to switch and maintain prefs.
    Set up a new account in System Preferences / Accounts / +
    and make it have admin priviledges. Be sure to remember short name and password since you will be asked to "authenticate" when running in your standard account. This new account is often called "test" in these forums.
    Once that is done convert your regular account to standard.
    Good Luck, JP

Maybe you are looking for

  • IOS 8.1 How to batch delete unfavorable photos?

    since iOS 8, we lost the iPhoto app and the ability to batch manage photos. As sad as that is, now I'm ready to move on. With the new photo app, i see that we can mark a photo as favorite but I cannot see which photo is favorite on the grid view so I

  • Adobe Bridge Keyword issue

    I am using Photoshop CS4 along with the Adobe Bridge that downloaded with it. I installed the software on an iMac with Snow Leopard as the OS. Using the Bridge, I assigned keywords to about a thousand images in numerous folders. I used the Bridge wit

  • How can i access iPads 2 Mediathek in ATV2

    I can not see iPads Mediathek in Apple TV2 with the Home Sharing option, only Mac or Windows Computers running iTunes are shareable in ATV2. Is it not possible to HomeShare iPad2?

  • Tabs in JList

    Hi all! I have just used JList for the first time and have run into problem. I would like to print a name and then have some spaces and in the end print another string representing a date. The problem is that depending on which characters the name co

  • Anyone have any luck Imaging a Lenovo T420 with ZEN 10?

    I have a ZEN 10 server setup and got the latest (March 2011) BootCD.iso, but still am unable to image one of the New Lenovo T420 Laptops. Has anyone had any luck, or have a bootcd.iso that will work with them? Thanks Bill