Problem to show a simple window when dowaloading ?

Hi
I created a pure java swing application. When run this app and when it start to download some files from server, it will take long time. I launched/new a simple JFrame window to show a simple "please waiting" message when downloading files. But only window frame show up, and no context. Actually I can see only empty frame and without any content. Only when downloading files is finished, content show up/come out. So I can not show some warning message to user when programm is downloading some files. Who can tell me what is problem?? I use Windw XP. Thanks in advance
gary

HI
I have tried to open another thread and inside another thread I new/launch my GUI class. I met same problem (only show frame and context come out after download is finished). My coding is below: Thanks
//my main class for downloading files from server
public class download(){
ShowProgress progress=new ShowProgress("waiting");
progress.start();
downloading .....
//open new thread
public class ShowProgress extends Thread {
String text;
public ShowProgress(String s) {
super(s);
text=s;
public void run(){
ShowEnd showend=new ShowEnd(text);
//GUI class to show "wait message"
public class ShowEnd extends JFrame {
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
JEditorPane jEditorPane1 = new JEditorPane();
public JButton Ok = new JButton();
String text;
public ShowEnd(String s) {
super("Finished");
text=s;
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
private void jbInit() throws Exception {
this.getContentPane().setLayout(borderLayout1);
jEditorPane1.setBackground(Color.lightGray);
jEditorPane1.setEditable(false);
jEditorPane1.setText(text);
jEditorPane1.setPreferredSize(new Dimension(400,120));
Ok.setText("Ok");
Ok.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
Ok_actionPerformed(e);
this.getContentPane().add(jPanel1, BorderLayout.SOUTH);
jPanel1.add(Ok, null);
this.getContentPane().add(jEditorPane1, BorderLayout.CENTER);
this.pack();
this.setVisible(true);
void Ok_actionPerformed(ActionEvent e) {
System.exit(0);
}

Similar Messages

  • I am running 4.0.1 and when I download something the Download box stays blank-even though I have selected in General Preferences 'Show the downloads window when downloading a file' AND selected 'Save files to Downloads'....???

    I am running 4.0.1 and when I download something the Download box stays blank-even though I have selected in General Preferences 'Show the downloads window when downloading a file' AND selected 'Save files to Downloads'....???

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Problem with openning a new window when click news tiltle link

    After create a news item using News form created by XML form builder, i try to click title link, It always opens a new window, what i want is keep it in same window when i click the title link, not open a new one. Is there anyone know how to do that? thanks

    Hi,
       I think its not possible in case of XML Form Builder. Bcoz,
    <b>Edit Form</b>:it is for authoring like creating News
    <b>Render list Form</b>:It is for Publishing the News
    <b>Show Form</b>:It is for showing the whole content of the News
    In XML Form Builder, by default when you create a new form these forms ie. Edit Form (You will design the Form here, only authorised person or the owner only view this).
    The Second Form(Render List Item) is the one will be shown to everyone with brief information.
    The Third Form(Show Form) is the one when you click on the News page, it will show you one more screen, there you can see the detailed description about the News.
    So, when you click on the Rendered List Item Title, it will open only in the separate window.
    Regards,
    Venkatesh. K

  • Problem with closing other firefox windows when window in use has more than 1 tab open

    If I have multiple firefox windows open, and the one that I am using has more than one tab open, when I try to close one of the windows that I am not using by hovering over the firefox icon on the taskbar, then clicking the cross on the other windows, a message appears asking me if I want to close a window with more than one tab open. This means that firefox is trying to close the window that I'm using, not the one I'm trying to close. Please note this only happens when I hover over the icon on the taskbar then click the cross for the window I want to close. If I open the window properly, then click the cross on the window itself, it works fine.
    Just wanted to know if anyone else has this problem, and if they do, then mozilla should probably fix it in their next update, it's getting really annoying now

    I can't find a bug on file for this on https://bugzilla.mozilla.org/ (although there are many taskbar-related issues under review).
    (1) Just to confirm, do you both have "Show tab previews in the Windows taskbar" turned off here:
    orange Firefox button (or Tools menu) > Options > Tabs
    (2) Have you tried disabling Firefox use of hardware graphics acceleration?
    You usually need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    orange Firefox button (or Tools menu) > Options > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    If you restart Firefox, do you notice any changes?

  • Problems with "show view options window"

    In Snow Leopard when I click Finder>View> Show View Options. The window that pops up looks different form what is supposed to be, is like this.There is no "use as default" button.  I tried everything, restarting in safe disk mode, deleting all .DS_Store files,  deleting the com.apple.finder.plist form the Preferences of the User without any success. Can anyone help? Am I left with just having the re-install the system?
    Thanks a lot for the help

    Although the Desktop is sometimes treated as if it were a Finder window, it is a special case. And, in this case, the View Options window for the Desktop (which you have depicted) will not display the "Always open" choice, since Icon view is the only view for the Desktop; hence, there is o Save as Defaults button for it either.
    However, if you open the Desktop in a Finder window, such as by clicking the item Desktop in the Sidebar of a Finder (folder) window so that the Desktop is replicated in a separate window, you can open the View Options screen for that 'folder' and have those settings available.

  • Having problems with a pop up window when downloading

    Hi all,
    i developed a site in asp.net,
    everytime i click to download a file on the site, it opens a *blank window* and leaves it open, it only happens with safari, it works fine with the other popular browsers, with the others, it opens the download box directly.
    for safari it still downloads directly but the blank pop up window still stays open.
    im not a pro, but would like to fix this, i would be really greatul if someone could help me for this,
    Thanking you in advance!

    Thank you for your response Carolyn,
    but unfortunately it has more to do with coding compatibility, i put the target to blank as highlighted. it opens the window for all browsers and closes it automatically when the download starts, but with safari it stays open.
    here is the code for the download asp.net function,is there anything which needs to be put up there to be compatible with safari?
    i do hope that it is now clearer,
    thanking you again!
    <table border="0" cellspacing="0" cellpadding="0" style="margin-left:0;">
    <tr>
    <td width="185" height="89" align="center"></td>
    </tr>
    <tr>
    <td height="30" align="center" ><table width="100%" border="0" cellpadding="0" cellspacing="5">
    <tr>
    <td width="38%" align="right" ></td>
    <td width="62%" align="left" class="riqi">Campus</td>
    </tr>
    </table></td>
    </tr>
    </table>
    </td><td></td><td></td><td></td><td></td>
    </tr>
    </table>
    Message was edited by: positivologist

  • HT1481 ipod shuffle 2nd generation, does not show up in window when plugged into itunes. Also, does not charge(no light comes on).

    I have a ipod shuffle (2nd generation) that won't light up when plugged in to the power adapter. I have only used it a few times since I purchased it years ago. Also, when I plug it into my computer with itunes running, it isn't recognized at all, as in nothing happens when I plug the usb cable with ipod attached and on to it. Any help would be much appreciated.

    but there is another unspecified error.
    What is that error?
    Are you sure she has a Shuffle? You mentioned a Sad Face.. that would indicate that the iPod has a display, which a Shuffle does not.
    B-rock

  • Cc 2014 - Nothing shows in inport window when importing AE comp.

    So I'm trying to import a comp and there's nothing at all in the window

    We found what the culprits were, but I don't know why they'd cause these error messages.
    To recap, I have a piece of HD video that I've duplicated 39 times with a different triangular mask on each layer to re-create the whole frame (moving the anchor points of each layer as needed).  The idea is that I then rotate those layers in 3D somewhat randomly, revealing a different video clip on the back side.  To create the "B-side" video for the back sides I duplicated the original 39 faceted layers and parented each to its corresponding "A-side" piece.   I created some opacity expressions to make the A-sides disappear halfway through their rotation with the B-sides appearing at the same point.
    My plan was to vary the mask shapes on the A-sides to create variations on the transitions, so I enabled an expression on the masks and pick-whipped the mask shapes on the B-sides to their A-side counterparts.  That seems to be the problem.  Here's the expression (applied to layer 26B):
    thisComp.layer("26").mask("Mask 1").maskPath
    I repeated this for all 39 B-side layers.  Then I duplicated that comp and inserted new video into the transition.  At some point some part of the software decided some layers were missing or something, creating the above error messages.  The comps still worked as designed; it was just error messages that I had to repeatedly dismiss.  Once I deleted all of these mask expressions the error messages stopped.
    Before deleting those expressions we tried renaming the layers (1-39) so they were unique within each comp (Train1, Rail1, etc) but that didn't work.
    Feels like a bug.
    Shawn Marshall
    Marshall Arts Motion Graphics

  • Not showing  pop up message window when message type I and W

    Hi,
    My requirement is to show the popup message window with material number, material description and ABC indicator of material at Every line item of PO in Transaction ME21N , if material is significant.
    I find Badi to transaction me21n ME_PROCESS_PO_CUST~PROCESS_ITEM
    actually i want show only information about material.
    This Badi ( ME_PROCESS_PO_CUST~PROCESS_ITEM ) is properly working But does not showing Popup Message window
    when i am using Message Type  'I' or "W" .
    <Coding>
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
    BREAK-POINT.
    BREAK-POINT.
        IF  SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21' . " ) AND MEPO1211-werks IS NOT INITIAL. " AND IM_LGOBE IS INITIAL.
       BREAK-POINT .
      DATA : VAR_MAKTX TYPE MAKT-MAKTX.
      DATA : VAR_MAABC TYPE MARC-MAABC.
      DATA : P TYPE STRING.
      DATA : P1 TYPE STRING.
    DATA: ls_mepoitem1 TYPE mepoitem,
          ls_header_obj TYPE REF TO if_purchase_order_mm,
          ls_header   TYPE mepoheader,
          lc_werks(1) TYPE c,
          lv_fabkl    TYPE t001w-fabkl,
          lv_plifz    TYPE ekpo-plifz.
       *Get header data
      ls_header_obj = im_item->get_header( ).
      ls_header     = ls_header_obj->get_data( ).
    *Get Item Data
    ls_mepoitem1 = im_item->get_data( ).
        SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ ls_mepoitem1-matnr AND werks EQ    ls_mepoitem1-WERKS.
        SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ ls_mepoitem1-matnr.
          IF   VAR_MAABC EQ 'A'.   "LS_MEPOITEM1-SPINF EQ 'A'.
            P = 'is significant material'.
            CONCATENATE  LS_MEPOITEM1-MATNR '' '(' VAR_MAKTX ')'  '' P INTO P1.
           MESSAGE p1 type 'I' .   
            EXIT.
            ENDIF.
            ENDIF.
    endmethod.
    guide me.....

    Hi
    Please, see SAP Note 310154 - ME21N/ME51N: Customer-specific check, generating error log
    I hope this helps you
    Regards
    Eduardo

  • Magic Trackpad - Pairing Problems Switching Between OS X & Windows

    My system has Mac OS 10.6.4 (with Magic Trackpad update 1.0 installed) and Windows 7 (with Bootcamp 3.1 plus the "Magic Trackpad/27" Cinema Display" update). The Trackpad works correctly after setup in OS X with all functions working even after reboots. The Trackpad also works correctly after setup in Windows 7 (with passkey 0000) and continues to work correctly with the supported features with multiple reboots into Windows 7.
    The problem is that after using Windows, when I reboot to OS X the Trackpad will not function. It shows as paired but disconnected and will not stay connected. If I un-pair and then re-pair it will work. And the same thing happen when I switch from OS X to Windows - it shows as paired but unconnected and the only way to get it to work is to un-pair and then re-pair.
    I had a similar sort of problem with the Magic Mouse and found that if I un-pair in OS X, pair in Windows, and then pair in OS X it will work with both. But the Trackpad won't work this way, even after trying this. I think the problem is that the Trackpad won't allow paring with two different systems (for the obvious reason) but isn't designed to accommodate the Bootcamp scenario.
    I really like the Magic Trackpad and would like to be able to use it on those rare occasions when I need to use Windows without the hassle of reinstalling it each time I boot a different OS. Any solution to this problem?

    UPDATE: I installed Vista on Bootcamp and tried the Magic TrackPad driver. It has the same problem. I can get the device to work as advertised on the initial install and reboots in the same OS. But when you switch from Windows to Mac OS X (or vice-versa) the device will not work: in Windows is listed as paired and connected, but does not work. In Mac OS X, it will not connect automatically and does not work. If you manually try to connect the Bluetooth icon briefly shows connected and then disconnects.
    I sent a bug report to Apple as a "developer" and they state that it is a known issue. I guess we simply wait for them to get around fixing the drivers at some point in the distant future. Clearly they ignore these forums altogether. The experience has left me disappointed with Apple and their slow and inadequate response to problems. I would rather they devote some resources to getting their existing products to work instead of wasting resources to add iPhone-style displays to Mac OS X. If I wanted buggy drivers and no support I should have just stayed with Windows.

  • Why are not  pop up  message window when message type I and W

    Hi All,
    I am working in BADI ( me_purchdoc_posted~posted) for t-code ME21N. Actually i want show material number, material description  and ABC indicator of material at saving point of PO if material is significant.
    code is properly working  but does not showing  error message window when I am using message type I  (information) or W (worming message) .
    if i am using message type E ( error message )then showing message window just link  Information message.
    So i can no understand why are not message window pop up  when i take message type I and W.
    my code is that
    method IF_EX_ME_PURCHDOC_POSTED~POSTED
    IF SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21'.
      DATA : wa LIKE LINE OF IM_EKPO.
      DATA : VAR_MAKTX TYPE MAKT-MAKTX.
      DATA : VAR_MAABC TYPE MARC-MAABC.
      DATA : P TYPE STRING.
      DATA : P1 TYPE STRING.
      LOOP AT IM_EKPO INTO wa.
        SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ wa-matnr AND werks EQ wa-werks.
        SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ wa-matnr. " AND werks EQ wa-werks.
          IF VAR_MAABC EQ 'A'.
            P = 'is significant material'.
            CONCATENATE  WA-MATNR '(' VAR_MAKTX ')'  P INTO P1.
            MESSAGE P1 TYPE 'E'.
            EXIT.
            ENDIF.
      ENDLOOP.
    ENDIF.
    endmethod.
    guide me...............

    Hi vinod,
    thanks for reply......
    yes,  my  requirement is to show the popup window with  material number, material description and ABC indicator of material at saving point of PO if material is significant.
    I find Badi to transaction me21n at saving PO.  Badi ME_PROCESS_PO_CUST does not exist.
    so i am using Badi me_purchdoc_posted~posted.
    This Badi  ( me_purchdoc_posted~posted ) is properly working But showing message  "system error ( error in method po_post ) "
    when I am click on OK then automatic leave from transaction.
    guide me..........

  • IE opening multiple windows when searching google only.

    We have a problem where IE opens multiple windows when searching in Google. As a result of this we are receiving Google sorry page informing us that Google is receiving automated search requests from our public IP. Is there any quick fix to this problem
    apart from restoring and reset setting  in IE.
    Is anybody else facing this issue.?
    REgards
    Nahas

    Hi Nahas,
    Thank you for your update.
    Based on the current situation, you may remove any Google domains in your trusted sites for a test.
    Tools>Internet Options>Security tab, click "Reset all zones to default"
    Trusted sites icon, 'Sites' button. Remove any Google domains in your trusted sites list.
    For more information, you may refer to:
    Understanding Zone Elevation
    http://blogs.msdn.com/b/ieinternals/archive/2012/09/24/zone-elevation-security-warning-websites-in-less-privileged-zone-can-navigate-csrf-xss-protection.aspx
    Also, you may try to contact Google to confirm this.
    http://support.google.com/?hl=en
    If you wants to report a bug to Microsoft. I would like to share the link below with you.
    https://connect.microsoft.com/
    Thanks for your understanding.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support
    Spot on Blair. Thanks for the fix!
    Worked for me:
    Tools>Internet Options>Security tab, click "Reset all zones to default"

  • Click a Butoon in RowDetailsTemplate to show a Child Window

    Hi All
    I want to show a Child Window When Clicking a Button in DataGrid RowDetailsTemplate
    my xaml is as below
    <sdk:DataGrid.RowDetailsTemplate>
    <DataTemplate>
    <Button Content=" Show Child " x:Name="bPish" Click="bPish_Click"/>
    </DataTemplate>
    </sdk:DataGrid.RowDetailsTemplate>
    and in cShrp Code
    private void bPish_Click(object sender, RoutedEventArgs e)
    Child150Pish ps = new Child150Pish();
    ps.Show(); // this mehod no available
    How can I Show my Child Window
    Thanks

    Hi,
    Please try to use code below:
    ChildWindow cw = new ChildWindow();
    cw.Content = "Please Enter your name and password or click Cancel.";
    cw.Show();
    For more informaiton,please see:
    http://msdn.microsoft.com/en-us/library/system.windows.controls.childwindow(VS.95).aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Xcode-Show and Hide windows with checkbox?

    I am making an applescript/cocoa application in Xcode 4.6. I in my Main Window, I have two windows that are hidden at launch ("Preferances", and "Advanced") and one window ("Simple") that is visible at launch. In the preferances window, I have a checkbox. I would like that box, when checked to display the "Simple" window, and Hide the "Advanced" window, and even when closed and relaunched, will remain how the preferances are, and not have to check the box everytime on startup of the app. Anyone know how to do this? Thanks!

    Ok something isn't quit right
    I in my Main Window, I have two windows that are hidden at launch ("Preferances", and "Advanced") and one window ("Simple") that is visible at launch. In the preferances window, I have a checkbox. I would like that box, when checked to display the "Simple" window, and Hide the "Advanced" window,
    What do you mean by in the main window are two windows?  Also if the checkbox is in the preferences window and that is hidden at launch how do you get to it to check/uncheck it?
    This checkbox basically toggles between the two windows? selected it displays the 'simple' window, when unchecked it displays the "Advanced" window?
    This script
    script AppDelegate
      property parent : class "NSObject"
        property ppw : missing value
        property isShowing : 0
              on applicationWillFinishLaunching_(aNotification)
      -- Insert code here to initialize your application before any files are opened
              end applicationWillFinishLaunching_
              on applicationShouldTerminate_(sender)
      -- Insert code here to do any housekeeping before your application quits
                        return current application's NSTerminateNow
              end applicationShouldTerminate_
        on displayButton_(sender)
            if (isShowing = 0) then
                ppw's orderFront_(sender)
                set isShowing to 1
            else
                ppw's orderOut_(sender)
                set isShowing to 0
            end
        end
    end script
    will toggle a second window from a button on the firsst window.
    This is what the nib file looks like
    ppw is attached to the panel.
    This should get you started. Post back if you have more questions.

  • HT201317 My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.

    My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.I reinstalled my icloud and checked if icloud sharing is ON. I can see pic in my photo stream in PC only in slide show mode. While in list mode it shows pics before i actually click on photostream folder. My phone memory is out becose of bunch of photoes. How do i copy my photostream photoes.

    Hi all.  I can’t tell you how to solve your iCloud 3.x issues.  Heck, I don’t think they’re even solvable.
    But if you had a previous version of iCloud that was working correctly then I can definitely tell you how to solve the “iCloud Photo Stream is not syncing correctly to my Windows 7 PC” problem.  …without even a re-boot.
    Log out of iCloud 3.0 and uninstall it.
    Open My Computer and then open your C:\ drive.  Go to Tools/Folder Options and click on the View tab.  Select the “Show hidden…” radio button and click on OK.
    Open the Users folder.
    Open your user folder
    Open ProgramData (previously hidden folder)
    Open the Apple folder – not the Apple Computer folder.
    Open the Installer Cache folder
    In Details view sort on Name
    Open the folder for the newest entry for iCloud Control Panel 2.x – probably 2.1.2.8 dated 4/25/2013
    Right click on iCloud64.msi and select Install.
    When finished, the synching between iCloud and your PC will be back to working perfectly as before the 3.0 fiasco.  The pictures will be synched to the same Photostream folder as before the “upgrade”.  Now all you need to do is wait until Apple/Microsoft get this thing fixed and working before you try the 3.x upgrade again.
    I think the iCloud 3.0 software was written by the same folks who wrote healthcare.gov with the main difference being that healthcare.gov might eventually be made to work.
    For those of you who hate to go backwards, think of it as attacking to the rear.  Which would you rather have, the frustration of no synching or everything working on an older version?
    Good luck…

Maybe you are looking for

  • MacBook Pro freezes overnight

    Every once in awhile, I will forget to put my MacBook Pro to sleep before I go to bed. Without fail, in the morning when I try to wake it from sleep, it's frozen. The machine is still on and the screen is black, but no matter what you press on the ke

  • Still not able to acheive R/3 - XI - R3 scenario

    Hi guys , after getting lots of help from this forum ,and after burning my fingers a lot on this, i am still not able to achive the r/3 -> xi-> r/3 scenario, Can anyone please guide me to any thread or blog which helps me in acheiving this , or if an

  • Get session id

    Hello experts, I would like to know if it's possible to get the sessionID of the current session of an user within an ABAP report - similar to getting other system-parameters, such as system time, username etc. I couldn't find a system-parameter-fiel

  • Forgot the Sync Key of an account

    Hi, I have set up a Firefox Sync account lately. Yesterday, I backed up my laptop but forgot to back up the sync. Now, I can't set up the Firefox Sync service anymore, as my email address has already registered but don't have a sync key to access. I

  • How to delete an auto show contact  when addressing an email

    Typing the first letter of email address brings up a contact list option. I would like to delete one of the options that is not in my contacts list. Suggestions to [email protected]