JFrame form appears empty in Windoes XP

Sometimes my JFrame forms open with only their border visible. The interior is transparent, showing the background. This also happens, but less often, with JOptionPanes. Whenever it does happen, I can minimize then restore the form and all is correct. I am using the latest JDK and JRE but it has been happening since 1.5. My OS is Windows XP PRO. Is this a common problem or mine only? In either case, does anyone have any ideas how to prevent it?
Thanks

If any of you can create a SSCCE to demonstrate an intermittent problem that maybe occurs an average 1 out of 20 times I would be maybe a little impressed. No I can't because I always create my GUI by hand without relying on an IDE to generated code that I don't understand. I also following the coding guidelines given in the Swing tutorial where you will find dozens of working examples that don't have a problem.
You are the one with the problem. We don't have time to guess what you might be doing wrong. Adding components to a frame is straight forward. We have no idea what you might be doing wrong. You've already been given the basics:
a) all code should be on the EDT
b) add components first before showing the GUI or if the GUI is visible then do revalidate(), repaint() on the panel.
Thats how simple it is.
So if you are not interested in posting your SSCCE, I'm not interested in making an effort to solve the problem.
You get what you give. In this case you have given nothing.

Similar Messages

  • Making parameter form appears

    Dear All,
    i have a problem regarding showing parameter form that made by report developer when i call the report from my form
    first i use winXP sp3, database 10g ,developer suite 10g
    the problem is as follow:
    the report run perfectly from report builder and the parameter form appears but when i call the report from the form the report appears without parameter form screen and this make report empty
    notice1 :  i call any other report it is appears successfully
    in a short way (how can i make report parameter form appears when i call it from a form )
    i call the report through the following procedure
    procedure open_my_report (p_repname varchare2) is
    report id  report object;
    reportserverjob varchar2(100);
    report_status varchar2(20);
    begin
    report_id := find_report_object('myreport');
    set_report_object_property(report_id,REPORT_FILENAME,'c:\developersuitehome_1\reports\'||p_repname||'.rep');
    set_report_object_property(report_id,REPORT_EXECUTION_MODE,BATCH);
    set_report_object_property(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    set_report_object_property(report_id,REPORT_DESTYPE,FILE);
    set_report_object_property(report_id,REPORT_DESNAME,'c:\reports\'||p_repname||'.pdf');
    set_report_object_property(report_id,REPORT_DESFORMAT,'pdf');
    set_report_object_property(report_id,REPORT_SERVER,'rep_raysoft');
    reportserverjob := run_report_object(report_id);
    if rep_status = 'FINISHED' then
    copy_report_object_output (reportserverjob,'c/'||prepname||'.pdf');
    host('c/'||prepname||'.pdf',no_screen);
    message('report '||p_repname||' completed successfully');
    else
    message('error when running '||p_repname||' report .');
    end if;
    end;
    notice2: i try to activate the parameter form by adding this line in the procedure
    set_report_object_property(report_id,REPORT_OTHER,'paramform=yes');
    but it desn't make any differance
    so i will be so apreciated if anyone can help me
    thanks
    regards
    yasser elbighily

    Dear All,
    thanks for your attention
    really i modify my code to be appear as follow
    PROCEDURE OPEN_MY_REPORT (p_repname Varchar2) IS
    v_report_id Report_Object;
    vc_ReportServerJob VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    v_reportservername VARCHAR2(50):='rep_raysoft'; /* THE NAME OF THE REPORT SERVER*/
    vjob_id VARCHAR2(100); /* job_id as number only string*/
    BEGIN
    /* Get a handle to the Report Object itself. */
    v_report_id:= FIND_REPORT_OBJECT('MYREPORT');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,'C:\DevSuiteHome_1\reports\'||p_repname||'.rep');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,FILE);
    /* Define the report output format and the name of the Reports Server
    as well as a parameter form to be displayedwhen required. */
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,v_reportservername);
    if p_repname = 'REPCENTERSPREADING' then
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'paramform=yes');
    else
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'paramform=no');
    end if ;
    vc_ReportServerJob := RUN_REPORT_OBJECT(v_report_id);
    message(vc_ReportServerJob);
    message(vc_ReportServerJob);
    vjob_id := substr(vc_ReportServerJob,length(v_reportservername)+2,length(vc_ReportServerJob));
    message(vjob_id);
    message(vjob_id);
    /* If finished, check the report status . */
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status='FINISHED' THEN
    /* Call the Reports output to be displayed in a separate browser
    window. The URL for relative addressing is valid only when the Reports
    Server resides on the same host as the Forms Server. For accessing a
    remote Reports, you must use the prefix http://hostname:port/ */
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||'?server=rep_raysoft','_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    and it helps me to display the parameter form but i face another problem that is when i enter values for my parameter it gives me the following error
    REP-52007: Parameter form format error.
    note: i test the report directly from report builder and it work successfully without any problem
    so can anyone help me please
    yasser elbighily

  • How to create a template like JFrame Form in netbeans?

    Hi! I'm working with netbeans 5.5.1 jdk 6 and i'm trying to make my own JFrame form template to avoid writing a lot of code.
    I look in the Template manager and add my template but when i add it to the template list it appears like ".java" extension, no matter if i choose the .FORM file. This bring me the problem that i can't use the netbeans GUI editor on this template and is my goal :S
    It may be a simple question but i haven't found anything to solve it,
    If anyone knows how to create and use the templeate as i need i would appreciate the help!
    Thanks a lot!

    I'm sure that someone at the NetBeans website mailing list knows how to do that. Do note that these are Java forums, not NB support.

  • Mapped network drive appears empty for all users on one computer

    We have several network drives mapped via a batch file at log in.  On one particular Windows 7 computer one of these drives maps but appears empty.  Manually mapping to the drive and assigning a different drive letter makes no difference but manually
    mapping by entering the IP address allows viewing and accessing the contents.  
    The malfunctioning network drive is also using Hosted BranchCache.  The following settings are set in local group policy:
    (\Network\BranchCache)
    Turn on BrancheCache - Enabled
    Set BranchCache Hosted Cache Mode - Enabled - <servername>
    Configure BranchCache for network files - Enabled - 0
    The servers involved are running Windows Server 2012.
    I am at a loss here and will appreciate any suggestions. 
    ~JuniorG33k "Why is this thus? What is the reason for this thusness?"

    With Offline Files disabled the contents of the mapped drive are visible and accessible.  Unfortunately, Offline Files must be enabled for BranchCache to work.  
    Looking in the Event Viewer at “Applications and Services Logs\Microsoft\Windows\OfflineFiles\Operational” I can see that the mapped network drive transitioned to slow link during high latency but has never transitioned back. 
    ~JuniorG33k "Why is this thus? What is the reason for this thusness?"

  • MacBook Pro says "startup disk full" and that I have 58GB of photos, but folder appears empty

    For the past couple of days, I've been getting the message that I'm unable to save/download something because the startup disk is full. I checked the storage and the main problem appears to be 58.7 GB of photos, even though I've deleted all photos I could find (including iPhoto). I checked all of the folders on Finder, only to find my picture one taking up most of the space, but when I tried to view what was inside it appeared empty, and it wouldn't let me move the folder to trash. Any help on how to delete the contents of the folder?
    Thank you 

    just kidding i figured it out

  • NetBean - java class add to JFrame form?

    i have already type my own class using 'java class type' . The problem is, now i wanted to add a new class using the GUI in netbeans, so i create a JFrame using GUI in netbean, how do i connect the 'java class type' with the 'JFrame Form type' in netbean?
    I'll be able to call a frame to another frame if i using both JFrame form type. The problem came in when i try to link the java class i just mention above. Please help.

    karhong,
    Sorry mate, your question is impossible to interpret. Try asking your question again in different words... and include your code, and error any message(s)...
    ... and read the Formatting tips before you post.
    ... and this is a Java coding forum... so you might have better luck posting this one on a netbeans specific forum like JGuru's Netbeans Forum.

  • Issue: installed Adobe Reader XI, Norwegian version, existing pdf will not open or appear empty

    I have uninstalled and reinstalled a number of times, but I still have the same issue. Adobe automatically gives me the Norwegian version as I live in Norway. When I open existing pdf files they appear empty, and automatically close themselves after a few seconds.
    Any idea how I can solve this problem?
    Your input is highly appreciated!
    Thank you.
    R

    Thank you so much for your swift response, Pat! The first step – accepting the Eula license agreement solved my problem ☺ ☺ ☺
    Wish you a great day – you just helped making mine a lot better!
    Randi
    Fra: Pat Willener [email protected]
    Sendt: 27. august 2013 09:09
    Til: Randi Hognestad
    Emne: Issue: installed Adobe Reader XI, Norwegian version, existing pdf will not open or appear empty
    Re: Issue: installed Adobe Reader XI, Norwegian version, existing pdf will not open or appear empty
    created by Pat Willener<http://forums.adobe.com/people/pwillener> in Adobe Reader - View the full discussion<http://forums.adobe.com/message/5629375#5629375

  • Problem in Nls_lang (words on form appears like ??????????)

    hi
    i develop forms in old release of developer 10g suit and recompile it in higher release of developer 10g suit
    i have a problem with language in my forms , all my words on my forms appears question marks like ??????????
    i`m using developer 10g suit(higher release) , OracleXEUniv database engine , windows XP as OS.
    words on forms written by Arabic ,
    i change all NLS_Lang registry files for oracle into ARABIC_EGYPT.AR8MSWIN1256
    and change regional and language options >advanced tap > Arabic(Egypt), and mark all Arabic choices and transfer all files needed from windows CD.
    and recompile forms,the problem still there,
    please replay for answers , how can i fix it?
    thank you,

    hi
    are u able to write in arabic?
    sarah

  • Forms 10g Migration : Menu attached to form appears on MDI Window.

    Hi All ,
    On migration of forms 5/6i into forms 10g observed that the Menu Module attached to a form appears on MDI window and not attached to the main window of the form.
    How do we ensure that the Menu and the Horizontal toolbar attached to the form appear on the main window of the form and not on the MDI Window ?
    Kindly help please ...
    Thanks ,

    Hi,
    I have same issue. Did you find any solution ?
    Please let me know.
    Thanks.

  • Make a JComboBox With JTextField Appear Empty?

    greetings all
    i have a JComboBox With a JTextField
    and the JComboBox Always Appear with the First value in the array or in the vector
    but i want it to appear empty when the program runs,how to do that?

    You only want to do that if you want to allow the user to select the null value in the course of running the program. If not, Joerg22's solution is the correct one.
    db

  • Controlling form appearance according to the values in the table.

    Hi,
    I want to control my form appearance foreground color,background color, font name, font size etc. at form startup. These values are kept in a table. Please tell me the best way.
    Thanks,
    Shafiq
    null

    Depend on the values; if the values are a given, i.e if the values only takes a certain combinations then create predefined visual attributes and at runtime apply thro the pre-form trigger.
    if the values are vary regularly then pick the values at runtime pass it thro parameters/global variables at the pre-form
    /when-new-form instance.
    null

  • Getting JFrame to appear on PC

    What do I have to download to get my JFrame to appear on my PC?

    The following code, taken from FrameDemo, is a typical example of the code used to create and set up a frame.
    //1. Optional: Specify who draws the window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //2. Create the frame.
    JFrame frame = new JFrame("FrameDemo");
    //3. Optional: What happens when the frame closes?
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //4. Create components and put them in the frame.
    //...create emptyLabel...
    frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);
    //5. Size the frame.
    frame.pack();
    //6. Show it.
    frame.setVisible(true);
    Tutorial at:
    http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html

  • My Events Suddenly appears empty

    After I finish editing a photo, when I click back on the event name, the event appears empty.
    When I go back to all events, and then click on the event, it remains empty
    When I switch events within an event, using the arrows at the top right, the event repopulates.
    If I close iPhoto and re-open it repopulates.
    Anyone else experience this?

    Ok, so this is iPhoto '11 (9.1.3) showing an Event that actually has 280 photos in it. Notice anything missing? Jump out of Full Screen mode. Even the buttons in the top-right corner to change Event aren't working properly, because they're not white and clickable.

  • How to save PDF form without empty fields ?

    Hello,
    I try to find how to save PDF forms after a school registration but without empty fields because i have lots of relation in my Form but i haven't.
    Is it possible and how ?
    Thanks

    Hi,
    Are you downloading responses as PDF forms after forms are submitted? If so, FormsCentral doesn't provide an option to exclude empty fields and you won't be able to save PDF forms without empty fields.
    You can use this form to "vote" on popular feature requests, or to add a new one of your own:
    https://adobeformscentral.com/?f=XnF-KJVCovcEVQz9tZHYPQ
    Thanks,
    Wenlan

  • Itunes library appears empty

    I have about 5GB of music but all of a sudden my itunes library appears empty... I am pretty sure the music is still in my computer but I can't access it.
      Windows XP  

    do you know where on your machine the files are at (start in "my computer", then into your hard drive, and so on)??? If you do then make sure that the directory that itunes has for your music is the same as where they are actually at. If you can't find them do a search for "all files and folders" using an audio extension such as .mp3 or .aac and see if you can locate where they are at.

Maybe you are looking for

  • One step DVD unable to capture video

    I have made many movies using one step dvd in the past. For some reason, now I get a message "Nothing Captured" "No video has been captured" when I try to create a new dvd from my video camera. I used the same camera and connection cords on another a

  • How do I sync a verizon jetpack with my macbook pro?

    How do I sync a verizon jetpack with my macbook pro

  • Importing fl.controls causes external .swfs to crash

    Hello, I've discovered that if I use fl.controls.* classes in my AS3 code, and then load an external .SWF that uses something like fl.controls.combobox, I will get a crash when clicking on the combobox. The crash is as follows: TypeError: Error #1009

  • Seeking what type & info for connector cable for W500 Digital or non-Digital Displayport to HDMI

    Hello,  I have purchased and waiting arrival of:   Thinkpad W500 T9400 64Bit   4061-BV3  # xx-xxxxx  Windows 7 Prof. I'm not sure if the port is Digital or non-digital.    I think the Lenovo site specs don't say "digital".  But a review on internet t

  • Data fetching anomalities

    Ctrl+A fetches all rows and there is no way to cancel it. I was lucky that this was just a development database (some 60K records vs 20M in production). Old habits die hard, and I'm used to selecting all fetched data with Ctrl+A. :) Also - shouldn't