JRadio Buttons not appearing properly

Hi.
My application has a main class that extends JFrame. It has a simple JMenuBar. Nothing else is there on this JFrame. When a JMenuItem is selected, the JFrame is set to become invisible, create an instance of another class (which extends JPanel), adds this JPanel to its center and becomes visible again.
The JPanel class has four JRadio buttons, a JTextField and a JButton. By default, the JTextField and JButton are disabled.
The problem is that when the JFrame becomes visible again after adding the JPanel, only the JTextField is visible on the screen. The JRadioButtons and JButton are not visible.
The JRadioButtons don't become visible until I move my mouse over the area where they are supposed to be and the JButton doesn't become visible until I select a JRadioButton that enables it.
How can I solve this problem. I want all the components to be displayed (enabled or disabled) when the JPanel gets added to the JFrame and the JFrame becomes visible again.
Thanks.
Shakeel
:)

Hi.
I have written a simple program that does the same
thing, but it works just fine. It's no use posting
it. Here's something else I just noted. After moving
my mouse pointer over the area where the
JRadioButtons are supposed to be, they become
visible, but if I minimize and then restore, or even
maximize the JFrame, all components on the JPanel
become invisible again until I move the mouse over
them.
Could this have anything to do with the repaint not
being called properly or something? Please help.
ShakeelWell if it works fine in your short example that is good news. That means you can narrow the problem down to the differences between the short and normall example.
Slowly add each line from the normal example to the short example until the problem appears.

Similar Messages

  • PO Print preview is not appearing properly for the Bulgarian

    Hello Experts,
    We are facing an issue on PO output print preview and print.
    Where we are expecting the PO output was supposed to print Bulgarian
    language.
    Bulgarian letters are not appearing properly in PO print preview smart
    form
    We are able to see the Bulgarian letters in the GUI, when output gets
    processed in PO Spool output. And we are not able to see it in the
    portal .Its appearing as some junk characters
    Could you please provide me any pointers to resolve the issue?
    Looking forward your help.
    Thank you,
    Bharathi.

    Hi Ganesh,
    Thanks for your reply
    Can anybody tell me, is this is because of the PDF issue or output device issue?
    If the data is maintained in Bulgarian language, that we can see in portal.
    Where when we click on the PO Pint output preview, itu2019s not appearing as some junk characters only
    thank you
    bharathi

  • I'm attempting to create a pdf from InDesign and the Illustrator image does not appear properly.

    I'm attempting to create a pdf from InDesign and the Illustrator logo does not appear properly. The logo has a light blue color background with a black to white gradiant over it with a multiply designation set at 100%.  I flattened the logo in illustrator before importing into InDesign. When the pdf is created, the blue background of the logo drops out and the only thing showing is the graduated screen of black. PLEASE HELP!!!!!!

    Thanks for your reply Peter,
    I'm on Mac OSX (10.5.8) using Acrobat 7 Professional and Acrobat 
    Reader 9 to view the pdf. I created it by exporting. Attached is a 
    screen capture of the letterhead. Since I posted, I sent a test pdf to 
    my partner's computer eventhough it didn't look right on my system and 
    she said it looked fine to her. I've restarted my computer and tried 
    again and still get the same results.
    Thanks for your help,
    Pat Boullion
    Boullion Graphics
    281 444-5749
    Fax: 281 444-6507
    CONFIDENTIALITY NOTICE
    The information in this email may be confidential and/or privileged. 
    This email is intended to be reviewed by only the individual or 
    organization named above.
    If you are not the intended recipient or an authorized representative 
    of the intended recipient, you are hereby notified that any review, 
    dissemination or copying of this email and its attachments, if any, or 
    the information contained herein is prohibited. If you have received 
    this email in error, please immediately notify the sender by return 
    email and delete this email from your system.

  • Stationary credated in Mail does not appear properly when viewed in Outlook, is there aroundthis?

    Stationary credated in Mail does not appear properly when viewed in Outlook, is there around this? Or, can I export (as a PDF) the email drafted in Mail with stationary that does not have the meail info on top of the page . Thanks so much for your help.

    No real solution to problem 1, stationary tends to look different depending on the client, as for 2 Mail does not export to pdf but can print to pdf, however you still get the mail headers.

  • Power button not working properly for iphone 5. Warranty expired on 22 nov 2013 what to do?

    Hi,
    Power button not functioning properly for my iphone 5. Kindly give advice on what to do. Its warranty expired on 22nd november 2013.

    Read here:
    https://ssl.apple.com/support/iphone5-sleepwakebutton/

  • Images,css not appearing properly after accessing the reverse proxy page.

    Usecase :
    1) OHS1 with mod_osso agent deployed.
    2) OHS1 configured as reverse proxy.It points to the webserver(OHS2) of the app1.
    OHS1(mod_osso agent installed)-->OHS2(app1 webserver)
    3) httpd.conf entry in OHS1:
    ProxyRequests Off
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    ProxyPass /test/ http://tkcltkcl.padma.xxx.com:8088/test/
    ProxyPassReverse /test/ http://tkcltkcl.padma.xxx.com:8088/test/
    4) The direct url for appl1 works as per expectation. The reverse proxy redirects from the OHS1 correctly to the app1 OHS webserver accessing the app1 url.But the contents in the redirected app1 url are not aligned properly.Images,css,placement of html links are not appearing properly on the page.
    Do we need to do any other configuration in the revere proxy setup so as to avoid the misalignment on the redirected page?
    Thanks.

    Hi:
    Thanks for the reply! I have been UTTERLY scrupulous about
    keeping precisely time-matched and points-in-my-process-matched
    copies of the project folder for logical, "scientific" testing in
    RH5 and RH7, on precisely matched content.
    I have never even tried to open an RH7-processed copy of the
    project in RH5 because I was warned strongly against this action.
    It boils down to this; I cleaned up, FANATICALLY, all those
    illegitmate filenames, ran the project again in 5, still got
    impermissible missing images (and I mean MORALLY impermissible,
    because I'm doing the right thing!)
    Then, I took that project folder, copied it, and opened the
    exact same ingredients, via the .xpj file, in RH7. Same missing
    images.
    WAIT! Left out something important in first post! Dang; this
    was important! I've fixed missing images, had them appear properly
    upon compilation, then had others that HAD been right, come out
    missing. Have also had reimported, re-placed images come out upon
    compilation following repair, and then go missing again on third or
    later, subsequent compilations. Maddening.
    Am EXTREMELY reluctant to delete CPD file, because the last
    time I did that, I lost EXTENSIVE work I'd done on TOC and Index.
    Not cool at all.
    Hope this wasn't too cranky; truly grateful for help. Just
    very frustrated.
    Thanks!

  • Buttons not appearing clearly upon output

    I have created menu buttons (with highlight) that in turn link to the relevant movie file.
    When outputted to DVD these buttons appear blurry and unclear.
    Why are the buttons not appearing in a crisp, clean state when I have outputted them?

    Which version of DVD SP are you using? Are you
    making these over video menus? What size and color
    of fonts/background? They can all play into what is
    happening, usually 20pt + sans serif works best, but
    the text in DVD SP can often leave things to be
    desired from time to time - where are you previewing
    the buttons?
    Thanks for your reply.
    The vesrion Im using is DV Studio Pro 3. The up state color of the buttons are black and over is red. The font size is 13pt Arial Black.
    I have outputted the DVD itself, so I view it through TV.
    Am I on the right track?
    Thanks again.

  • I got new iphone it had a problem of sleep/off button not working i replaced from care. now the replaced product had a problem that home button not working properly now what i want to do

    Igot new iphone it had a problem of sleep/off button not working i replaced from care. now the replaced product had a problem that home button not working properly now what i want to do

    Hello, krishna kumar.j. 
    Thank you for visiting Apple Support Communities.  
    I understand that you are experiencing and issue with your Home button.  Here are the troubleshooting steps when experiencing this.  
    Get help with buttons and switches on your iPhone, iPad, or iPod touch
    http://support.apple.com/en-us/HT203017
    Cheers, 
    Jason H.  

  • Buttons not appearing after exporting to Interactive PDF

    I created buttons on my master page in InDesign with the event "on click" and actions "go to first page", "go to last page", "go to previous page", and "go to next page". Then I applied my master page to all the pages in my document. On certain pages I override the item on the master page and gave the button a different action (go to text anchor). Then I exported to Adobe PDF (Interactive). When I view the PDF, most of the Master Page buttons do not appear. This doesn't happen every time. I have created documents that work with this setup, but this one document will not work properly. Any suggestions?

    Try exporting IDML, Open IDML, Export from new doc

  • When iTunes is opened the menu does not appear properly but script does

    for the past 2 months whenever i open my iTunes it opens, however not properly. I am able to see all of my songs in my library but the actual menu does not appear. I have tried reinstalling itunes multiple times as well as reinstalling quicktime. I have no idea what else to try please help!

    Reset your iPad. Press and hold both the power and home buttons for 10-15 seconds till the Apple logo appears. Release both buttons. Wait 15-20 seconds till you iPad starts on it's own. Now try and download an app.

  • ADF Buttons not appearing correctly

    I've tried researching this problem and from what I've found it has said if we are using JDK version 1.4 and headless = true then we shouldn't have this problem. When running our application some of our ADF buttons will appear correctly and others will not.
    When I look in our
    application-deployments/../temp/adf/images/cache/en/
    directory I can see the images of the buttons that appear correctly, but if I navigate to another page with different buttons I would then expect to see those images being creating in that folder but there are not. If anyone has any insight on this problem it would be a big help. Thanks.

    Nothing leaps to mind that affected downloadable fonts in Firefox 34... but there are hundreds of changes in each version so I can't rule it out.
    Just to go back to basics for a moment...
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?

  • Photos do not appear properly on MyWay homepage.

    When I do a restart of my laptop and open Firefox, my homepage (MyWay.com) opens properly showing photos. See attachment. After closing Firefox, and then reopening it, the photo do not appear, and the wheel in the upper left hand corner goes round and round like it is attempting to download something. Something is happening after I close the Firefox browser that seems to be causing this problem.

    Separate Issue;
    Your System Details shows;
    Installed Plug-ins
    Motive Plug-in for Mozilla Browsers
    Motive Plugin for Mozilla Browsers
    Having more than one version of a program may cause issues.
    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?

  • Radio Buttons Not Appearing in Quiz

    I created a quiz in Captivate 5.5 then upgraded to Captivate 6.  When I run the quiz locally, the radio buttons appear next to the possible answers and everything works fine.  When I run the quiz in our LMS, the radio buttons do not appear.  Anyone else having this issue or have any insight?

    Hi Anjaneai,
    For some clarification, we are loading the Captivate 6 quiz swf into another swf.  When we play the quiz swf alone, the radio buttons appear.  However when we play the quiz swf within the other swf, the radio buttons disappear.  To reiternate, we loaded Captivate 5.5 quiz swfs into another swf and the buttons appeared.  Do you what the difference between the Captivate versions could be or have any insight?
    We've already looked into some of your suggestions (the Flash player is not the issue) and am looking into your other suggestions.  
    Below is the screen shot you requested.
    Thanks again for your assistance.

  • Button not appearing on quiz pass

    Hi All,
    I'm trying to get a button to appear on a quiz when someone passes successfully.  This button will be a link to another .swf file that will pulled into the project in Aggregator.  The link is working fine, but I cannot get the smartshape to appear successfully when the quiz is passed.  I have used the cpInfoPassFail Advanced Action set to greater than 1, visibility is turned off and execute advanced action is set in the Action property box, but still it does not show.  I've working round and round and circles with this all day, trying different advanced actions, visibility on, off... and nothing is working with it.
    If anyone has any suggestions how and why this not working, I'd really appreciate it.  I'm not finding Captivate particularly intuitive at the moment and am seriously considering heading over the Storyline.

    cpInfoPassFail will never be greater than 1; it has only two values: 0 if failed, and 1 if passed. It is a boolean variable.
    When looking at your action: I thought you wanted to open the URL using the shape button, but you put the command Open immediately after showing the shape? That part should be triggered by the shape button. I hope you configured it as a button?
    http://lilybiri.posterous.com/why-i-like-shape-buttons-captivate-6
    Have a look at this blog post, it has a link to a list explaining all system variables.
    http://lilybiri.posterous.com/system-variables-in-captivate-6
    Lilybiri

  • Button not appearing (obvious fix most likely (no errors))

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.*;
    public class ChatClient
      private TextArea output;
      private TextField input;
      private Button sendButton;
      private Button quitButton;
      private JButton button;
      private ImageIcon image;
      private ImageIcon image1;
      private Panel p1;
      private Frame frame;
      private Panel p2;
      public ChatClient()
        output = new TextArea(10,50);
        input = new TextField(50);
        frame = new Frame("Chat Room");
        sendButton = new Button("Send");
        quitButton = new Button("Quit");
        button = new JButton(image);
        image = new ImageIcon("c:/aztecsun.jpg");
        image1 = new ImageIcon("c:/aztecsun.jpg");
        p1 = new Panel();
        p2 = new Panel();
      public void launchFrame()
               button.setContentAreaFilled(false);
               button.setBorderPainted(false);
               button.setFocusPainted(false);
               button.setPressedIcon(image1);
               p1.add(sendButton);
               p1.add(quitButton);
               p2.add(button);
             // Use the Border Layout for the frame
             frame.setLayout(new BorderLayout());
             frame.add(output, BorderLayout.WEST);
             frame.add(input, BorderLayout.SOUTH);
             frame.add(p1, BorderLayout.EAST);
             frame.add(p2, BorderLayout.CENTER);
             // Add the button panel to the center
             frame.pack();
             frame.setVisible(true);
             //frame.addWindowListener(this);
             sendButton.addActionListener(new sendHandler());
             input.addActionListener(new inputHandler());
             button.addActionListener(new azteca());
             quitButton.addActionListener(new ActionListener()
                  public void actionPerformed(ActionEvent ae)
                       System.exit(0);
             frame.addWindowListener(new WindowAdapter()
                  public void windowClosing(WindowEvent we)
                       System.exit(0);
      /*     class windowTerminate implements WindowListener
                public void windowClosing(WindowEvent we)
                     System.exit(0);
                public void windowDeactivated(WindowEvent we)
                public void windowIconified(WindowEvent we)
                public void windowDeiconified(WindowEvent we)
                public void windowActivated(WindowEvent we)
                public void windowOpened(WindowEvent we)
                public void windowClosed(WindowEvent we)
       class azteca implements ActionListener
              public void actionPerformed(ActionEvent ae)
                   if(ae.getSource() == button)
                        String text = input.getText();
                        output.setText(output.getText() + text + "/n");
                        input.setText("");
           public void copyText()
                String text = input.getText();
                output.setText(output.getText() + text + "\n");
                input.setText("");
           class sendHandler implements ActionListener
                public void actionPerformed(ActionEvent ae)
                     copyText();
           class inputHandler implements ActionListener
                public void actionPerformed(ActionEvent ae)
                     copyText();
      public static void main(String[] args)
        ChatClient c = new ChatClient();
        c.launchFrame();
    }I'm practicing with events/buttons with icons and the button is not appearing...
    Yes the image is in the correct directory... (for the obvious fix type of people)...
    But yeah...
    Thanks!

    I know the fix but I do not know how to do it... I haven't added the image button correctly therefore it is not appearing, but I lack the necessary skills to fix the problem.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.*;
    public class ChatClient
      private JTextArea output;
      private JTextField input;
      private JButton sendButton;
      private JButton quitButton;
      private JButton button;
      private ImageIcon image;
      private ImageIcon image1;
      private JPanel p1;
      private JFrame frame;
      private JPanel p2;
      public ChatClient()
        output = new JTextArea(10,50);
        input = new JTextField(50);
        frame = new JFrame("Chat Room");
        sendButton = new JButton("Send");
        quitButton = new JButton("Quit");
        button = new JButton(image);
        image = new ImageIcon("c:/aztecsun.jpg");
        image1 = new ImageIcon("c:/aztecsun.jpg");
        p1 = new JPanel();
        p2 = new JPanel();
      public void launchFrame()
               button.setContentAreaFilled(false);
               button.setBorderPainted(false);
               button.setFocusPainted(false);
               button.setPressedIcon(image1);
               p1.add(sendButton);
               p1.add(quitButton);
               p2.add(button);
             // Use the Border Layout for the frame
             frame.setLayout(new BorderLayout());
             frame.add(output, BorderLayout.WEST);
             frame.add(input, BorderLayout.SOUTH);
             frame.add(p1, BorderLayout.EAST);
             frame.add(p2, BorderLayout.CENTER);
             // Add the button panel to the center
             frame.pack();
             frame.setVisible(true);
             //frame.addWindowListener(this);
             sendButton.addActionListener(new sendHandler());
             input.addActionListener(new inputHandler());
             button.addActionListener(new azteca());
             quitButton.addActionListener(new ActionListener()
                  public void actionPerformed(ActionEvent ae)
                       System.exit(0);
             frame.addWindowListener(new WindowAdapter()
                  public void windowClosing(WindowEvent we)
                       System.exit(0);
      /*     class windowTerminate implements WindowListener
                public void windowClosing(WindowEvent we)
                     System.exit(0);
                public void windowDeactivated(WindowEvent we)
                public void windowIconified(WindowEvent we)
                public void windowDeiconified(WindowEvent we)
                public void windowActivated(WindowEvent we)
                public void windowOpened(WindowEvent we)
                public void windowClosed(WindowEvent we)
       class azteca implements ActionListener
              public void actionPerformed(ActionEvent ae)
                   if(ae.getSource() == button)
                        String text = input.getText();
                        output.setText(output.getText() + text + "/n");
                        input.setText("");
           public void copyText()
                String text = input.getText();
                output.setText(output.getText() + text + "\n");
                input.setText("");
           class sendHandler implements ActionListener
                public void actionPerformed(ActionEvent ae)
                     copyText();
           class inputHandler implements ActionListener
                public void actionPerformed(ActionEvent ae)
                     copyText();
      public static void main(String[] args)
        ChatClient c = new ChatClient();
        c.launchFrame();
    }Edited by: Trizi on Mar 25, 2008 11:52 AM

Maybe you are looking for