Maximize frame on startup and disable all windows button

Hi every body:
I new in java field, but I'm already working with oracle Developer form for three years.In developer form I used to maximize the window at startup and disable all the windows buttons (minimize,maximize, restore and close) but unfortunatly I tried to do it with Java I couldn't .
For close I used : setDefaulCloseOperation(DO_NOTHING_ON_CLOSE )
I also tried frame.setResizable(false) it only disable the resizing but what about minimizing and restore
and how to maximize it automaticly at startup.
Thanx in advance

Try to use JWindow instead of JFrame. You can get
screen size using:
Dimension
d=Toolkit.getDefaultToolkit().getScreenSize()
and then
jWindow.setSize(d);
regards,
StasFor most systems you should leave 20 pixels for the OS status bar, eg;-
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
setSize(dim.width, dim.height-20);
"and disable all the windows buttons (minimize,maximize, restore and close) but unfortunatly I tried to do it with Java I couldn't . For close I used : setDefaulCloseOperation(DO_NOTHING_ON_CLOSE )"
Put the buttons on a Panel, then use this to restore it;-
getContentPane(),add(ButtonPanel); // or remove(---)
validate();
For closing add a custom event class (or an anonymous class), eg;-
inyour constructor;
addWindowListener(new WindowController() ) ;
class WindowController extends WindowAdapter{
public void windowClosing(WindowEvent e){
// Conditions: eg typically -ask if the user wants to save befor closing?
if(yes) System.exit(0);
Hope that's of some use (:D)

Similar Messages

  • Cannot get "Quit and Close All Windows" to work

    Each time I open any application on my Mac, it automatically opens any other windows for that app that I had previously left open and unsaved (including ones I had temporarily opened to view a file, which remain titled "Untitled", etc.)....I've tried UN-checking in the General area of System Preferences "Restore windows when quitting and re-opening apps", but this does ABSOLUTELY NOTHING. I've ALSO tried holding the Option key down while choosing Quit in a given application such that the "Quit" command changes temporarily to "Quite and Close All Windows", but, again, when I re-open the application, it re-opens all the previously left open windows as well...
    I've found this behavior in programs such as Preview, Mail, Safari - the list goes on. What gives :-)? Thanks for any help!
    Sincerely.
    D.D. J.
    Mac Pro (early 2009), 32 gigs RAM running Lion 10.7.4

    Thansk for the quit reply! However, I'm afraid there are still problems:
    It the Resume feature.
    When choosing Restart, Sleep or Shutdown there is a checkbox you can uncheck to prevent the apps from launching.
    This is actually the only time my windows DO fully close, when I uncheck the re-open previous apps after doing a cold-restart of my entire Mac (not exactly practical when all I want to do is not have to manually close a zillion windows that have inexplicably re-opened upon re-opening a given application like Mail...
    Also in System Preferences > General there is a hard-to-find checkbox under "Number of recent items" you can turn off.
    Also, you can hold the shift key to disable resume on a one time basis.
    I've tried setting the "no. of recent items" all to 0, and this has no effect. I've also (as I mentioned before) DE-selecting "Restore windows when quitting and re-opening apps", which also has no effect (this is particularly perplexing, since this seems like the most logical way to enable what I'm seeking). I've similarly also tried option-Quitting from within the app to no avail...
    Again, you can accomplish this through Finder by going to ~/Library/Saved Application State and deleting the folder.
    I thought this would be the ultimate solution - just delete the entire "Saved Application State" folder, as you suggest. However, I tried this (temporarily changing it's name to "Saved Application StateOLD"), but when I closed Mail (with opened windows) and then re-opened it, not only did the windows still re-appear, but a NEW "Saved Application State" folder was created, saving presumably the new Resume data for seemingly this and any other apps that I still had open on my computer.
    If you want to turn it off on a per app basis, (TextEdit is by example, replace TextEdit with the name of the app)
    Launch Terminal and copy/paste this at the prompt...
    defaults write com.apple.TextEdit NSQuitAlwaysKeepsWindows -bool false
    Press return.
    To turn off Resume globally...
    chflags uchg ~/Library/"Saved Application State"
    Press return
    If you're CERTAIN the above won't mess up my computer :-) I guess I'll try this next, either App by App, or Globally. However, please confirm that you're saying that to delete Resume globally, I need to enter the chflags info (above), word-for-word, into Terminal?
    Thanks again -
    DDJ

  • GPO setting "Hide and disable all items on the desktop" stop applying at policy refresh

    In our organization we have the Hide and disable all items on the desktop setting enabled on our Windows 7 computers. As we are testing Windows 8.1 we have come across an odd behaviour with this setting: At log on the desktop is configured as expected: No
    Icons. But after 90 minutes, or when running gpupdate /target:user manually, the Icons appear.
    How can I make the setting stay?
    Regards/
    Johan

    Hi Johan,
    After the icons appear ,I suggest you use gpresult command to check the result.
    It seems that some setting  overrided ""Hide and disable all items on the desktop".
    Regards,
    Kelvin hsu
    TechNet Community Support

  • How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop the fil

    How can I quit (close) Photoshop and keep all windows so that the next time I open Photoshop all the files that I had open are there already in the same position as when I closed Photoshop?
    I've been a Fireworks user for over 10 years and just switched to Photoshop. I cannot find a setting that will enable all my file windows to reopen when I quit Photoshop. This is really a problem since I often work on several files at the same time.
    Please let me know if the feature exists or point me to where I can post a message for a new feature to be implemented. The feature is a must for any designer working on large projects.
    Thanks!

    There is no such functionality. You could perhaps create a script that stores that info in a custom text file and arranges them accordingly in the workspace, but that's as good as it gets...
    Mylenium

  • Since installing Lion, no Finder window will open on the desktop.  I can see them through "Quick Look" and "View all Windows" in the contextual menu for Finder in the

    Since installing Lion, no Finder window will open on the desktop.  I can see them through "Quick Look" and "View all Windows" in the contextual menu for Finder in the dock.

    Help please!

  • Grey out and disable all controls at once

    Is there a simple way to grey out and disable all of the controls on a FP at once?
    Thanks,
    Paul

    Apok, Bill
    Its merely a style issue.  No specific benefit.  Bill is absolutly right that these refs will be cleaned up without the close ref.  In fact, In theory if the Panes[] PN returns an error the loop will not iterate and all of the lower three errors are identical.  So WHY? because, the guy in the next cube may be working with property nodes of some other class. Almost garunteed to be interfacing to some .NET assembly written by the maestro of poor programming practice, known affectionatly to us as "The manager".  Now I have to explain to him/her why your adaptation blows up but my code is safe and maybe, even point out that the richly obfuscated assembly from the manager was concieved with all the talent our worst intern could have outcoded in diapers.   Now they are confussed and remember that my code doen't follow the standard I enforce on them "Just because I think I'm Mr. LabVIEW Trivia buff."  So, the coworkers begin to hate me just a little and, the manager thinks I hate them (I might but, I woudn't want them to think so.)
    I guess that actually is a specific benefit
    Jeff

  • IOP startup and shutdown as windows services

    Hi,
    Is there a way can we have IOP startup and shutdown as windows services instead of running the bat files?
    Thanks,
    Hari Devarapalli

    Yes. You can install IOP as NT service and start/stop it.
    Please refer to "Installing Integrated Operational Planning as an NT Service" in the IOP install guide.

  • Custom button in alv and disabling all buttons in application tool bar

    Experts,
    Could you please  help me for the below requirements.
    1). How to disable all the buttons (like sorting, print, find, set filter...etc.) in tool bar using oops?
    2). Where can I add my custom download button in alv report using oops?
    Thanks in advance...
    Sridhar..

    Step1:
    Create on local class
    Class <LCL_EVENT_RECEIVER> Definition
    Define the below public methods.
    Method Name     HANDLE_TOOLBAR
    Event Name     TOOLBAR
    Event Class     CL_GUI_ALV_GRID
    Importing     E_OBJECT, E_INTERACTIVE
    Method Name     HANDLE_USER_COMMAND
    Event Name     USER_COMMAND
    Event Class     CL_GUI_ALV_GRID
    Importing     E_UCOMM
    Class <LCL_EVENT_RECEIVER> Implementation 
    .     Method HANDLE_TOOLBAR
         Declare the structure <LS_TOOLBAR> of structure type STB_BUTTON
         Append the button information as given below into table E_OBJECT->MT_TOOLBAR to         display the custom button on ALV grid.
                               LS_TOOLBAR-FUNCTION = u2018DOWNu2019
                         LS_TOOLBAR-QUICKINFO = u2018downloadu2019
                         LS_TOOLBAR-TEXT = u2018downloadu2019
         Method HANDLE_USER_COMMAND
    In this method if E_UCOMM = u2018DOWNu2019 write your logic.
    Step2:
    1.     To excluding the ALV grid buttons, fill the <LT_EXC> with function code CL_GUI_ALV_GRID=>MC_FC_EXCL_ALL
    2.     To generate the ALV Grid, call the method SET_TABLE_FOR_FIRST_DISPLAY
    Class     CL_GUI_ALV_GRID
    Method Name     SET_TABLE_FOR_FIRST_DISPLAY
    Exporting     
    I_STRUCTURE_NAME      ZDS_CM_EXT_SEL
    LS_LAYOUT                    <LS_LAYOUT>
    IT_TOOLBAR_EXCLUDING     <LT_EXC>
    Changing     
    IT_OUTTAB                    <GT_EXT_SEL>
    Create the Instance for class <LCL_EVENT_RECEIVER>
    Class     <LCL_EVENT_RECEIVER>
    Instance Name     <LO_EVENT_FNAME>
    Now set handler  <HANDLE_USER_COMMAND> and <HANDLE_TOOLBAR_FNAME> events using instance <LO_EVENT_FNAME>
    Call method 'SET_TOOLBAR_INTERACTIVE' to raise event TOOLBAR
    Class     CL_GUI_ALV_GRID
    Instance Name     <GO_GRID>
    Method Name     SET_TOOLBAR_INTERACTIVE

  • Is it possible to disable All Pages button in Results

    Hellow Gurus,
    I am displaying only 10 rows per page in Table result. My user should able to go next page click on “Next Page” button. But we want to delete / disable “All Pages” button only . Is it possible in OBIEE? If yes how can we do this one.
    I really appreciated for your help.

    You can do this by following way
    Modify javascript method 'RTScroll' in C:\OracleBI\web\app\res\b_mozilla\tableview.js
    function RTScroll(sViewID, tbl, sStart)
    if(sStart == -1)
    sStart=0;
    if (WBCheckChanges(tbl))
    return;
    var sViewIdToRefresh = saw.view.getRefreshStatePath(sViewID,"tableView");
         var tForm = GetViewForm(sViewID,sViewIdToRefresh);
         tForm.Action.value = "Scroll";
         tForm.StateAction.value = "samePageState";
         tForm.P5.value = sStart;
         submitViewForm(tForm,null);
    Hope it helped you
    -- Srinivas Malyala
    http://tipsonobiee.blogspot.com/

  • Set iPad to only scroll through a limit amount of pictures and disable all other apps

    Hi there, is it possible to setup an iPad to only allow users to scroll through 3 or 4 pages, and have all other features disabled?  This will be for a customer display so that people can only view these 3 or 4 pictures and not to be able to use the iPad for any other purpose, i.e access the internet, to tie down the iPad, so to speak.  Many thanks  in advance.

    You can currently have the 'picture frame' icon on the slide to unlock screen via Settings > General > Passcode Lock > Picture Frame 'on', and you can limit which of your photo albums show in that via Settings > Picture Frame. Though you can't stop people trying to exit the picture frame and trying to enter the passcode.
    With iOS 6 later today there will be new accessibility functions which might help (from here) :
    It allows a parent, teacher, or administrator to limit an iOS device to one app by disabling the Home button, as well as restrict touch input on certain areas of the screen.

  • Disable all power button functions in Windows 7

    I'm configuring some Windows 7 clients to be very locked down and only run a specific application.
    They auto logon correctly and start the application, but I have been unable to completely disable the power button in the start menu so that the users cannot turn the machines off in any way. I have set disable logoff and removed access to shutdown, restart,
    sleep and hibernate through group policy, but the button still defaults to logoff, with all the additional options in the arrow menu unavailable.
    My only other thought was to try a custom GUI instead of explorer.exe, but would much rather do it through group policy or registry if possible.

    I ran into this problem with Windows 7 at a radio station.  We needed to prevent our on air talent from performing any of the start menu power actions at all.  We have a Reboot Script should it need to be rebooted, and we can access the system
    as administrator by holding SHift key during boot up. 
    We basically needed windows to be set up like a KIOSK, stripping and disabling - Shutdown, Switch user,  Sleep, Restart, Logoff and Lock.  here is what I have found to work.  I found this blog....
    http://blogs.technet.com/b/keithmayer/archive/2012/08/03/building-public-kiosk-stations-with-windows-7-and-windows8-itpro.aspx#.UugnG53n_PT
    Hope that helps the next Tech that needs this info.
    EricCinIT

  • How can I close 'current' window and not all windows?

    How can I close the current window (only) and not all or none?
    This function works well with MS Explorer.
    Not a problem, just a desired function.

    Hi JLCluster,
    If you just click the small x in the tab you are currently viewing, it will close only that tab. I think you are clicking the x in upper right hand corner of the screen which closes all open tabs as you described.
    Hopefully this helps!

  • HT1349 I have just moved from one pc to another.  I had used 5 computers to attach to itunes.  I went in and disabled all 5 of my accounts but cant get the new computer to give me a prompt to authorize this computer.  Any ideas?

    Hellow everyone,
    I have just moved from one PC to another.  They are windows pc's not macintosh.  When i installed itunes on the new computer it stated that I already had 5 devices authrorized for this account.  I did a little reading and went in and deathorized all 5 PC from the account as I am sure it was a couple pcs ago and a few iphones.   When I try and go in and authorize an account I cant see anywhere where there is a prompt to authorize the new PC.  I go into store and all it says is that there are no devices associated to this account.  What I would like to do is associate my new PC and my iphone to this account and hopefully restore from the cloud all of my music and programs. 
    Any idea what I am doing wrong here or how I can resolve this. Thanks in advance.
    Respectully.
    CK

    if it's music then drm is not used there any more and drm can be removed from previously bought drm material without cost

  • Firefox 27.0.1 keeps crashing after a complete uninstall and clean install and disabling all plug-in's .

    FF started hanging up recently so I did a complete clean uninstall including profile. then a complete clean install. I've disabled all plugins and extensions still to no avail. I just open FF and wait a few seconds with out even going to a page and I get the Beach Ball of Death, have to force quit every time. Disabled hardware accel also after reading through the forums. Nothing seems to help. Chrome and Safari work just fine.

    If you have submitted crash reports then please post the IDs of one or more recent crash reports that have a "bp-" prefix:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website, or open the crash reports page via "Help > Troubleshooting Information".
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter

  • Mozilla Firefox 7.0.1 is not loading web pages properly. It takes forever to load pages. Google Chrome and Internet Explorer load them rapidly. I have no spyware and disabled all addons. Nothing has worked. Any suggestions??

    Web pages are taking an extremely long time to load. Sometimes they don't load at all. This is especially true with video sites like YouTube. I scanned my entire computer with Ad-Aware, Malwarebytes, Iobit Malware Fighter, SuperAntiSpyware, Windows Defender, Malicious Software Remover Tool, and Emisoft Anti-Malware. I did an anti-virus scan with Avast. I also ran CCleaner and Advanced System Care to clean all junk. Nothing is working.

    --------------------------------------------------------------------------------
    Running about 7 tabs open at startup, this has always worked fine, here is the problem and the sequence of events leading up to hope. Any suggestions would be appreciated:
    Background:
    Mozilla updated me to 7.0 automatically a few days ago, no problems
    Yesterday they auto updated me to 7.0.1, now it won't connect
    Scaled back to 3 tabs at start now it connects but after a minute of so, the icon in the tabs just spinning and it isn't connected
    Scaled back to one tab the same thing
    Reinstalled Firefox, disabled the Norton firewall to test, same thing
    Checked the application setting on the firewall, it is set to allow or auto
    I downloaded Firefox 8 beta same issue
    Any suggestions would be appreciated, not sure it is foxfire or not but the upgrade to 7.0.1 started
    Anyway to go back to a pre 7 release?
    I disabled the add on and have the same problem.
    BTW IE 8 works fine.
    Thanks

Maybe you are looking for

  • Error on shutting down WLogicServer 6.1

    When I try to shut down the server according to the manual: java weblogic.Admin -url host:port SHUTDOWN -username adminname -password passwordI get the following error: Exception in tread "main" java.lang.NoClassDefFoundError: weblogic/AdminAny ideas

  • Why does Muse CC locks up at 60% while uploading?

    I updated to Muse CC last night. I then made an additional gallery on my site and saved changes then resaved the site. I then tried to publish to my ftp host and got to 60% of Optimizing Assets and locked up. The error said something about insufficie

  • Different currency at billing

    Dear friends, After I create an order in VA01 screen, the system calculates the amount in TL.For some foreign customers I need to create an order and get billing in USD. How can I accomplish this? Thanks in advance,

  • Using complex numbers/vectors

    I am trying to use the CNiMath::FFT(CNiComplexReal64 &x) function. I don't know how to set up the CNiComplexReal64 vector - I have no information on how to format the real and imaginary parts. Any easy example would be sufficient to get going on it.

  • Verizon to big?, customer service lacking

    Customer Service run around - Has Verizon gotten too big, to big to handle the customers.  I did a Verizon Edge contract on to lines that were eligible for upgrades.  I received the phones on December 27th and went to the store with the phones. The p