How can i hide a JFrame and then Show it again in runtime

How can i hide a JFrame and then Show it again in runtime??
Please, please help me
Its URGENT

Here's even an example:
import javax.swing.*;
public class HideAndShow extends JFrame
     public HideAndShow()
          super("Hello");
          setSize(200, 200);
          setVisible(true);
          try
               Thread.sleep(2000);
          } catch(InterruptedException e) {}
          setVisible(false);
          try
               Thread.sleep(2000);
          } catch(InterruptedException e) {}
          setVisible(true);
     public static void main(String[] args)
          new HideAndShow();
The JFrame will show, then hide, then show again. This is at runtime.

Similar Messages

  • How can I hide the password and user name in url???

    Hi experts,
    I'm creating a login page and know I have a problem.
    The Username and password are verified in a Java class, after checking the user and password, the user should be linked to the portal.
    So far everything has worked well.
    But when I call the lin like this
    res.sendRedirect ("/ irj / portal j_user =" + UserN + "& j_password =" + passw);
    then the user name and Pwasswort appears in the url.
    Can someone tell me how can I hide the password and user name???
    It will be very helpful.
    Thank you
    Edited by: Cilvaring on Aug 5, 2011 12:00 PM

    If there is no specific reason that you have to use sendredirect...thne you can try request.forward.....
    RequestDispatcher rd = request.getRequestDispatcher("pathToResource");
      rd.forward(request, response);

  • How can I hide the borders and keep it as an option?

    How can I hide the borders and keep it as an option?  I had someone go into the css I believe, and make it so there were no borders visible on the page (I could see the dotted outline while working on it, but when pushed, it wasn't visible (which is what I wanted).  They called it "noborders."  Since I had to reinstall, it went away.  Help?
    I have Dreamweaver CS5.5

    Try this site:  CSS Border
    Add code then type in a zero. Later add border size you want.
    examples:  border: 0px solid black;
    or
    border: 1px 000000;
    or
         border-top-style: solid; 0px 000000;
         border-right-style: dotted; 0px 000000;
         border-bottom-style: solid; 2px 000000;
         border-left-style: dashed; 1px 000000;

  • How can i hide my sms and other messanger apps?

    how can i hide my sms and other messanger apps?

    No.
    You can delete them.
    You can put a password on the lck screen.

  • Downloaded Mt Lion Yesterday and my Tool bar has disappeared. I can still access the individual tools but cannot see my header.  I used 'help' and did what it suggested. slected 'hide tool bar' and then 'show toolbar'.  I also restarted etc.

    Downloaded Mt Lion Yesterday and my Tool bar has disappeared. I can still access the individual tools but cannot see my header.  I used 'help' and did what it suggested. slected 'hide tool bar' and then 'show toolbar'.  I also restarted etc.

    Good point BDAqua, the Escape key helps get me back to reality in Lion.
    While I've only dabbled around a little in Lion since it's release (I upgraded a 10.6 Clone to Lion on one of my FireWire Drives) now I'm currently downloading Mountain Lion (to upgrade a Clone of that Lion Clone) so that now I can continue to move forward in madness.
    P.S. Trust me, I'm not laughing. 

  • How can I enable FTP on the DMP and How can I FTP to it and then remove the files that were deployed to the DMP flash?

    How can I enable FTP on the DMP and How can I FTP to it and then remove the files that were deployed to the DMP flash? My platform of DMS is 5.2.2

    Hi Temur, ok. I do the above procedure and it worked fine
    Now, I have other question?
    How can I reproduce any file (for example: a video, an url page, an image), that is in the flash of DMP?
    Índice de ftp://172.17.15.22/tmp/ftproot/tmp/ftproot/tmp/ftproot/usb_1/
    Subir al directorio superior.
    Nombre Tamaño Última modificación
    Sample Videos.lnk
    1 KB
    17/06/2011
    06:25:00 a.m.
    deployment
    29/06/2010
    04:14:00 a.m.
    lost+found
    25/02/2010
    12:00:00 a.m.
    video futbol en la playa.mp4
    1390 KB
    29/06/2010
    01:08:00 a.m.
    videofutbol.mp4
    1390 KB
    29/06/2010
    01:38:00 a.m.
    I like, that el DMP when loss conectivity with DMM, It display at the LCD screen, the video named videofutbol.mp4, this video As I show in the picture above, already in the flash of DMP.
    I appreciate your early response.
    Thanks

  • How can i add videos,movies and tv shows episodes to my ipod nano?I want to know whether i can directly add them through my pc or not without downloading them from i tunes store?

    how can i add videos,movies and tv shows episodes to my ipod nano?I want to know whether i can directly add them through my pc or not without downloading them from i tunes store?

    Yes, you can add your own videos to iTunes, then sync them to your nano, subject to supported max resolution limit and file type.  The specs for the 7th gen nano says (I don't know which nano model you have), Video Format Support
    "H.264 video: 720 by 576 pixels, 30 frames per second; Baseline, Main, and High-Profile level 3.0 with AAC-LC audio up to 256 Kbps; 48kHz; stereo audio in .m4v, .mp4, and .mov file formats
    MPEG-4 video: up to 2.5 Mbps, 720 by 576 pixels, 30 frames per second; Simple Profile with AAC-LC audio up to 256 Kbps; 48kHz; stereo audio in .m4v, .mp4, and .mov file formats"
    http://www.apple.com/ipod-nano/specs.html
    (earlier nanos have lower max resolution limits)
    So, "HD" video is too high resolution, so iTunes will not sync such videos to the iPod (although they play in iTunes).  If you are asking how to set up iTunes to sync videos in general (regardless of source), please post back.

  • How can I hide the version of ColdFusion showing in COldFusion Administrator

    How can I hide the version of coldfusion being shown from the coldfusion administrator login page? Right now I have the Version: 6,1,0,83762 showing.

    For security reasons.
    If there are known vulnerabilities with a specific version of a software release, you don't want to have someone who is scanning to be able to pull that information and then be able to try known attacks that will increase their chances of compromising your site/application.

  • How can i hide extension .mp3 and others

    i want to hide extension .mp3 and other extensions . Can you help me?

    Hi djandyes,
    Globally showing and hiding file extensions is set by a Finder Preference.
    Show or hide filename extensions - Mac Help
    For all files
    If you select “Show all filename extensions,” all extensions are shown, even for files that have “Hide extension” selected. If you deselect “Show all filename extensions,” then file extensions are shown or hidden based on their individual “Hide extension” settings.
    Choose Finder > Preferences, then click Advanced.
    Select or deselect “Show all filename extensions.”
    Thank you for thinking of Apple Support Communities for your support needs.
    Nubz

  • How can I hide the "home" and "net" volumes in mountain lion

    I have a MacBook Pro that I updated to Mt. Lion.  The home and net volumes are now visible in the Finder at the root level.  They contain 0 bytes of data.  How can I make them invisible?

    Sometimes it takes me a while to remember this stuff. The issue is that these invisible folders are actually symlinks and not real folders. They behave differently. Here's something that used to work and may still:
    Open Terminal in the Utilities folder:
    cd /
    nano .hidden
    Press RETURN after each line. In the editor listing enter, one line each, home and net. CTRL+O to save the file. Now log out and log back in or restart. The files should be invisible.
    Beyond this requires downloading the XTools in order to use one developer tool not included with OS X.

  • How can I uninstall imovie '09 and then reinstall it?

    My imovie is not working as it should, and the only thing I can think of to do is to uninstall it and hope that it will then be working properly again when I reinstall. Can anyone help please?

    Hello pritammmul,
    If you follow the steps in the article below, it will erase all the contents and then install the latest version of iOS on your iPhone.
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    Regards,
    -Norm G. 

  • How do I save a photo and then find it again?

    Hi,
    I have 70 photos in my library. All I want to do is save one photo to put on ebay. I have tried everything to save it and then try to find it later, but I can't figure it out. You know how easy it is to just save a word document and then hit browse and instantly find what you're looking for. That's what I want to do.
    I called Apple care and they always just tell me to go to Support and read. I've read for 2 hours and still don't know the answer. They are never any help to me, and to think I paid all that money!!!
    Can I save a photo in my documents so it is easy to find? The answer to this is probably very simple, but I am old and have a hard time figuring out things.
    Please, someone, enlighten me!!

    Hi penny,
    Select the photo in iPhoto
    Go to Share>export
    In the export window you can input the size dimensions and choose your naming scheme.
    Export to the desktop
    Use the photo on the desktop to upload to ebay.
    When you are done uploading you can delete the photo on the desktop.

  • Can we delete network header and then use it again under a WBS?

    Hi All,
    I have an issue where user wrongly create network header and activity not under WBS/project. The situation :
    There is a project / WBS called ABCD. User require a network header ID called RSKA005100S1 under the WBS. However, user create the master network header RSKA005100S1 not under WBS. How can we assign network RSKA005100S1 to be assigned in the WBS ABCD, coz when i tried to create the same network, it says order already exist.
    CHeers,
    Nies

    Hil,
    i hope network header is not released and no cost posting done in your case !!
    Select Network Header RSKA005100S1 and goto assignments tab. assign the WBSE ABCD here, then system shifts the network header assignment to ABCD automatically. No need to delete existing one and creating new one under ABCD.
    Hope this helps you !
    Br
    Hari.

  • How can someone send a message and it shows up from my number

    Please someone help me!!! I am getting messages from someone, I reply, but there is also someone else that replies and it shows from my phone number. it is like i am in the middle of someone elses conversation.. what is going on how can i fix it?

    Try contacting your carrier to see if they can help.

  • How can i have the date and time show up on my canon vixia hf m50

    Cannot get the date and time to show up onscreen in ANY videos on my new vixia HF M50. Can somebody help me on this?

    Hello Jerrysulew, 
    You can show the date and time using the Captions option.  The process is described below.
    Add a new level of enjoyment to your scenes by decorating them. You can add animated graphics, stamps and even your own freehand drawings. The supplied stylus pen will be especially useful for decorating scenes.
    You can decorate scenes as they are being recorded.
    IMPORTANT
    The screens and settings that appear may differ depending on the model you are using.
    NOTE
    You can open the decoration screen when the LCD panel is stowed with the LCD screen facing away from the camcorder. In such case, make sure [Autostart Decoration] is set to [On].
    Decorating Scenes while Recording
    1. Touch [ 
    2. Touch [Decoration].
    3. The decoration mode screen appears.
    On the decoration screen, there is a canvas where you can draw freely, and a toolbar with tools lined up for creating your drawings.
    Select the tool you want to use from the toolbar, and make drawings on the canvas.
    Icon
    Tool name
    Function
    Pens and Stamps
    Select the type of pen or stamp and its color. You can also save a canvas or load a previously saved canvas.
    Animated Stamps
    Select animated stamps to add to your decoration.
    Captions
    Add the date, date and time, story title* or story theme* as a caption that will be included in the recording.
    Image Mix**
    Choose one of 27 different frames to add onto the canvas. Image mix can be used in combination with the pens, stamps and animated stamps.
    Freeze screen**
    In recording mode: pause the live video. Touch [ 
     again to restore the live video. You can add decorations to and record the frozen image.
    In playback mode: pause the playback. Touch [ 
     ] to resume playing back the scene.
    Minimize toolbar
    Minimize the toolbar to the top of the screen to view almost all of the canvas. Touch [ 
     ] to restore the toolbar.
    * Not available in 
     mode.
    **Not available in 
     mode and for MP4 movies.
    4. Use a tool from the toolbar as explained in the following procedures.
    5. PressYou can add decorations even while recording a scene.
    6. Touch [ 
     ] to exit the decoration screen.
    NOTE
    For AVCHD movies, decorations will appear in the thumbnails of scenes in the [ AVCHD Movies] index screen and gallery. For MP4 movies, decorations will not appear in thumbnails.
    To use [Pens and Stamps]
    1. Touch [ 
    The [Pens and Stamps] screen will appear.
    2. Select the desired pen or stamp from [Tools].
    Select Colors.
    Touch [ 
    Select white or black from [Colors].
    Alternatively, you can touch [ 
     ] and select a color from the displayed colors.
    3. Draw freely on the canvas.
    Touch [ 
     ] > [Clear] > [Yes] to clear the canvas and start again.
    NOTE
    The canvas with decorations can be deleted, saved, and loaded.
    You can save the decorated canvas right after a decorating action.
    If the memory that contains the canvas is initialized, the canvas will be deleted.
    To use [Animated Stamps]
    1. Touch [ 
    2. Touch one of the control buttons.
    3. Touch anywhere on the canvas to place the selected animated stamp. You can also drag some animated stamps to a different location.
    NOTE
    When the [Animated Stamps] tool is used, the date/time will not be displayed or recorded.
    To use [Captions]
    1. Touch [ 
    2. Touch [Date] or [Time].
    When recording a scene using Story Creator, you can also select [Title]
    (the story&&&&&&&&&s title) or [Story Scene] (the story scene category).
    3. Select the desired text settings and touch [ 
    Touch [ 
     ] (white text on dark background), [ 
     ] (white text) or [ 
     ] (black text).
    Touch the caption and drag it to the desired location.
    To use image mix
    1. Touch [ 
     ] to open the [Select Image] screen.
    2. Touch [ON].
    3. Touch [+] or [-] to select a different image mix frame.
    You can touch one of the memory icons at the bottom of the screen to read image mix frames saved on a different memory (When recording on or playing back scenes from a memory card).
    Touch [ 
     ] to mix the selected frame with the live video.
    NOTE
    When [Rec Media for Movies] is set to [ 
     ] (the built-in memory), you will not be able to select image mix frames saved on a memory card (For camcorders that have internal memory only).
    For AVCHD movies, image mix cannot be selected during playback or while converting a scene to standard definition (For camcorders that have internal memory only). Select the image mix during playback pause or before starting the conversion.
    To use freeze screen
    1. Touch [ 
    The control button will change to [ 
     ] and the picture will be frozen.
    Decorate the screen using the other tools in the palette.
    2. Press the
    The decorations created will be recorded with recording scenes that are on pause.
    Press the
    Touch [ 
     ]. The screen will return to normal.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for

  • How to calculate the number of records in Multiprovider

    Hi Experts I have created a report based on the multiprovider (Consist of Cube and ODS) I need count the number of records inside the multiprovider, how can i do it in the reporting level Regards Santosh

  • Largedataset in spry causes IE to throw alert

    HI,      I am using spry to load a large datset which consists around 1000 records. I am using the code snippet mentioned below to load the records from xmlstring which i get from server side. var  xmlDOMDocument = ""; var  agencyAccounts = new Spry.

  • Sorting within iPhoto albums:  eliminate carryover from prior manual sorts?

    I am working with a large series of photos from a recent vacation, arranging the images for captioning and sharing as slideshows.  I've pulled the images over to new albums, one per day, and would ideally sort them once by date, then change to manual

  • Thai PDF conversion (RSTXPDF2)

    Dear experts Thai words was included in our SAPscript/Smartforms, and we must convert them into PDF. we found an OSS note 339832, it told us that we must upload Thai TTF font(Angsana New)to sap system via program RSTXPDF2, and use font THANGSAN for T

  • Why are my images positioned further down the page as size increases?

    Hello, I'm experiencing a problem with images that I'm a little baffled about. My image tag is listed as below and comes below text in other plain paragraph tags. <p><img id="p_image" height="411 width=312 source={src} styleName="image"/></p> The ima