Aagh - Please help- Swing Window Size

Dear Guys,
Please help a newbie. I am totally at my wits end.
I have been looking unsuccessfully (maybe I'm using the wrong search terms) for a way to preset the size of a window before placing any components in the frame.
I am using a toolkit to get the dimensions of the current screen resolution and then I want to set the window to occupy the whole screen.
All I have been so far able to do is to set the size of the window after the pack() command. Unfortunately this makes all the buttons re-size in to what I believe are ugly square bulky buttons.
Is there a way to set window size before adding any components whatsoever?
Someone please reply soon!! Thanks

yo can also set the preferred size for the window - this.setPreferredSize(P);it takes a paramter P of type Dimesion.
This can later be returned through: this.getPreferredSize();which returns a type dimesion.
This can be used as a paramter:
ie this.setSize(this.getPreferredSize());hope this helps a little, if you want a really nice tool for finding out about possible methods, and also a really nice environment to code in; get Eclipse (http://www.eclipse.org/)
pete :D

Similar Messages

  • Please help! Windows 7 has downgraded it self?:(

    Hi, i could really do with some help! i have windows 7 and it had downgraded its self to what looks like Xp or windows 98:/
    Here is screenshot of what it looks like:
    http://gyazo.com/747ecd10f9083fde112c1d95d349c1fe
    I've tried to go to control panel and personalize but there is no option for that, if anyone could please help me i will be very grateful.
    Thanks.

    Hi,
    Please try my suggestions:
    Run menu > sysdm.cpl > Advanced Tab > performance > select adjust for best performance > make sure you do not allow Windows to choose for you because your computer does not know whats best --- Make sure Enable Aero Peek is checked
    ---- OR ---
    Right click my computer > properties > Advanced System settings > performance > select adjust for best performance > make sure you do not allow Windows to choose for you because your computer does not know whats best --- Make sure Enable Aero
    Peek is checked
    Kate Li
    TechNet Community Support

  • Please Help! Windows won't install IPod Driver!

    My brother got a 2GB IPod nano and itunes and everything installs but when i plug in the IPod i get the install driver window. I click to intsall driver but it keeps saying it couldnt find anything to install (even when i have the disc the ipod came with inside). Its a Toshiba labtop. If anyone knows why the driver won't install or had the same problem please help! Thanks

    Hi brunos mum, and a warm welcome to the forums!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then Safe Boot , (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it finishes.

  • Please Help!  Disc Size

    Could someone please help me out here. I have reset my Nano and have about 10 songs on my iTunes in my library. When I go to sync my device to my computer and update the songs, it says that "my iPod cannot be updated because there is not enough free space to hold all of the songs in the iTunes music library." So I made sure that I don't have any pictures or podcasts on their as well and I don't. How do I fix this problem and clear my Nano so I can start over?
      Windows XP  

    Hi webbcoug,
    Welcome to Apple Discussions
    If you only have 10 songs in your iTunes Library and they will not fit on our nano then it is probably due to the compression used.
    If you select Library in the Source pane you can see at the bottom of iTunes how many tracks there are, how long the tracks will play for, and how big the files are in total.
    Next, if you select one track and do a Get Info you will be able to find out how big that one is and what Kind it is.
    Please post back that information and we'll take it from there.
    Regards,
    Colin R.

  • Problem, please help - Update windows 8 to 8.1 via STORE

    Hi there,
    I am facing problem in updating my current windows 8 to 8.1 by using STORE
    It keeps on showing message: "Something happened and Windows 8.1 couldn't be installed. Please try again. Error code: 0x80070003"
    I have tried "Troubleshooting windows update" but still fail.
    The error log from "C:\$Windows.~BT\Sources\Panther\setuperr.log" as follows:
    2014-02-25 16:06:04, Error                 MOUPG  CSetupHost::DeleteReminderActions(439): Result = 0x80070003
    2014-02-25 16:06:04, Error                 MOUPG  CSetupHost::Execute(181): Result = 0x80070003
    Can people from microsoft help me on solving this issue.
    Thank you and regards.

    Hi
    It would be better to upload your setuperr.log file to OneDrive and share with us. Then we can help you analyize this log together.
    Roger Lu
    TechNet Community Support

  • Please help with Windows 7 x64 System error: Critical Kernel-power Event 41

    I'm recieving this error while moving my laptop or working with it? Can someone help me to read memory dumps and to understand what causes this error please?
    Where i can fount theese dump files? Can someone read them and is it possible to understand what is happening?
    I have made full check of my memory and there are No errors I've also checked HDD with regenerator there are no errors too. but this not means that they can not be the problem. There is doubt about one of my HDD because when laptop is blocking there is bad
    noise from HDD.
    PS: There is another issue which is strange two of times when this happens the whole MBR was destroyed and the system refuses to boot ... only reboots. And i made bootrec /fixboot /fixmbr and this solve the problem ... I don't know is this connected with
    system error, but i'm trying to give more details.
    Thanks a lot.
    Here are i'm posting my error details: 
    System
    Provider
    [ Name]
    Microsoft-Windows-Kernel-Power
    [ Guid]
    {331C3B3A-2005-44C2-AC5E-77220C37D6B4}
    EventID
    41
    Version
    2
    Level
    1
    Task
    63
    Opcode
    0
    Keywords
    0x8000000000000002
    TimeCreated
    [ SystemTime]
    2011-06-25T20:38:38.328017300Z
    EventRecordID
    7571
    Correlation
    Execution
    [ ProcessID]
    4
    [ ThreadID]
    8
    Channel
    System
    Computer
    Rumen-PC
    Security
    [ UserID]
    S-1-5-18
    EventData
    BugcheckCode
    0
    BugcheckParameter1
    0x0
    BugcheckParameter2
    0x0
    BugcheckParameter3
    0x0
    BugcheckParameter4
    0x0
    SleepInProgress
    true
    PowerButtonTimestamp
    129535076822776383

    Before every critical Errors in event log i found information about Kernel Power I'm pasting it here: 
    System
    Provider
    [ Name]
    Microsoft-Windows-Kernel-Power
    [ Guid]
    {331C3B3A-2005-44C2-AC5E-77220C37D6B4}
    EventID
    89
    Version
    0
    Level
    4
    Task
    86
    Opcode
    0
    Keywords
    0x8000000000000020
    TimeCreated
    [ SystemTime]
    2011-06-27T16:07:21.023625500Z
    EventRecordID
    9262
    Correlation
    Execution
    [ ProcessID]
    4
    [ ThreadID]
    44
    Channel
    System
    Computer
    Rumen-PC
    Security
    [ UserID]
    S-1-5-18
    EventData
    ThermalZoneDeviceInstanceLength
    21
    ThermalZoneDeviceInstance
    ACPI\ThermalZone\TZS1
    AffinityCount
    1
    _PSV
    0
    _TC1
    0
    _TC2
    0
    _TSP
    0
    _AC0
    0
    _AC1
    0
    _AC2
    0
    _AC3
    0
    _AC4
    0
    _AC5
    0
    _AC6
    0
    _AC7
    0
    _AC8
    0
    _AC9
    0
    _CRT
    361
    _HOT
    0
    _PSL
    0000000000000000
    System
    Provider
    [ Name]
    Microsoft-Windows-Kernel-Power
    [ Guid]
    {331C3B3A-2005-44C2-AC5E-77220C37D6B4}
    EventID
    89
    Version
    0
    Level
    4
    Task
    86
    Opcode
    0
    Keywords
    0x8000000000000020
    TimeCreated
    [ SystemTime]
    2011-06-27T16:07:21.039225600Z
    EventRecordID
    9263
    Correlation
    Execution
    [ ProcessID]
    4
    [ ThreadID]
    44
    Channel
    System
    Computer
    Rumen-PC
    Security
    [ UserID]
    S-1-5-18
    EventData
    ThermalZoneDeviceInstanceLength
    21
    ThermalZoneDeviceInstance
    ACPI\ThermalZone\TZS0
    AffinityCount
    1
    _PSV
    359
    _TC1
    0
    _TC2
    50
    _TSP
    0
    _AC0
    0
    _AC1
    0
    _AC2
    0
    _AC3
    0
    _AC4
    0
    _AC5
    0
    _AC6
    0
    _AC7
    0
    _AC8
    0
    _AC9
    0
    _CRT
    361
    _HOT
    0
    _PSL
    0000000000000000
    These two informations are before every critical error.

  • PLEASE HELP! WINDOWS INSTALLATION GONE HORRIBLY WRONG!

    Last night I decided to install Windows XP on my new Macbook, so that I could use some software that will only work with that operating system. I used Boot Camp to do everything (i.e. set partitions, etc.) and it prompted me to Restart and install Windows, which I did.
    Somewhere along the line, the installation process was messed up and I ended up with a computer that hadn't a trace of of Mac OS X present, (even though I had only set aside 32 GB of my 250 GB hard drive as a Windows partition), and a (Windows) set up screen telling me that there was no bootable disk in the optical drive. So, I gave up on the Windows installation, and put in the MAC OS X install disks that came with the laptop, hoping to salvage anything and everything that was left.
    I got to the set-up screen where it asked me to choose my language and agree to the user agreement, both of which I did, and everything was going smoothly until I had to "Select a Destination"...there was no such destination to be found. I then went into the "Disk Utility" application, to find that it would not let me repair the disk or even erase the entire thing and start from scratch.
    So now, basically I'm left with a bricked $1600 laptop with no operating system, as the Mac OS X installation will not allow for me to pass the set-up stage without choosing a non-existent destination. Can anybody with knowledge on the subject help me out please?!

    Sorry to hear about your trouble. I've been there and it was so distressing I can't remember exactly how I fixed it.
    STILL - there is nothing here that is terrible. If you really want to boot to disk and use disk utility to reformat or erase, you can. I see from your report that you have tried this already, but I'm guessing you didn't click on the exact right hard drive identifier. Try it again, but if you are sick of noodling around getting nowhere, take it in to a service agent. All your stuff is still there and someone can find it.
    EDIT
    In case this means something - in my own case I got frustrated, booted to disk and did a 7 pass erase of the entire hard drive (it took hours) So it was factory fresh and I did a new install all over again. A lot of work. Later I learned it would have been easier to just make a partition of the entire drive on disk utility, then remove it. You could do a three or four partition and switch back to one in less than a minute - this will wipe the drive of all references, and it would be clear to start a fresh install (if you don't mind losing everything and starting over.)
    Otherwise there is definitely software out there that rescues 'lost' data.
    Message was edited by: NA Smith

  • SOS.Please help ASAP . Size matters

    I have a mpeg 4 file. ( 22mb ). I need to add two effects on it, Warp Stabilizer and Snow. After I render it, The file size goes to 1.2GB when I export to quicktime and the audio is out of sink. How can I fix the file size to not go from 22MB to 1.2 GB. The file is 1920X1088. I don't care about audio much as I can overlap it but what can I do to take care of the size and not increase exponentially without losing quality. The file duration is about 50 seconds.

    Rick Gerard wrote:
    PLEASE study up on rendering. You can't be any good at all at producing video if you don't understand rendering things like delivery and production formats.
    Rick is right. This is vitally important, basic, knowledge.
    FAQ: Why is my output file huge, and why doesn't it playback smoothly?
    The under-the-hood reason for your large file size is that AE's output has absolutely nothing to do with the videos you place in your composition. AE works with completely uncompressed frames. Thus, your render is going to be based on that.

  • Please help : "Configuring Windows SSO for Sun portal server 7.1"

    Hello friends,
    I have a problem when create Single Sign On ( SSO ) on the portal server 7.0
    If you have configured successfully.Please give me the way you have used.
    Thank you very much.
    DungT
    Related document and information :
    http://docs.sun.com/app/docs/doc/819-4670/6n6qardtu?a=view#gbaqc
    http://forum.java.sun.com/thread.jspa?threadID=5140689&messageID=9519196
    Edited by: dungtran on Mar 13, 2008 4:35 AM

    There is a ZIP Install available for Windows that bundles the Access Manager, Directory Server,and Portal Server in a pre-configured deployment. Try this download instead:
    PS 7.1u1
    [https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_us/-/USD/ViewProductDetail-Start?ProductRef=PortalSvr7.1U1-OTH-G-F@CDS-CDS_SMI]
    PS 7.2
    [https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=PortalSvr7.2-OTH-G-F@CDS-CDS_SMI]
    - Jim

  • Hi can some one please help my screen size has changed its self  and is now larger than the screen can someone please let me know if this is a bug? if so how do i fix this? or am i just a nonce? if so how do i resolve this thanks in advance.

    sorry Q is in the tittle having big issues with my screen so its hard to use

    Apple menu -> System Preferences -> Displays
    Apple menu -> System Preferences -> Universal Access
    are both places where screen size may change inadvertantly.  Use higher resolutions, but lower screen zoom.

  • I get the following error "The procedure entry point RtlCaptureContext could not be located in the dynamic link library KERNEL32.Dll" Please help. Windows 2000 sp4

    Firefox crashes frequently in Facebook.com.
    and the error written above happens often and I think they are related??

    That entry point is only available in Windows XP and later and not in Windows 2000.<br />
    *http://msdn.microsoft.com/en-us/library/ms680591%28v=vs.85%29.aspx
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it happens on Facebook then you can also try to remove gadgets from your Facebook page to see if one of them is causing it.

  • Please Help Me, Windows Form Error After Install

    help me to fixed this errors after install visual basic
    Instances of this error (1)
    1.
    Hide Call Stack
    at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse..ctor(IDesignTimeAssemblyLoader assemblyLoader, IVsDesignTimeAssemblyResolution projectAssemblyResolution, IVsSmartOpenScope dispenser)
    at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse.GetUniverse(IDesignTimeAssemblyLoader assemblyLoader, IVsDesignTimeAssemblyResolution projectAssemblyResolution, IVsSmartOpenScope dispenser)
    at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkProvider..ctor(IVsDesignTimeAssemblyResolution assemblyResolution, IDesignTimeAssemblyLoader assemblyLoader, TypeDescriptionProvider parentProvider, IVsSmartOpenScope openScope)
    at Microsoft.VisualStudio.Design.VsTargetFrameworkProviderService.get_TargetFrameworkProvider()
    at Microsoft.VisualStudio.Design.VsTargetFrameworkProviderService.GetProvider(Type type)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.GetType(String typeName)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetType(String typeName)
    at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload) 

    Hello,
    I am afraid that I could not get any error message form that list you shared, is there any other message about that error?
    To narrow down this issue, I would recommend you check the following suggestions.
    1. Rebuild your project and debut it to see whether it could work.
    2. If #1 works fine, then publish it and install that application to check whether there is any issue while installing.
    3. If #2 works too, then you could share the screenshot and the detailed error message with us.
    Regards,
    Carl
    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.

  • IPod mini doesn't play ANY songs!!! Please Help

    My iPod mini doesn't play any songs. It doesn't play purchased music from the iTunes Music Store, ripped CDs, or ANYTHING. On the iPod I go to play a song but the music time counter remains on 0:00. When it does this faint sounds of the song trying to start can be heard, but then a lot of static comes up. A song did start once but it stoped at 7 seconds. I've tried the 5 Rs and everything I can think of! Please Help!
      Windows XP   First Generation Silver Refirbed iPod mini

    Try resetting your iPod and/or resyncing the files to the iPod. Also below are two articles that may help
    Troubleshooting songs that skip on iPod
    iPod: Troubleshooting songs and audiobooks that won't play

  • Ipod Shuffle won't show up on the computer Please Help!!!!

    Ok,
    One day my Ipod worked was working and I could plug it the computer and it would charge and do everthing it was supposed to do. A few days later I edited my songs in Itunes and went to go plug in my Shuffle and nothing happened, no lights no nothing. It would not show up any where in my computer. I have had other problems that have been resolved by calling Apple. This Ipod is only 10 months old.
    Please Help.
      Windows XP  

    Actually, that's a good question. I thought it was true with all iPods, but I just tried an experiment on my full-sized iPod and it wasn't the case.
    I copied a song (one that I didn't mind deleting) manually to my iPod (not shuffle). I started playing it off the iPod list. Then I went to my main iTunes library list and deleted that song. The song kept playing and continued to be listed on the iPod's list. When I do the same thing with my shuffle, as soon as delete the song off the main library list, the song stops playing and the iPod shuffle re-syncs to no longer have the song.
    So to answer your question, I believe you can set the larger iPods to manually manage your music (not sync) and play songs from it on multiple computers. You just can't do the same thing with a shuffle.

Maybe you are looking for