GridBagLayout placement problems

I use GridBagLayout to order widgets into grid form.
The panel I made is OK, but one detail: the grid occured placed in the center of parent component, whereas I would have the grid to be stretched to width (but not to height).
// code I've write is like ...
JPanel grid = new JPanel(new GridBagLayout());
// add widgets to the grid
jframe.getContentPane().setLayout(new BorderLayout());
jframe.getContentPane().add(grid, BorderLayout.CENTER);Any suggestion welcome.
Finally my grid    But I'd like:
looks like:       
|              |   |--------------|
|              |   ||      |     ||
|   --------   |   ||------|-----||
|   |   |   |  |   ||      |     ||
|   |-- |-- |  |   |-------|------|
|   |   |   |  |   |              |
|   --------   |   |              |
|              |   |              |
*/

Set either weightx or weighty to something higher than 0. Preferably set weightx = 0;
James

Similar Messages

  • HTML Help window placement problem

    Hi -
    We just upgraded to R7 from X5. It seems that now, for our
    newly generated Help, the HTML Help viewer will not right-align.
    Even if I specify the maximum width in the Window Properties
    dialog, when generated, the window only extends about 4/5 of the
    available screen width and is LEFT aligned.
    Our screens are 1024 x 768 and RoboHelp seems to understand
    this because if I max out the window size in the Window Properties
    dialog, the height shown = 767 and width = 1019.
    Is anyone else experiencing this placement problem?
    TIA

    Hi, Jack,
    > ... the HTML Help window properties dialog only accepts
    hard coordinates (i.e. pixels).
    > ...
    > Unless someone knows differently, for HTML Help,
    apparently you can't get the HTML
    > Help viewer to appear right-aligned for all
    screen/display configurations
    Yes, this is correct on both counts. Because of limitations
    in Microsoft's design of HTML Help, you cannot specify the
    dimensions of the help window in anything other than pixels, and
    you can only set the initial position of the window relative to the
    left and top edges of the screen.
    On the other hand, if you are calling the help file
    programmatically from an application, there may be some scope for
    controlling the position of the help window by using standard
    Windows functions. This article provides a small amount of extra
    information:
    http://helpware.net/FAR/far_faq.htm#control
    Pete

  • Faces and Places Problem

    Hello,
    maybe someone could help me (apple telephone support could not):
    Faces problem:
    I made a smart-album to sort out all the "unnamed faces". But 92 pictures have a strange behaviour. They are tagged as "unnamed" although there is no rectangle in the picture to tag. I've allready used the repair-function and deleted all cache files (telephone support advised me to do both).
    Places problem:
    another strange thing is places. I've got a few pictures which have more than one "place" tagged. I don't know how this could happen. If you take a look at the screenshot you can see that I made a smart-album with 4 different places (PLACE - IS - XY - AND - PLACE - IS .....) to demonstrate that kind of behaviour

    I've noticed that photos I had faces from iPhoto 09 are not syncing (I only had a few).
    In the manual list, the faces are not an option to select them. Tried removing and resyncing library and no avail.

  • Places: problem with the State field in Aperture 3.03

    hi,
    I live in Europe and I have some problems in handling the State field in Aperture 3.03, because this field isn't always relevant in non North-American Countries.
    The Google suggestions in Places don't always include the 4 fields (Location/City/State/Country). I have a lot of pictures taken in the Azores islands (Portugal) which don't show up in my Aperture map because the marker somehow doesn't write Azores in the State field.
    Question #1: is there a way to eliminate the State field from Aperture, or at least to render it optional?
    Question #2: if I manually create a New Location, what is the proper syntax to separate Location/City/State/Country in a way that will be understood by the Aperture database? I tried putting commas as a separator, but it doesn't seem to be working.
    Thanks for your help.

    Yes, same here. I cannot complete my registration process due to the same error. My state is correct, which is RS (two letters only). I don't know what else to do. Refer to the image below. Thanks!

  • Toshiba Places problem connecting to facebook

    TV Model 46TL963B connected to sky router using network cable. Have registered with Toshiba places. Trying to connect my facebook account using the email authentication option and it keeps saying problems with server and wont let me connect.
    Solution please

    That doesn't appear to be a US model, and this is the forums for Toshiba USA. You may want to contact Toshiba in your region.
    - Peter

  • Decimal place problem in smartforms..

    Hi All,
    I my smart forms i am displaying a quantity filed, but itz displaying with 3 decimal places. But i need to hide the decimal places. I try to use formating option &symbol(.N)&  but itz giving error while calling the smart forms.
    Plz help me...
    Regards,
    Pavan.M

    Hi,
    I've yet to find any SAP documentation or training material the recommends using the table's own header as the Smartforms work area.  I have however found it causing unusual problems in the generated function module.
    That said, I've tried reproducing your problem and have not been able to.  You could try defining a work area and seeing if that helps.
    Regards,
    Nick

  • Simple image placement problem

    I just recnetly upgraded to Dreamweaver 8 and have a crazy
    problem that I don't understand. I'm unable to add picutres
    side-by-side. I don't quite understand what is happenening but when
    I try and add two images side by side it forces the other down
    below it. It doesn't matter how much space is availble or the size
    of the images. Right now I'm having to create tables to place them
    into but I think that is a terrible solution and I never had this
    issue with MX.
    Any help would be greatly appreciated.
    Jason

    <title>template1_2_02 copy.jpg</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <style type="text/css">td img {display:
    block;}</style>
    Reckon that could be a factor in not being able to place them
    horizontally
    adjacent?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "jaysyn" <[email protected]> wrote in
    message
    news:e79eej$s07$[email protected]..
    >
    quote:
    Originally posted by:
    Newsgroup User
    > It's hard to say without seeing your page. Can you show
    us the code?
    >
    >
    > Here is a webpage I threw on the net real quick.
    > I create webpages by creating the template in Photoshop,
    slicing it in
    > fireworks and then finishing it in Dreamweaver. Using
    the CS2 and Studio 8
    > software.
    >
    > I noticed that if I just create a blank page in DW I can
    set them
    > side-by-side
    > but not after I bring in a page from fireworks. Like I
    said this process
    > has
    > never givene me this problem with v7 so any help would
    be appreciated.
    >
    >
    http://design.archerworks.com/images.htm
    << it isn't clean right now kind
    > of
    > just thrown out there for this example.
    >
    > Thanks,
    > Jason
    >
    >
    >

  • Paste & Paste in Place problem

    Hi there,
    Recently i have these problem in the following description:
    1- Create a new documet.
    2- Draw a recangle frame on a page.
    3- Copy the frame, and when i go to the other page on the same document the paste command is grayed.
    Another problem:
    1- Copy empty rectangle frame
    2-  Go to other page, when i paste the frame is filled with a content (fake content)
    Also when i copy an item and try to paste it in place command it's not paste in same place.
    I tried troube shooting
    http://forums.adobe.com/thread/526990
    but there's no solution
    I tried Creative Suite Cleaner and reinstall and install indesign but all of these it's not solve the problem.
    Indesign CS6 8.0.1
    Windows 64bit

    Ahem; yes…
    Sometimes I should read more carefully.
    In the meantime I could have a look at Shlomit's InDesign document.
    I think, what he is seeing is not related to the OP's problem, but an issue in itself I can already observe in InDesign CS3.
    Something "bad" will happen to the positioning of objects copied from master spreads by "Paste In Place", if the overall width of all pages left from spine is not equal to the overall width of pages right from spine. The pasted (in place) objects will move by half of the value the overall page widths will differ.
    Either in positive x-direction, if the violation of symmetry (the wider side) is on the left side of the spine, or in negative x-direction, if the violation of symmetry is on the right side of the spine. It's not important, if the binding is LTR or RTL.
    Still I have to test a bit, to see if that hypothesis is sustainable…
    What is working alright:
    Overriding or detaching objects from the applied master pages.
    That will work without seeing a shift.
    Uwe

  • CS, CS2 & CS3 place problem

    Hi,
    I was just wondering if someone could help me with the following problem:
    All l'm doing is placing a text file into a text frame - sounds easy - test code below:
    ======
    set boxContent to "HDPropane:textfile.txt"
    tell application "Adobe InDesign CS2"
        activate
        set MyDocument to active document
        try
            set myframe to (text frame 1 of MyDocument whose label is "testbox")
            «event K2  plac» (boxContent) with «class rtfo» without «class imot» given «class insh»:myframe
        on error emg
            display dialog emg
        end try
    end tell
    ========
    This works OK and will overwrite the contents each time... the problem is when you link the text frame to another text frame.... it still works fine if you run the script without having any contents in your text frames but as soon as you have some contents you get an error 'import failed'  I get the same problem in CS, CS2 & CS3
    I've even tried after the 'set myframe' adding set myframe contents to "" - adding this line was a little hit and miss  sometimes it worked sometimes l got the same import failed message.
    Regards, Gary.

    Change this:
            set myframe to (text frame 1 of MyDocument whose label is "testbox")
            «event K2  plac» (boxContent) with «class rtfo» without «class imot» given «class insh»:myframe
    to something like this:
            set myframe to (text frame 1 of MyDocument whose label is "testbox")
            set contents of parent story of myFrame to ""
            place file boxContent on myframe without showing options
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

  • Ultiboard parts placement problem

    In Ultiboard and desiging a new  board layout. When selecting a part from the database and press OK it takes you back to the board layout to place that part but it would select the last part you place to move and place on the board and not the part you just selected. I have upgrade to 12 and this is the first time I have seen this. Has anybody seen this problem? 
                Reggie

    The problem was when I was placing DIP parts (dip8, dip16 parts). I just made a new project and use the board Wizard to design the board. I could place the first part fine but when I would select a 2nd part from the database and press "ok" which takes me back to the board to place the part it would select the first part I place to move. The 2nd part would be placed on the board. I tried to replicate the problem today but could not but there is a new problem now. When I select a part from the database and place it and do a "ctrl-rotate I do not get the "Enter Reference Designation for part" box to show up! Also the curser cross hairs will not show up over the board outline but when you move off the board you can see the cursers. The only ways I can get it out of this is by doubling-right clicking on the board which brings up the PCB properties and X out of that to be able to select another part or do a “ctrl-W” command. If I do not do a rotate then it works fine. Looks like I will have to call tech support about this or has anybody else came across this. I did have this problem yesterday with the first problem.
           Reggie

  • Signature placement problem

    I have been using Acrobat 9 Standard & the signature placement for some time without problems.
    Recently, when I select the area to place my signature. The signature has been applied, but not in the area i have selected. It is larger than the area selected & I am also unable to move/resize the signature once it is applied.
    This is causing me a problem as i generally have a set area on the pdf to sign & with the resizing of the area it is always outside of the required signing box/space.
    I have tried to make the area I place the signature smaller than required. However, the signature is generated at the same size again.
    Thanks in advance for any help on this problem.
    Alex

    Oh yes you can
    I'll be right back
    OK?
    Ok,I' back! just read this thread there are two ways todo it
    http://supportforums.blackberry.com/rim/board/message?board.id=8300&thread.id=11025
    If you need further assistance please ask! If not:
    Please resolve the post using the green kudos’ box.. Simply check the post that had ,
    your answer in it. Thanks!
    Message Edited by Bifocals on 09-06-2008 12:46 PM
    Message Edited by Bifocals on 09-06-2008 12:46 PM
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Text placement problem in photoshop 4

    I can't control text placement in photoshop 4. When I enter 2 letters, the line then zooms off to the right - right off the image. I tried uninstalling and reinstalling and it didn't help

    Your talking about photoshop elements 4?
    Or another version such as the old ps4 or photoshop cs4?
    If it's photoshop elements 4, you might try resetting the Text Tool by clicking on the big T in the tool options bar and then clicking on Reset Tool

  • Horizontal Menu Bar Placement Problem in IE

    I am having problem determining which CSS rule is causing a
    horizontal menu bar to show correctly in the Dreamweaver Design
    view, correctly in Firefox, but incorrectly in IE7. I have a
    background image in the header, but the menu bar cover it up on the
    left side in IE7. Any thoughts?
    And while we are at it, any reason that the button hover
    color touches the header logo in Firefox (as desired) but is
    dropped down several pixels in IE?
    I have attached a link to the site for viewing. I have also
    attached the CSS code that the menu is using.
    www.swcdc.grohse.com
    Thanks for any help or ideas!

    Anyone who increases their browser's text size will see the same thing.  For wiggle room, reduce top-level links from 11 to no more than 7.
    Nancy O.

  • Lightroom 5 File Placement Problem

    Snow Leopard. Importing from a camera CF card in a card reader.
    My LR folder contains a subfolder named 2013. Subfolders within the 2013 folder are named by date, e.g., "2013-07-01." Recently, however, when I import photographs, LR creates a folder within 2013, also named 2013, and then creates a folder within that folder with the date of the import as the name of the folder.
    For example, the hierarchy for today, 31 July 2013, is ~/Pictures/Lightroom/2013/2013/2013-07-31/mygreatpic-1.CR2 etc.
    Should it not be ~/Pictures/Lightroom/2013/2013-07-31/mygreatpic-1.CR2? And, for tomorrow, ~/Pictures/Lightroom/2013/2013-08-01/anothergreatpic-1.CR2 etc?
    I don't recall having changed any settings, and I can't find a setting to fix this.
    Thanks!
    David Illig

    I have an SSD drive that has my OS and applications.  I looked in the Macintosh SSD/Users/[my username]/Library/Preferences/ directory and I do not have a com.adobe.Lightroom5.plist file.
    My old Macintosh HD drive has been renamed "Macintosh HD Archive" and I now use it for file archiving.  it has a Marcintosh HD Archive/Users/[my user name]/Library/Preferences/ directory which contains the preference files for my older versions of Lightroom (Lightroom, Lightroom2, and Lightroom3). 
    After I installed the SSD drive and used it as my startup disk I have used Lightroom 4 and Lightroom 5. 
    Lightroom4 and LIghtroom5 have been installed on the SSD drive.  I deleted Lightroom 4 after I installed Lightroom 5. 
    There is no com.adobe.Lightroom5.plist list file on my Macintosh SSD drive or on my MacIntosh HD Archive drive.
    Perhaps the printing problem is due to a failure to create these files with the installation of Lightroom 5.44 on the SSD drive.
    I do not recgnize the name "LayoutDirection1.png" as significant any of my images, but its occurence in the console log in association with Lightroom5 at the times print attempt failed suggested that the hangup was due to a missing file.

  • Text Placement Problem

    I'm having an interesting problem with a regular text box. I'm currently editing a co workers work and have come across two paragraphs of text that do something very weird. At the right edge of inside the text box when I try to add a character (.), the text goes to the beginning of the line. So when I type a character it doesn't continue as it normally would but continues at the beginning of the current line I'm on. Not sure if this is a margin or paragraph setting but everything looks normal. Please let me know if anyone has any info... Thanks.

    Your subscription would allow you to download the Arabic/English or Hebrew/English version which will have the direction controls. You would need to change the language using the Gear icon in the desktop app, then download ID again and the extra features would be added.
    I'm not 100% certain this is the problem -- I never work on RTL text, but it sure sounds like a good bet.

Maybe you are looking for

  • I have been completely Ripped off by these People

    I have been completely Ripped off by these People and they do not care. None of them. I have spoke to multiple customer service reps on the phone. None of them gave a toss about me. They don't care. Spent hours on the phone to them being passed aroun

  • Errors filling up daily.out file, streaming audio/vid problems, how to fix

    I've been experincing some seemingly random problems with my macbook 1) Hard drive suspiciously full 2) Cursor skipping around the screen when using the track pad, I finally disabled the pad and solely use an external wireless mouse. Occasionally whe

  • Why does Apogee Jam not work with the Ipod Touch 4G

    Hi, I have a Apogge Jam an it works fine with my Mac Book, but it does not seem to be compatible with my Ipod Touch 4g. Only the Gibbson L&M app recognize the Apogee Jam, but no other App (Ampkit, ....) :-(( With the IPhone 4 it shall work, can tell

  • Setting black and white points

    Dear friends, I am shooting some pics with a "Whibal like" target card which has a white, black and 18% neutral grey shades. In Camera Raw I I can easily correct the white balance with the provided eyedropper on the top row by clicking on the grey ta

  • Pages-how to set spacing between columns

    There used to be a spacing option between columns in Pages.  How does one change that spacing now?