Freezing a JFrame and hiding teh command prompt

Hay all,
I have 2 simple questions!
1- Is there a method to prevent a jframe from being moved (dragged) by the user around the screen and thus stay in the place set by its setBounds (..) method?
2- Is there a way to prevent the command prompt screen from showing while an application is being run????
Thanks alot ,

1- Is there a method to prevent a jframe from being
moved (dragged) by the user around the screen and
thus stay in the place set by its setBounds (..)
method?componentMoved event on the ComponentListener. Listen for it, and when the component is moved, put it back to where you want it. I'm not sure that there is a way to make a JFrame immovable.
2- Is there a way to prevent the command prompt
screen from showing while an application is being
run????javaw.exe
-Dave

Similar Messages

  • Hiding the command prompt when executing bat file

    Hi,
    I hava a bat file which contains following
    java -jar MyJar.jar
    When I execute the bat file, the jar file is executed. But a command prompt also opens along with it. I dont want to display the command prompt to the user. Is there any way to hide that command prompt ?
    regards,
    Jatin.

    Is your problem solved?
    If not then
    insted of creating a batch file create a form file in visual basic and write following code in it
    shell "java -jar MyJar.jar"
    Endand then create its exe file.
    It will just launch your jar file and then exit.

  • IMac G3 CRTwill not  boot up and is in command prompt gray screen.

    Need help, please.
    Am helping a retired teacher neighbor with her iMac G3 CRT 1998 Tray CD-ROM model.
    Sometime the last 3 weeks she unknowingly upgraded the iMac OS. It would not restart after the upgrade. She left it off since. I rebooted it two hours ago and it went through and started up. Surprisingly. Then I downloaded security patches and rebooted the iMac. Now it won't start up, again.
    We have a gray screen with middle folder icon that flashes ? and mac icon.
    This is on top of Unix command prompt screen with this message.
    Apple iMac Open Firmware 3.0.f2 built on 04/23/99 at 14:31:03
    Copyright 1994-1999 Apple Computer, Inc.
    All Rights Reserved.
    0 >_
    She does not have any CDs...we've looked, even though she bought this new.
    Have a Tiger DVD and it would not read in the CD-ROM.
    Have downloaded the Apple Emergency Handbook and gone through some of the suggestions without success:
    1. There are no error messages.
    2. Have tried to reboot with pressing down 'Command", "Control" and Power Button. No success.
    3. Unplugged the iMac for 10 minutes, pressed the Power Button on the CRT a seconds, (wait the 10 plus minutes) and reboot. No success.
    4. Reset the PRAM with "Command", "Option" "P" and "R" buttons immediately after reboot. No success.
    5. Cannot bless the Systems folder since cannot get to the desktop.
    It would be awesome to get this fixed so she would not have to pay.
    Thanks, in advance, for any suggestions!
    Eric

    I remember upgrading the iMac about 2 or 3 years ago to 10.2 or 10.3 by installing a larger drive
    If you installed a drive larger than 8GB with the OS already installed on the drive, that is probably your problem. Tray-loader iMacs have a limitation in the IDE interface that only allows the first 8GB of the drive's space to be accessible during the startup sequence. This problem is documented in this Apple article
    http://support.apple.com/kb/TA22193
    If you used the standard installation process, Installer will not allow you to install Mac OS X on a volume that exposes this limitation. But if you bypassed Installer by installing a drive that already had Mac OS X on it, it will work for a fine as long as all the system components needed during the startup sequence remain under the 8GB limit. But if something gets moved or installed above the 8GB limit (and that something is needed during startup), you will see this problem. Note: Once the startup sequence is completed and the full OS takes over control, the rest of the drive (up to 128GB max size) becomes accessible.
    If this is the problem, what you need to do is take that drive out of the tray-loader iMac, put it into an external drive enclosure, connect it to another Mac, and back up the data. Repartition the iMac's drive so that the first partition is fits entirely into the first 8GB of disk space (7.5GB is a good number to use). The second partition can be the rest of the space, up to 128GB total for both partitions. (If the drive is actually larger than 128GB, please post back.) Then, restore the data from the backup.

  • Windows 8 System Recovery freezing at command prompt

    Hello and thanks for any replies in advance!
    My hard drive on my HP Envy model dv6t-7200 recently failed. My computer wouldn't start and the hard drive failed the long DST test in the f2 menu. I got a new hard drive from Amazon and physical instalation was simple. It booted from the hp recovery disks just fine. It then copied the data from the disks and prepared for installation. It then restarted and switched applications to the installation. After only a few minutes, the application closes and only a command prompt in the system 32 directory is open. It stops there and doesn't finish the installation.
    I tried typing in "shutdown /r", the normal command for restart, but it didn't work. I also tried a hard restart, but upon turning back on a BSOD says that the boot directory is corrupted.
    Anyone have any ideas for getting installation to finish?
    Thanks so much!

    Hi Jhkast,
    Thank you for visiting the HP Support Forums and Welcome. I would be happy to assist you. I have read your thread on your HP ENVY dv6t-7200 Notebook and needing to resolve the BSOD after new HDD installed. Here is a link to restore the BIOS. Please note remove any and all USB devices, and remove memory cards from the card reader slot. Disconnect all non-essential devices. The BIOS restort will help correct the issue with the new HDD.  You also might want to look at this document on Secure boot.
    Hope this helps you.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Error 5: Access is Denied While using OSCDIMG to create Winpe x86 ISO with Deployment Tools Command Prompt

    Technician computer is Windows 7 HP x64.
    Running latest version of WAIK.
    Goal: To make a Winpe disc for each processor architecture (AMD64, x86, IA64) with an included Gimage.exe using this code for the default startnet.cmd file found in system32 directory of winpe boot.wim
    wpeinit
    if /i %PROCESSOR_ARCHITECTURE%==amd64 (
    cd x64
    start gimagex.exe
    if /i %PROCESSOR_ARCHITECTURE%==ia64 (
    cd x64
    start gimagex.exe
    if /i %PROCESSOR_ARCHITECTURE%==x86 (
    cd x86
    start gimagex.exe
    These are the commands I have processed for the x86 variant:
    copype x86 c:\pe\x86\
    Dism /mount-wim /wimfile:C:\pe\x86\winpe.wim /index:1 /mountdir:C:\mount
    **It is at this point I copy over my x86 folder, x64 folder, and overwrite the startnet.cmd file.
    dism /unmount-wim /mountdir:C:\mount /commit
    oscdimg -n bc:\pe\x86\etfsboot.com c:\pe\x86\iso c:\pe\x86.iso
    ^^It is at this command I receive this error:
    ERROR: Could not delete existing file "c:\pe\x86\iso"
    Error 5: Access is denied.
    Please note that all commands before were hand-typed, no copy or pasting from any directory or .chm
    One thread referred to some Application Management service, but I can report that there is no such service installed in my machine.
    Thank You!
    UPDATE:
    I copied the winpe.wim file from the x86 root directory into the iso directory and renamed it to boot.wim Now, if I copy the contents to a flash drive and put it into a client
    computer, it boots to the PE perfectly, script and all.
    However, when trying to use the oscdimg command, I do get an .iso successfully, but when I burn it, I don't know what to do in the way of boot options, and if I keep defaults (imgburn)
    it results in an un-bootable dvd. 
    Suggestions are greatly appreciated.

    Don't copy and paste instead type manually it will work.
    [email protected]
    OMG! Yes, you are correct ... but I have no idea why! I retyped the command line:
    oscdimg -n -be:\winpe_amd64\etfsboot.com e:\winpe_amd64\ISO e:\winpe_amd64\winpe_amd64.iso
    into Notepad, and then pasted it into the Command Prompt, and it worked!
    Perhaps there must be some hidden characters included when pasting directly, even though I first pasted the command line into Notepad, and then into Command Prompt
    (C:\Program Files\Windows AIK\Tools\PETools>).
    I had to retype the command line in Notepad before copying and pasting, before it would work.
    Wow, thanks!
    Cheers, Navy Flyer

  • Running a GUI application without holding command prompt

    Hi there ,
    I have developed a GUI application using Swing. After compiling the same successfully , when I run the same , presently , I am running it like ,
    c:\> java xxx
    where c:\ is the general command prompt on a Windows machine where I can type in my commands like javac or java and xxx is the class file name . Now till I complete using my GUI application and exit from the same , the command prompt will also be there ( and probably displaying the output of my System.out.println ) . So , two sessions are running , one is just the command prompt and another is the actual GUI application.
    How can I avoide this ? e.g. when I type command "notepad" and press enter , notepad is started and the command prompt returns after starting notepad i.e. the notepad and the command prompt are not related now , I can close the command intrepreter and still notepad is running . What should I do to create such a Java GUI application ? Please advice .

    If I understand you correctly this is something that happens in linux also. And I believe that you can solve this by creating to shortcut to this program.
    And the shortcut or link to application will be the command line that you use to run the Java Application.
    i.e.
    java c:\javadir\subjavadir\application.class
    And I believe that this will allow it to run without the command prompt. Just showing the GUI and no additional command prompt window. Freeing the command prompt is something that I don't know how to do in either OS.
    I use the Link To Application method because I ultimately don't need to have multiple windows for one application. Even though it is nice to be able to kill the Application by destroying the command-prompt session (in case your app causes lock-ups during testing).
    Post your results . . . I'm not even sure that I'm being clear at all with my explanation to your question.

  • Webutil_host closing command prompt

    I am using this command in my form:
    webutil_host.nonblocking('cmd /c "' || v_file_name || '" && exit');
    I want to be able to open the WORD/PDF/EXCEL, etc.
    file and close the Command Prompt as well.
    Currently, the document will display properly but the
    command prompt window will stay there until the user
    exits the document. I want the command prompt window
    to disappear (or hide) as soon as the document opens.
    Is this possible?

    You could try
    webutil_host.nonblocking('cmd /c start "' || v_file_name || '" "' || v_file_name || '"' );
    It will not work if client uses Windows 95/98/ME.

  • Command prompt appearing on several machine after install ?

    I have several machines running intune now, some previously GFI and before that eset, but this is also occurring on new clients, every now and then a command prompt window is opening up and closing very quickly the only thing I can pinpoint is intune as
    this happens moments after every install and happens daily at different times I have noticed it myself but it occurs far less for me compared to other machines (seeing this first hand) and we just use the 1 policy  ?

    I know this is very old but I’m trying to clean up old posts. Did you ever solve this? If so it would be good if you could post the solution to assist others. If not, at this
    stage, as nobody has answered, I would recommend that you call Intune support if the issue still exists.
    You will find your local Intune support number here
    http://technet.microsoft.com/en-US/jj839713.aspx
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • I Need Help Adjusting Command Prompt Directories

    I have the satellite L505D---S5983 and I need to change my prompt from C:\Users\Brandon>. I have tried every search I can think of but nothing is working for me. Please help. I need this to be fixed ASAP, I am a app developer for android and I need to get back up and running.

    Satellite L505D-S5983  
    I need to change my prompt from C:\Users\Brandon>.
    Brandon, make a shortcut to cmd (%systemroot%\system32\cmd.exe) and name it Command Prompt.
    Right-click the shortcut, click Properties, and put the folder you want (c:\, for instance) in the Start in: field on the Shortcut tab.
    I find it's a good idea to open command prompts in elevated mode. To do that, click the Advanced button on the same tab and set Run as administrator.
    -Jerry

  • Ipad stuck on logo and a command prompt shows up and then freeze.

    my Ipad suddenly blackout, the screen is totally black but the backlight is still on, i can't seem to shut it down even I press the power buttons in a long period of time, then I waited more than a day until it runs out of battery to shut down itself. when I turn it on the apple logo show up the the backlight becomes dim and a command prompt shows up on the screen at left corner, then it restart and keep doing on and on until the apple logo only pops out the freeze and a couple of minutes later it backs-out and have to wait for it to runs out battery again. pls. help.

    Your iPad probably might to be serviced or replaced. I don't think that there is much in the way of troubleshooting that you can do other than to restore to factory settings. You will end a computer running iTunes in order to restore to factory settings. If you can't attempt this for whatever reason, make an appointment at an Apple Store and ask for their help.
    Use iTunes to restore your iOS device to factory settings

  • Computer Freezes and mouse pad commands freeze

    Within minutes after bootup, my computer freezes. When I click with mouse on item, it will drag it across screen without that being a command. When clicking to request process, it stalls. I can use esc to get out of request with some success and have to keep trying again.  Basically...it freezes up and won't move forward or backward and the only way nor follow command prompts. I have used ESC upon bootup and followed promps for bios and tune-up. Errors generated are: Memory Test: Failed Failure ID: 9GBW1L-5RL7N7-QFPH4K-406603; with Tune-Up: 9GBQ1L-5RL7N8-QFRH4K-401N03 I'm used the f10 function to rerun Bios...it said successful. Bios DAte 1/25/2013  Thank you in advance for your help!  

    You said that Apple ran all updates? Your profile show 10.5.4 I assume you just have not updated this or are you still running 10.5.4?
    What exactly are you doing when the Macbook freezes?
    Are you on any particular application?
    Does it matter what applications you are using?
    Do you get the spinning beach ball first before the Macbook freezes?
    Have you upgraded the memory since purchasing the Macbook from Apple?
    Did this problem start before or after the updates that the Apple techs performed?
    Lots of questions but each one can help us help you...

  • I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?

    I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?
    i tryed with download mavericks but finally its saying a error message like cant conect to istore like that its saying and every thing is clear like internet and other stuf i tryed with 3times no progress same error pls help.. i bought this lap for my bro with his apple id only we use it now he got a new mac book pro so he gave to me so i formated and use it i use my apple id is that problem come because of changing apple id ? pls eplain

    Firstly, what is the source of the 10.6.4 disc? Is it the original installation disc for your MacBook, or one 'borrowed' from another computer?
    It isn't the retail version, because that's 10.6.3.
    Assuming it's the correct disc (i.e. the one that shipped with your Mac), you need to boot from it again.
    OK the language page.
    From the installer screen, ignore the continue button, go to the menu bar and choose Disk Utility from the Utilities menu.
    In DU, select your internal drive in the sidebar (the top item with the makers name and serial no.).
    Run Repair Disk. If that comes up as disk OK, click the partition tab. Select the partiton from the drop-down above the graphic; 1 partiton is all you need.
    Go to the options button and ensure that the partition scheme is GUID and the file system to Mac OS Extended (Journalled). Name the partiton (usually Macintosh HD), click Apply.
    When the Macintosh HD volume appears below the drive name, quit DU and see if you can then install.
    If the screen after the language screen doesn't show the menu bar, it may be necessary to use another Mac to do the job with the MB in Firewire Target Disc Mode. If it won't boot in TDM, or the MB doesn't have FireWire then it's getting very difficult.

  • Copy and Paste from PDF to Command Prompt

    Hi,
    When I convert a Word doc to PDF, that includes instructions to the user to cut and paste commands from the doc into the command prompt window, the pasted text is rejected by the command prompt window.
    I recently upgraded to the Adobe Technical Communication suite. Prior to this I was using Word's native convert to PDF plugin. None of the text in PDFs generated by this method causes any issue. I remade the PDF using this method after the previous one made with Acrobat caused issues and it worked fine.
    I would like to continue using Acrobat because the auto-generated bookmarks are a nice feature for the end-user.
    Any suggestions?
    Thanks,
    Donal

    Hi Donal,
    This forum is 3D issue specific. Your quesrtion would be better handled on the Acrobat User-toUser forum. There are many brilliant folks there who might be able to answer your very quickly.

  • When I open firefox (note: I got firefox version 28.0 and Karspersky security 2014) I get a black screen, looking like a command prompt window, in firefox.

    Hi,
    When I open firefox (note: I got firefox version 28.0 and Karspersky security 2014) I get a black screen covering the whole firefox window and it looks more lika a big command prompt window, in firefox. What is it?
    Regards
    Jean

    Huh, that's a new one...
    Can you try Firefox in [[Safe Mode | Safe Mode]] to see if the problem goes away. I'm thinking it's an extension.
    *Run ''firefox.exe -safe-mode'' in the search bar on the Start Menu. (Make sure Firefox is closed)
    Have you added any new extensions recently around the time this started happening? Your system details shows the following:
    *Adobe Acrobat - Create PDF 1.2 ([email protected])
    *Anti-Banner 14.0.0.4917 ([email protected])
    *Dangerous Websites Blocker 14.0.0.4917 ([email protected])
    *Kaspersky URL Advisor 14.0.0.4917 ([email protected])
    *Troubleshooter 1.1a ([email protected]) '''This is default so this isn't the problem.'''
    * Virtual Keyboard 14.0.0.4917 ([email protected])

  • Java and command prompt

    easy and quick question, when running a java program in command prompt and you want to stop it early or want to stop it if in an infinite loop without closing command prompt whats the command to do that? For the life of me i cant remember.

    In Windows, press Control-C.
    This is not a Java related question though.
    Vincent

Maybe you are looking for

  • Transferring music from iPhone back to hard drive

    The external hard drive with all my music on it malfunctioned, so I had to delete everything. All the albums are still on my iPhone. I'm trying to work out how to transfer all the albums back from the iPhone to the hard drive. Does anyone know how to

  • Flash Apprentice Available!

    Hi, i'm trying to up my skill level and build a portfolio. I'm looking for Flash Designers and Developers that have a steady stream of projects and could use someone to do grunt work and other design tasks for FREE. My ability as a Flash Designer on

  • No countries names appear in the countries drop down list

    I bought a new playbook 32 GB During installation, and at the ID Legal Agreement Screen it is requested to select my country, but the drop down list of the countries does not have any countries names. It appears only white. I am unable to continue th

  • Character Field as Number, Need commas?

    I move a quantity to a character field for a form display output. I left justify the character by shift character field left deleting leading spaces. This way it formats perfectly in the column on my report/form. Is there any easy syntaxfunction modu

  • Balance Carryforwards

    Hi Dear Experts ; I would like to have the Tcode for Carry forward Balances in FI and in CO( IO and WBS) to the next FY . is there any limitation or points exists in this regards besides completeing business processes ? Thanks :VYN