Two, Three, Four, Five, ..... n Number of Toolbars

Hi,
I am new to Java and recently, I experimented with adding more than 1 Toolbars to my GUI using swing. I was using a GridBag layout. I specified both the toolbars to be positioned in the North of the screen but when running the application, one toolbar overtook the place of the other toolbar (overlapped you can say). If i specify 1 toolbar to North and the other to East, then both can appear but I am not able to move the toolbar on the EAST side to float to the NORTH. It simply won't budge to that direction. However, I can move it to other positions on the screen.
Now, It may be that the issue revolves around the layout that i have chosen. But since i am new to Java, i need some clarification. Therefore my question is:
"Is it possible to do such a thing using Grid bag layout or do i have to choose another alternative. & If it is possible, how do i come around with an answer to it ?"
Regards,
Omar Khan

Hi Omar,
Try using this code..
JToolBar jtb = new JToolBar();
JToolBar jtb1 = new JToolBar();
//u'r code goed here
JPanel panel =new JPanel(new GridLayout(2,1));
panel.add(jtb);
panel.add(jtb1);
// u'r code gere
getContentPane().setLayout(new BorderLayout());
getContentPane().add(yourTextPane, BorderLayout.CENTER);
getContentPane().add(panel, BorderLayout.NORTH);
cheers
Mohan

Similar Messages

  • Which Architecture of the deployed application (two/ three/ four tier)?

    Hi iam subbu
      iam using in the server windows 2003  Oracle Application Server 10g Relase2(10.1.2.0.2),Database is Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    in client machine we accessing the  url primary server formweb.config .may i know how would i know which architecture deployed the application help for this.
    thanks,

    Webforms such as Forms 10g and onward use a 3 Tier architecture: https://en.wikipedia.org/wiki/Multitier_architecture#Three-tier_architecture
    cheers

  • I have registered Adobe CS, and every two/three weeks i get a message that I am using a trial version.  I provide my registration key, and the fun starts over in two/three weeks.  What is going on?

    I have registered Adobe CS, and every two/three weeks i get a message that I am using a trial version.  I provide my registration key, and the fun starts over in two/three weeks.  What is going on?

    I'm not sure what's happening. See if you can get some help from Web Chat here:
    Serial number and activation support

  • Installing adobe photoshop on two of my five computers.

    How can I install photoshop programs on at least two of my five computers?

    Just do it.  Have you tried and had a problem?  If so, explain what happened.  You can actually install on as many machines as you like.  The limit (of 2) is on the number of installations that you can have activated at any one time.

  • Is it possible to gater three data in one number ranger (Ecc - CRM)

    Hi, all.
    Now, we plan to gather three data types in CRM
    : employee in HR, students in CM, BP(Gen.) in CRM
    In other words, we want to dowload two data types from ECC to CRM
    and to save BP in one number range in CRM .
    Then we want to save the three data in one number range in CRM, for employee.
    Is this possilbe?
    If it is possible, do I implement something special?
    Regards,
    Han Kyu

    Han,
    It appears you can control the number range for replication of the employee record when using ALE.  Now the here are the limitations for your scenario to work:
    - You must use an internal number range that is either the default internal range, or explicit configure a grouping to be used.  By default the system will download into the default grouping.
    If your goal is for all partners to exist in one grouping called ZALL.
    Then ZALL needs to be assigned an internal number range and marked as the standard internal number range for all CRM business partners.
    Once this is done, then your employee download will use this ZALL grouping, you then will want to "hide" all the non-standard groupings for creation in CRM.
    Your CM application then needs to replicate it's business partners to your ZALL grouping.
    Take care,
    Stephen

  • Agent Maya Series Issues Two Through Four

     
    Issues Two through Four available now, $1.99 each, full color, 24 pages (Two) 25 pages (Three and Four). Ten page previews here:
    http://www.lulu.com/shop/erik-kreffel/maya-and-the-vestal-doll/ebook/product-22208637.html
    http://www.lulu.com/shop/erik-kreffel/maya-and-the-clash-on-titan/ebook/product-22208657.html
    http://www.lulu.com/shop/erik-kreffel/maya-and-the-don-of-venus/ebook/product-22208696.html
    2155-56. Humanity has spread across the vast reaches of the Solar System, exploring, colonizing, mining and traversing its eight major planets and the zones therein. Despite this grand adventure, humans are just as criminal, and that's where the InterPlantery Tax Police, the IPTP,—represented by Agent Maya—enter. When crime syndicates, outer moons terrorist fronts and egregious corporations bent on chaos and conquest cause trouble, it's the little things that matter to bring them all to justice; because somebody's got to make them pay their taxes!

    This is a follow up post after 6 months of use on the Kanex iAdapt 51.
    This product is a piece of junk. It no longer stays connected to my computer. It loses the signal and stops working after a few minutes no matter if I am booting the computer or waking it from sleep.
    I'm pretty computer savvy and after screwing around with all of the settings on the TV and computer, nothing worked. I have determined that it is fact the Kanex connection. I'm pretty sure the product has degraded to the point of not working at all now.
    I would suggest not buying this product.
    After attempting to working with Kanex, I found out that none of their contact forms or emails work so you can forget any support help too.
    I am going to order the NewerTech version that offers the exact same connection:
    http://www.newertech.com/products/tcblmdphdmid.php
    I'll post back to this thread once I figure out how it works.

  • Dual/double side vpc--- three/four side VPC

    customer want layer2 connect to two data center.
    is there any possible to use three/four "side" VPC and form a loop free architecture for this two data center?
    thank you!
    tom

    we design a new data center, want to use vpc across two data center, so double side VPC is not a method , we need 4 layer "side" VPC, is this design good or is there any problem, is it possible?
    thank you!
    Jeremy

  • After formatting iPod to NTFS and restoring back with iTunes, the player works for two-three weeks and crashes afterward. It then requests to restore it through iTunes.

    After reformatting iPod to NTFS and restoring back with iTunes, the player works for two-three weeks and crashes afterward. It then requests to restore it through iTunes. When connected to iTunes, it sees it in the restore mode and also asks to restore the iPod. It happens over and over for the last months. What could be the problem?
    iPod Classic 80Gig.
    Thanks in advance.

    Dear planb77
    Thanks for a reply. iPod does not support ntfs - you're right. that means it will never work on that. While restoring ipod using iTunes, itunes reformats it no matter what filesystem is there. So the issue is not that. ipod is now on fat32 and it works for a certain period of time, but then crashes and asks to restore through itunes. Resetting/restarting does not help.

  • String[] sa = {"one", "two", "three"} with other types, too?

    String[] sa = {"one", "two", "three"}
    is a nice abbreviation in instantiating an object and initialize with multiple elements in one line of code.
    are there similar syntax abbreviations for e.g. HashSet?
                    HashSet hs = new HashSet();
                    hs.add("one");
                    hs.add("two");
                    hs.add("three");is not very handy ... (especially for much more elements than 3!)

    >                 HashSet hs = new HashSet();
    hs.add("one");
    hs.add("two");
    hs.add("three");is not very handy ... (especially for much more
    elements than 3!)Yes, that might not be very handy. But if you have many elements, String[] sa = {"one", "two", "three"} won't be very handy either. Anyway, initialising collection with large numbers of hard-coded items isn't something you do very often.
    If you absolutely want to write it in one line in your editor, just do so:
    HashSet hs = new HashSet();hs.add("one"); hs.add("two");hs.add("three");

  • Two idocs with same idoc number in idx5

    We are using an idoc to file scenario where idocs are bundled using bpm and posted to ftp. here the issue is we are getting two idocs with same idoc number in idx5. due to which the file in ftp is getting overwritten.
    Could anyone suggest me what to do in this regard.

    Hi,
    >>>check your sender system is sending same IDoc twice ?
    if you send the same IDOC twice they both get different numbers as IDOC number is taken from the IDOC num range
    unless you're able to send the same IDOC twice with the same IDOC num somehow
    Regards,
    Michal Krawczyk

  • The accursed little dark gray ball with white in the center and white arrows, either two or four, which seize control of the screen and move the text or pictures up, down, left, right and can be stopped only by finding the ball and clicking it. I want to

    The accursed little dark gray ball with white in the center and white arrows, either two or four, which seize control of the screen and move the text or pictures up, down, left, right and can be stopped only by finding the ball and clicking it. I want to stop the thing permanently. Firefox 3.6 and 3.64
    == This happened ==
    Every time Firefox opened
    == with 3.60

    The accursed little dark gray ball with white in the center and white arrows, either two or four, which seize control of the screen and move the text or pictures up, down, left, right and can be stopped only by finding the ball and clicking it. I want to stop the thing permanently. Firefox 3.6 and 3.64
    == This happened ==
    Every time Firefox opened
    == with 3.60

  • Once a download a two three applications restart is advisable or not

    Once a download a two three applications restart is advisable or not

    You can Restart or Reset anytime you like.  Neither will hurt the phone or remove any data or settings.
    If an app is not functioning properly after downloading and installing, perform a Reset... press the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.

  • HT201365 How can I change my four digit passcode number

    I would like to change my four digit passcode number how can I do this

    settings - general -passcode-change passcode.

  • Apple TV stops two to four times a movie.

    I have three gen3 apple tv's I have use two different internet providers and in two different locations and my apple tv's stop three or four times a movie. It stops with an iTunes is not available at this time message. My firmware it up to date I have a dual band wireless router the best I could find. And it still happens what can I do to prevent this I don't watch my apple tv sometimes because this is very irritating.
    Has someone had and solved this problem.

    "iTunes is not available at this time message": Is this because you are using a Home Sharing setting in iTunes or are you using the Apple TV by itself.
    Are the films downloaded or are they streaming?

  • I have two sets of bookmarks, one under "Bookmarks Toolbar" and one under "Bookmarjs Menu," and they are not totally similar. What's going on?

    I use Bookmarks toolbar. When I want to save a site, the browser asks which folder to place it in; however I have two somewhat different sets of bookmarks that Firefox stores, and I'm never sure which set is the one being saved to. I have only one profile, checked that. Firefox 4.0 is an upgrade from 3.6.16.

    * The Bookmarks Toolbar folder stores the bookmarks that you see on the (View > Toolbars >) Bookmarks Toolbar.
    * The Bookmarks Menu folder stores bookmarks that you see in the Bookmarks menu and create via "Bookmarks > Bookmark This Page" or "Bookmark This Link" in the right click context menu.
    * The Unsorted Bookmarks folder stores that bookmarks that are created by clicking the star at the right end of the location bar.
    Clicking the star in the location bar will bookmark the page in the "Unsorted Bookmarks" folder and the star turns yellow (blue on Mac) to show that.<br />
    Bookmarks > "Bookmark This Page" (Ctrl+D or use Alt+B) will bookmark the page in the Bookmarks Menu folder (you need to confirm that).

Maybe you are looking for