GridBagConstraints arrangement?

I have tried to arrange one JScrollPane and two JComboBox in a JPanel like this
| JPanel |
| --------------------- -------------------- -------------------- |
| | JScrollPane | | JComboBox| | JComboBox| |
| | | --------------------- --------------------- |
| | | |
| | | |
| | | |
| | | |
| --------------------- |
Using my following code, the JScrollPane is far away from the left edge of the JPanel...like 1/4 of the width of JPanel....
Also, the rightest JComboBox disappears....
Here is my code,
          mainPanel = new JPanel();
          dc = new JScrollPane();
          //setup the layout
          GridBagLayout gbl = new GridBagLayout();
          mainPanel.setLayout(gbl);
          //setup the constraint of the layout
          GridBagConstraints gbc = new GridBagConstraints();
     sortBase1 = new JComboBox(items);
          sortBase2 = new JComboBox(items);
          //adding buttons to the MainPanel
          gbc.fill = GridBagConstraints.HORIZONTAL;
          gbc.anchor = GridBagConstraints.CENTER;
          gbc.gridx = 0;
          gbc.gridwidth = 2;
          gbc.gridy = 0;
          gbc.ipadx = 100;
          gbl.setConstraints( dc , gbc );
          mainPanel.add( dc );
          gbc.gridx = 2;
          gbc.gridy = 0;
          gbc.ipadx = 0;
          mainPanel.add( sortBase1 , gbc );
          //gbc.gridwidth = GridBagConstraints.REMAINDER;
          gbc.gridx = 3;
          gbc.gridy = 0;
          mainPanel.add( sortBase2 , gbc );
Could anyone help me out?

|           JPanel                              |
|  --------------     -----------  -----------  |
|  |JScrollPanel|     |JComboBox|  |JComboBox|  |
|  |            |     -----------  -----------  |
|  |            |                               |
|  |            |                               |
|  |            |                               |
|  |            |                               |
|  --------------                               |
-------------------------------------------------oops it should be like this

Similar Messages

  • When creating new track in stereo... track opens in mono in arrange window

    Since upgrading to 8.0.2...weird things are happening to previously saved projects. Stereo tracks are opening up mono and affecting following track. When creating new tracks in stereo.... tracks open mono. I don't know if this is due to 8.0.2 but all these freaky things have happening since. Also, when previewing Apple Loops, I can only hear it on one side, but Loops sounds fine once dragged to arrange window. Is this common or is my computer haunted ? Should I call Ghost Busters ? HELP !!! lol

    Hi there,
    I'm having the same problem as well: creating new tracks results in a mono software instrument, not the usual stereo software instrument. BUT... "Universal Track Mode" is already checked in my Audio prefs. I unchecked & rechecked it, but to no avail... I'm still only getting mono software instruments.
    Any other ideas? No changes have been made to my system, and I'm running the latest version of Logic Pro.
    Kirby

  • I am making a calendar in iPhoto, picking photos from a folder, let's call it "2011 Pics," in iPhoto. After arranging all the photos and captions I decided I wanted to insert a new photo -- one that was not in "2011 Pics." So I inserted it into the folder

    Add new photo to existing calendar folder in iPhoto
    I am making a calendar in iPhoto, picking photos from a folder, let's call it "2011 Pics," in iPhoto. After arranging all the photos and captions I decided I wanted to insert a new photo -- one that was not in "2011 Pics." So I inserted it into the folder, but the picture does not show up on the scrolling menu of pictures at the left of the calendar-making page. This happened last year and in frustration I started all over again. But surely there is a way to add a new picture to a calendar that is already laid out.

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • A better way to arrange icons?

    Is there a better way to arrange icons? iTunes just **ed up all of my sorted icons and they are now however iTunes determined them to be. I've got 7 pages that I really don't want to 'click & drag'. It'd be nice if I could arrange them in iTunes.

    Happened to me once. I did a restore and it set them back in the proper spots I had them in before. Other than doing that you have to do them on the phone.

  • Why are Bounce in Arrange and Environment not 1 & the same?

    Just wondering why (like in 8) Bouncing in the Arrange window and in the Environment are different? I noticed this again in 9, when doing stems, bouncing in the Environment (so I can solo different tracks more quickly) I was wondering why on earth LP9 was adding tracks to the Audio Bin despite the box not being ticked. I clicked on Bounce in the Arrange, and sure enough, the Add to Audio Bin button was checked.
    Does anyone know why it seems these Bounce buttons are independent of each other? The other issue is if you have a solo output (if I'm bouncing Mono) - and click on bounce in the Arrange window - it makes the file stereo (The Interleaved/Split menu is selectable) where as doing the same thing in the Environment (albeit clicking bounce on the mono output channel) Greys out that field on Split (as it should be)
    B

    Ben Collier wrote:
    Hi Erik - sorry to take so long to reply - I didn't get an email reminder - odd...
    I think they reset something on the forums, because my subscription to the forum was gone a few days ago as well, I had to subscribe again (which is not really a chore, luckily... )
    The Bnce button at the bottom of the Out 1-2 in the Environment (I don't use the mixer)
    Mixer & env mixer are the same thing, really.
    and the Bounce button at the top of the Arrange window
    Now I have to start Logic, a bounce button at the top of the Arrange window...?
    Ah, now I get it, the toolbar! (I never use that and click it away in all my projects & templates.)( That is the same command as choosing bounce from the File menu, or hitting ctrl-B (my KC for Bounce
    are not going to the same bounce window (odd I know!). I've noticed that if the Arrange-Bounce window has "Add to Audio Bin" selected and the you bounce (or press Bnce) from the Environment window, and switch "Add to Audio Bin" off in the Environment's Bouonce window - it will still add them to the audio bin because that setting is on in the Arrange Bounce window - it's driven me bonkers on many occaisions! Try it - you'll see what I mean. It's been there in 8 and it's still there in 9.
    Actually, I do not see it behave like this. Here it appears that both bounce windows are in fact identical, and that wherever the last setting was made, that becomes the setting the next time you get a bounce window, either from the Env mixer or from the Bounce command in the File menu or indeed the bounce button in the toolbar or in the 'regular' mixer. They all pop up the same window, with the last set settings still set. whether it be *Add to Audio Bin* or *Add to iTunes Library* plus all combinations of both and neither.
    I've also noticed level differences on our main rig when importing them, despite both being bounced at 96 and in realtime.
    I find it quite difficult to say this, but I think those differences have nothing to do with the method of bouncing. And it being at 96 kHz does not mean it has audibly different levels, on the contrary, a bounce at 96 is probably not discernable from one at 48, in a blind listening test.
    I'm convinced that in whatever way you give the command to bounce, it is the same process. There must be another overlooked factor responsible for those level differences. I trust you have the Normalise function Off when you bounce? And you have not changed the pan law settings between bounces? And no plugins that use some Random settings?

  • How do I arrange the order of icons on the printer's touch screen panel? (Office Jet Pro 8600)

    There has to be a way to remove apps from the screen and to re arrange.  The only one I use is scan to email and it is buried 7 screens deep.
    Does anybody know how to do this?  This is really annoying and I would not have bought the rpinter if you can't rearrange and remove icons.
    I don't care about Tony Robbins.
    Help

    Hi @Tires1961,
    Welcome to the HP Support Forums. I understand that you would like to move the Scan to Email app to the front of the line on your Officejet 8600 printer.
    Please call HP’s Cloud Services at 1-855-785-2777 if you live in the USA/Canada region. If you live outside the USA/Canada region please click here to find the Technical Support number for your country/region. 
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Key fields and data fields re-arranged

    Hello SDN,
    Which design contains more records due to it showing more granularity? :
    1. ODS with more infoobjects assigned as Keys.
    2. ODS with less infoobjects assigned as Keys.
    assuming the total number of infoobjects remain the same.
    Where data fields can contain characteristics that can be used as keys or non-keys, depending on choice of design.
    My understanding is with more keys, less details available due to aggregation. Could you kindly help to confirm this is correct?
    I need to ask this because I am trying to change the re-arrange the keys by putting data fields as keys but not sure how this will turn out / behave.
    Thanks,
    Suzie

    Hi,
    <i>BUT! I cannot say that it will increase. That means, I think the record number remains the same!</i>
    I do not think that this is Right?
    for ex:
    1)
    Key fields:
    <i>Billing document</i>
    Data Fields
    <i>Sales Office
    Customer
    Net sales</i>
    So in the update rules , you can see the Overwrite for all Data fields. If the sales office is chaged for a record , the the OLD value will be over written by new value. So Before and after change to the records, the no of records are equal to 1.
    2)
    Key fields:
    <i>Billing document
    Sales Office</i>
    Data Fields
    <i>Customer
    Net sales</i>
    So in the update rules , you can see the Overwrite for all Data fields(now not for 'Sales Office'). If the sales office is chaged for a record , the the OLD value will not be over written by new value. It creates 2 records in Active table with respect to one change in new table.  So Before the change , the no of records was 1.now after change, the records' number becomes 3.
    With rgds,
    Anil Kumar Sharma .P

  • "Arrange by..." options are greyed out in Finder's List View.

    Hey there, just a quick one...
    I'm having trouble arranging my files/folders by Name, Date Modified, Size etc when in List View. This is fine in my regular Finder window but I clearly remember being able to do when (for example) Saving, Opening and all other popup Finder windows in earlier versions of OS X.
    I should also say that I do have TotalFinder installed but I believe it was a problem even without it installed.
    Here's a pic to demonstrate what I mean. In normal Finder windows there is a little drop down arrow when you hover, making each catagory a button essentially. This is what it looks like when I'm trying to Open, Save As or something similar... Greyed out, essentially. Problem highlighted in yellow.
    Any ideas, suggestions or general help you guys have would be greatly appreciated. Could it be just somethign as similar as a System Preferences option or even holding down a key etc? Cheers.

    Click the Arrange button on the toolbar and select the desired option.

  • Orchestral midi loops fx not translating to arrange

    when i audition these orchestral loops in the media browser i hear them with massive reverbs, very convincing, perhaps a little bit overdone here and there but still impressive
    when i transfer these to the arrange they lose all the effects and appear 100% dry
    i'd be glad to know if there's a way to pull the media browser fx in to the arrange with the loop
    thankz in advance
    byz

    you have to pull the midi loops on an audio track, and they will sound like you hear them in the loop browser, i guess the designers made that on purpose so you can fool around with your own settings, and kind of making me itch to find out how they did it.

  • Midi loops in browser sound different in arrange window controller messages

    I have a problem with controller messages as well with fx
    I audition a midi loop it has FX and then drag it to arrange window
    sounds different, I know of ther is another topic about the FX,
    But as well controller messages not being read right
    say a Timpani loop, foot controller is not reading
    so the timpani roll is gone

    This is not a problem, it's intentional design.
    The preview audio contains reverb for these instruments, because the sound is in context - it let's you hear it how you are typically going to use it, and use can use it as an audio loop without problems.
    When you load it as MIDI, it does not add another reverb to the channel because it assume you are going to use a global reverb, rather than add individual reverbs per channel - this is the generally better way of doing it, and avoids new users having a hundred reverbs on individual channels when they only need one.
    As for articulations switched by MIDI, the preview audio can contain only one sample, but if there are different articulations, they need to be played/switched accordingly.
    It's not a bug, it's the way it works for flexibility in the main. You have to remember, that when stepping up from a entry-level program to a professional one, a lot of hand-holding that the entry level programs do is no longer there, and so you can feel like the pro version is "less good" than the entry one. This is not the case - professional users do not need hand-holding, and that generally gets in the way.

  • Midi loops when imported into arrange window sound pretty lifeless - please help

    Hi
    I am currently using Logic pro 9 and when I play the orchestral midi loops in the loop window they sound really lush. When I drag them into the arrnage window they sound really dull. I think I have changed a master setting somewhere along the line but don't know how to restore it.
    It doesn't happen with the audio loops
    I am on Mac OS x 10.6.8
    any suggestions welcome
    Rhythmseeds

    Sorry to say, this isn't a bug — it's a feature!
    You've just described exactly how they're supposed to work.
    +Green Apple Loops are known as Software Instrument Apple Loops (SIALs). They differ from the blue (audio) Apple Loops in that they also contain a MIDI region plus software instrument and effect settings.+
    +When Software Instrument Apple Loops are placed on instrument tracks, the region shown in the Arrange area can be edited just like other MIDI regions, including individual note editing.+
    +If dragged onto a blank instrument track (one with an empty channel strip), the corresponding instrument and effect(s) settings are automatically inserted.+
    +You can also drag Software Instrument Apple Loops directly into a blank Arrange window (with no tracks), or to a blank area below existing tracks. An instrument track and corresponding channel strip are automatically created, and the Apple Loop is loaded (the instrument is inserted into the instrument channel, along with any effects, and the Apple Loop region is placed on the track).+
    +When you place Software Instrument Apple Loops on audio tracks, they are imported as audio regions (and behave like blue Apple Loops). Processing load is reduced when green Apple Loops are added to audio tracks.+
    +Note: Blue Apple Loops will not play if placed on instrument tracks.+

  • When I drag a loop into the arrange area, it sounds completely different from how it sounds in the loop menu.  What am I doing wrong.  (I've started using Logic 9 today)

    When I drag a loop into my arrange area, it no longer sounds the way it did in my loops menu. 

    Hi, do you mean song key wise not sounding the same? Then this might be the reason:
    Also you might find some interesting facts over here:
    http://help.apple.com/logicpro/mac/10/#lgcpd770ce07
    Have a nice day!

  • Midi loop not sounding same at arrange area

    Hi,
    when I drag a midi loops (green loops) into the arrange area it will not play the same sound........ mean I'm not getting the same effect of the midi loop at the arrange area & I don't want use these loop on audio track. I know if I drag the midi loops into audio track it will create an audio loop sounds same effect what I'm listening at the Loop browser but I want to use these midi loops in there own midi track.
    Please help me guys

    Thanks Jorge for getting back to me.
    I tried what you said and when I do get the first Capital Violin 2 midi loop and turn it to green. There is a slight staccato sound but not much. When I move the modulation wheel and select the first sound in the piano roll, yes I can hear a dramatic staccato sound. But the minuet I get the play head to the front of the loop and play it from start it is gone again. Quite frustrating. I would love to get that energetic Capita F Violin 2 midi sound but it doesn't have the power or anything like what it sounds in the loop browser.
    Any extra tips on how to KEEP the sound after playback would be a great boost to my musical loop understanding.
    But thanks for those suggestions!
    I am using a 49 E keyboard and it has a Pitch Bend Wheel and a Modulation Wheel to the left of the keys. The volume control on the 48 e is all the way up. That is another problem I have is even when I push the volume up high in the arrangewindow more often than naught the loops don't seem strong like they do in the loop browser.
    But again, my main problem is a lack of strong staccato sound.
    Bill
    Message was edited by: William Furner1

  • Cursor in arrange window won't move when track is playing

    Hi,
    Can anyone help with this problem I'm having with Logic? I've been away from making tracks for a few weeks and now that I'm trying to use logic again I'm finding that cursor is not moving when I play a track, both in a new session and in old sessions. I am able to move the cursor by double clicking on the bottom part of the ruler but it doesn't scroll as it should during play. Is this a bug and do I need to reinstall logic or did I inadvertently set something to the wrong setting?
    thanks a lot for your help,
    Mike
    p.s. I am running logic 7.1 on an IMac G5

    The function you probably want is called Catch. Check out:
    Logic Pro > Preferences > Global
    There's a tab there (called Catch) that allows you to turn Catch off and on - check out the manual for detailed comments on the three options available.
    Also, on the Arrange Window there's a button in the top left corner - looks like a person walking. If that's grey, the Catch function is turned off. If blue, the Catch function will operate.
    Pete

  • Stereo Fader Missing in LPX Arrange Window

    I've imported a project from LP9 and noticed that there is no Stereo output fader in the arrange window in LPX, it was there in LP9..
    So I create a "new" audio track and LPX generated Ch 81 (my mixer has 80 channels).  I selected "reassign track" to "Output Stereo -->Output 1-2" but I needed to toggle the automation button to see the automation already on that track (from my LP9 session).
    When I go to the environment to delete the redundant Ch 81, the Stereo output fader / track  in the arrange window disappears again.
    I repeat the process, and this time I leave Ch 81 intact and save the session.  When I reload the session, the stereo output fader is GONE. The automation still works but I cannot edit or see it...
    Why does Logic X not display the output fader assigned in the mixer?

    I've imported a project from LP9 and noticed that there is no Stereo output fader in the arrange window in LPX, it was there in LP9..
    So I create a "new" audio track and LPX generated Ch 81 (my mixer has 80 channels).  I selected "reassign track" to "Output Stereo -->Output 1-2" but I needed to toggle the automation button to see the automation already on that track (from my LP9 session).
    When I go to the environment to delete the redundant Ch 81, the Stereo output fader / track  in the arrange window disappears again.
    I repeat the process, and this time I leave Ch 81 intact and save the session.  When I reload the session, the stereo output fader is GONE. The automation still works but I cannot edit or see it...
    Why does Logic X not display the output fader assigned in the mixer?

Maybe you are looking for