Why is everything appear squeeze in my GUI

Hi
I have created a JPanel that contain a bunch of buttons and a JScrollpane that contain a table.
The JPanel is then add to a JFrame.
The problem is that when I run my program, the label in the button which should appear as -----------
| newcat |
| |
appear as -------------
| ne...... |
What can I do to fix the problem?
In my main method I have:
frame.pack()
frame.show()
I don't think this would cause the problem.
--kirk123                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

1. Try commenting the frame.pack and running.
2. Read about the LayoutManagers, you will find something in the tutorial.
http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html
From what you mentioned, the above is what comes to mind.
If you can find more appropriate desctiprion for your problem, please post.
Chintan

Similar Messages

  • Why is everything in my playback monitor blown up (by 200% or so?), and why is it showing as 4:3?

    Why is everything in my playback monitor blown up (by 200% or so?), and why is it showing as 4:3? I imported mxf files that show up fine in the preview monitor, but when edited into the timeline they now suddenly appear super blown up; there is a guy in a mid-shot interview situation, but now I only see his arm. Perhaps I hit  a wrong button by accident, but how can I resolve this? ALso, whether it's the same issue or whether it is unrelated I don't know, but in the playback monitor the aspect ratio seems 4:3; why is that? Any idea, on either topic, anyone? Thank you!!!!! I appreciate your help!!

    Did you do as it shows in http://forums.adobe.com/message/3776153 to be sure your video and sequence match?

  • My macbook pro's screen display has suddenly gone into a strange colour setting where everything appears in a kind of infrared colour palette an I can;t seem to change it back.  It's the same for all icon and websites, does anyone know how to restore?

    My macbook pro's screen display has suddenly gone into a strange colour setting where everything appears in a kind of infrared colour palette an I can;t seem to change it back.  It's the same for all icon and websites, does anyone know how to restore?

    Wow!  I think I had this same issue just last night.
    I was cleaning my macbook pro retina on the outside.  Then I opened it up and was wiping dust off the monitor and I can't pinpoint exactly when, but the colors changed suddenly.  It looked super strange, it was like green halo's and it looked worse when looking at it at an angle.  Of course I took no pictures!!!  I was freaking out that my 2 grand laptop was busted and I somehow removed a protective film or something.
    But I digress...  The image looked very green and spacey, it was almost a neat effect.  After about 5 minutes it started to look a little more digital though.  There were straight lines of this halo effect on the edges and top.  After about 10 minutes it turned into a predominate issue with the blacks on screen.  I could open a web browser and it was unnoticable on a white background.  After about 15 minutes, you could only barely see the green cloud effect if you looked at the monitor from an extreme angle.  After about 20 minutes, it was completely back to normal, I almost feel paranoid like I see a halo or something strange.  But I believe that might be all in my head now.
    So yerp, lemme know what you guys figure out.

  • What is the colored spinning disk, and why does it appear, and how do I get rid of it?

    What is the colored spinning disk, and why does it appear, and how do I get rid of it?

    Repairing permissions will help as will running the UNIX commands. This widget will do all but the pram.
    http://db.tt/Lob4XtPB  Maintenance Widget  One of those links will get you the widget.
    To reset the pram hold the Command+Option+P+R when starting up, wait through 4 startup sounds before letting go.

  • HT4527 I transferred my library to a new laptop and everything appeared on the screen. I turned off the old computer and the library disappeared. How can I make it a permanent transfer as my old computer is being scrapped. Thanks

    I transferred my library to a new laptop and everything appeared on the screen. I turned off the old computer and the library disappeared. How can I make it a permanent transfer as my old computer is being scrapped. Thanks

    Hello Terryfrank,
    Congratulations on your new laptop!  Also, thank you for the details of the issue you are experiencing with transferring your iTunes Library to your new computer. 
    I notice that you are coming from the article “iTunes: How to move your music to a new computer,” and it sounds like you might have used the Home Sharing method outlined in that article. 
    With Home Sharing, you can stream content from another computer, and it sounds like that is how you have it currently set up.  The last step is to import the content to your new computer.  Use these steps on the new computer (while the old computer is on) to import the music to your new computer’s hard drive:
    Once your new computer sees the Home Share from your old computer, click that Home Share on the left side of iTunes on your new computer.
    Select the content in the Home Share that you want to transfer to your iTunes library on your new computer, or choose Edit > Select All to choose all of it. Then, click the Import button in the bottom-right corner of iTunes.
    Wait for the content to finish transferring.
    Additionally, if you want to transfer your playlists, you can export them from the old computer to the new computer:
    Transferring playlists
    If you want not only your content but also your playlists to exist on your new computer, you will want to transfer a copy of all your playlists from your old computer. To do this, choose File > Library > Export Library on your old computer. Save the XML file that is created to your desktop.
    Send the playlists file to yourself as an e-mail attachment, use an external drive, or use file sharing to move the playlists file to your new computer. Once the file is on your new computer, open iTunes and choose File > Library > Import Playlist. The import process will remove any items from the playlists that you didn't share via Home Sharing.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Everything appears in reverse that is white type on a black page how can I fix this?

    Using Acrobat reader 11.0.07 on a MacBook Air running 10.9.5.  Everything appears as white type on a black page.  It prints correctly but I cannot view it as anything but a negative.  How can I resolve this?

    First thing I would try is to update to 11.0.09.
    Does the same thing happen if you open the PDF in Adobe Reader?

  • Why does border appear around embedded video?

    Hello,
    I have an embedded YouTube video in a page on my site. It was working fine for a while but I've just discovered that there is now a black edge showing on the left, right and bottom of the video? I created a white round cornered frame within Premier so that it's part of the video. I did this as the pgae it's embedded in is white so that when it plays back it appears seamless and with curved edges to match it's container. This worked fine for a week or so but now it has these black edges? Can anybody tell me why? You can see for yourself at www.glovesanddoves.com. Go to the fighters page and you'll see the video at the bottom. The video's width is a multiple of 16 and the ratio is 16:9 at 384px X 216px. The containg Divs are also set to these measurements.
    I've attached a screenshot below:
    Any help would be much appreciated.
    Jack

    It only seems to be affecting the page when viewed in Safari although it was working fine for over a week before today?
    Date: Thu, 11 Oct 2012 16:39:47 -0600
    From: [email protected]
    To: [email protected]
    Subject: Why does border appear around embedded video?
        Re: Why does border appear around embedded video?
        created by Ken Binney in Dreamweaver General - View the full discussion
    No prob in FF 15.0.1or IE 8  on PC - Rounded corners boxes on both
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4767926#4767926
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4767926#4767926
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4767926#4767926. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • My two year old has managed to invert the colour on a MacBook, so that everything appears in negative. How can this be reversed? I have explored Preferences, but can;t seem to see anything relevant.

    My two year old has managed to invert the colour on a MacBook, so that everything appears in negative. How can this be reversed? I have explored Preferences, but can;t seem to see anything relevant.

    Yes, he does have agile fingers and they are everywhere! I managed to find a solution to the problem by going to the Language section and resetting to black on white...
    All bets and thanks for the response
    jem

  • My hotmail email has been hacked into. I've changed my password and hope this fixes the problem. Does this mean my imac software is infected. If so what should I do? Everything appears to be working ok.

    My hotmail email account has been hacked into. I've changed my email password and hope this fixes the problem.  Will my iMac system software now be infected and if so what should I do about it?  Everything appears to be working ok.   Is there a free to use software package available on the web, totally secure and reliable, which can scan my iMac for viruses and fix them if any are found.

    Unless you have installed anything, you are fine.
    You may find this User Tip on Viruses, Trojan Detection and Removal, as well as general Internet Security and Privacy, useful:
    https://discussions.apple.com/docs/DOC-2435
    Bear in mind that from April to December 2011 there were only 58 attempted security threats to the Mac - a mere fraction compared to Windows malware:
    http://www.f-secure.com/weblog/archives/00002300.html
    (I have ClamXav set to scan incoming emails, but nothing else.)

  • Why do holidays appear more than once?

    Why do holidays appear more than once?

    I have the new iPad and iPhone 5
    both run on ios 6
    I have multiple holiday calendars on both devices
    Step 1: delete your gmail account and calendars go away
    Step 2: DELETE your icloud account under setting on iphone and select also delete on iphone
    Step 3: add Gmail and Calendar by following directions below (you will NOT get multiple google calendars)
    Step 4: go back under setting and sign up for icloud again and turn everythin you want on, ON, even Calendar
    You are done, no multiple calendars
    **I struggled for a week with this issue and researched online and tried other methods such as unchecking default Birthday icloud calendar, hard reset, uncheck holidays in Gmail, on iphone, none of it worked.....what worked were Steps 1-4 above!!!!)
    My iphone 5 is perfect now..no 20 of the same holidays in one day!!!
    By the way if you want multiple Google calendars to show up do it this way:
    First of you are a gmail user, do NOT use the default gmail sync option if you want ALL of your calendars from Google to show up, multiple colors etc); use MS Exchange, server address is m.google.com
    Then go to m.google.com/sync to sync your iphone calendar ON YOUR IPHONE BROSWER, you check mark the calendars you want
    Presto, your Google calendars -- all of them -- show up

  • Why is everything so difficult since 'upgrading' to Maverick. I can't sync my Outlook calendar (default) with iCal or my iPad.

    Why is everything so difficult since 'upgrading' to Maverick. I can't sync my Outlook calendar (default) with iCal or my iPad.
    Also, I can't send pictures via Dropbox any more. Two basic necessities that I just can't get to work.

    Microsoft didn't update Outlook to be Mavericks ready.
    I don't really use Dropbox, but if their software doesn't work like it used to, they didn't update it for Mavericks.
    EDIT: http://www.iclarified.com/34312/dropbox-24-released-for-mac-os-x-brings-maverick s-support-iphoto-importer-more

  • Help! Why did everything disappear?

    I was changing the fill on a shape I drew on a new layer, when suddenly everything I had done before disappeared and I now have only one layer with one frame.  What happened??  And can I get everything back?  I had a layer with a static photo, a layer with a symbol and simple motion tween (swoop in from left), and a third layer I was working on.  There were 36 frames in the file.  Now, Layer 1 (with one frame) has the photo and the shape showing.  I've been all over the forums and support looking for a clue.  Can anyone help me?  Thanks!!

    Hi Matt!
    Thank you so much for replying to my question ‹ I¹ll be able to go back to
    my Flash project later this evening, and I¹ll be able to answer these
    questions.  Is there some reason that two or three layers would disappear
    and only Layer 1 would remain?  Is there a ³flatten² type command like in
    Photoshop?  Thanks again!
    Ruth
    From: Matt Schneck <[email protected]>
    Reply-To: <[email protected]>
    Date: Tue, 11 May 2010 14:19:46 -0600
    To: Go for Joy <[email protected]>
    Subject: Help! Why did everything disappear?
    Were you working on the tween inside of an object?  It sounds like you have
    an object that has 36 frame that's sitting on frame 1 of the timeline.  Whe
    n you were manipulating your tween, or shape, or whatever on layer 3, you
    clicked out of your object and are just looking at your main timeline.
    If you deleted the graphic object, you may have deleted the work you did...
    Can you name the files in your library, the type of object they are, and a
    description of what each object contains?

  • I've just installed Mavericks on my Macbook Pro, which took forever to install, and everything appears to be fine except for iPhoto.  When I try and open iPhoto I get a popup saying its not supported by this OS.  Anyone have any ideas???   Help please.

    I've just installed Mavericks on my Macbook Pro, which took forever to install, and everything appears to be fine except for iPhoto.  When I try and open iPhoto I get a popup saying its not supported by this OS.  Anyone have any ideas???   Help please.

    Click App Store from your Apple menu  drop down menu then select Updates from the App Store menu bar.

  • When i try to burn a cd everything appears to be functioning but the cd is still blank?

    when i try to burn a cd everything appears to be functioning but the cd is still blank?

    Hi,
    What is the software ? You may need to close BEFORE the session eject the CD.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • After an hp update today i have lost all sound. everything appears to be turned on and up? any ideas

    After an hp update today i have lost all sound. everything appears to be turned on and up? Any ideas?

    Never mind!!! After reading someone elses similar problem I applied their repliers advice and it works! Thanks.

Maybe you are looking for

  • Query runs forever when using selection on line item dim

    we have a cube zcube which has po number as a line item dimension . everymonth users run queries this cube using po number as selection criterai and using a wild card search on this field . every time queries have run fine . however , this month when

  • DIM Adapter Issues

    Hi All, I installed the below DIM Adapters Informatica Application V11452-01 Part 1 of 2 - Hyperion Data Integration Management Release 9.3.1.1 Informatica PowerCenter 8.1.1 Microsoft Windows x86 Installer (Part 1 of 2) V11452-01 Part 2 of 2 - Hyperi

  • Backorder although on-hand quantity exists

    When I perform Pick Release step, the Order status becomes Backorder, although on hand quantity for the ordered item exists. In Exceptions, I got: WSH_PICK_BACKORDER - Pick Release process could not allocate 1 of item test01 for order 49 as there was

  • ViewObjectImpl never called? NavigationListener HowTo?

    Hi, I try to implement add a navigation listener to a ViewObjectImpl but I noticed that the class is never called? JDev 10.1.2 + JClient I have a panel bound to the ViewObject. 3 rows are retrieved I traced my program and when 3 rows are retrieved, t

  • HT5312 I don't remember my security question answer

    I don't remember my security question. What should I do?