Two JSplitPanes sharing single JPanel...

Say I have JPanels 1,2 and 3. I want JPanel 1 on top with a splitPane dividing it and Panel 2. THen I want JPanel 2 and 3 to be divided w/ another JSplitPanel . I can't seem to get this to work. Here's a little pseudo of what I'm doing.
JPanel jp1,jp2,jp3.
JSplitPane jsp1,jsp2
jsp1 = new JSplitPane(Vertical, jp1, jp2);
jsp2 = new JSPlitPane(Vertical,jp2,jp3);
getContentPane().add(jsp2);
I'm not sure If It's a Layout Manager issue or if I'm just doing it wrong. I've tried this with GridLayout(2,1) and put both in, and default Manager just putting in jsp2. THanks for any help.

Say I have JPanels 1,2 and 3. I want JPanel 1 on top
with a splitPane dividing it and Panel 2. THen I want
JPanel 2 and 3 to be divided w/ another JSplitPanel .
I can't seem to get this to work. Here's a little
pseudo of what I'm doing.
JPanel jp1,jp2,jp3.
JSplitPane jsp1,jsp2
jsp1 = new JSplitPane(Vertical, jp1, jp2);
jsp2 = new JSPlitPane(Vertical,jp2,jp3);A component can only have one parent, but you are adding jp2 to both jsp1 and jsp2.
Change the above with
jsp1 = new JSplitPane(Vertical, jp2, jp3)
jsp2 = new JSplitPane(Vertical, jsp1, jp1)
getContentPane().add(jsp2)
I'm not sure If It's a Layout Manager issue or if I'm
just doing it wrong. I've tried this with
GridLayout(2,1) and put both in, and default Manager
just putting in jsp2. THanks for any help.No its not the layout manager.

Similar Messages

  • Trouble runnning Iphoto on two accounts on single computer

    I am having trouble runnning Iphoto on two accounts on single computer. It works on my admin account but when i change accounts it no longer see's the photos. I have given the correct path for the second iphoto to find. Please help.

    Jason
    Yes, but what's the path? No app can 'see' inside another User's folder.
    The recommended way to do this is to enable sharing in the Admin account iPhoto (preferences -> Sharing) and 'look for shared libraries' in the secondary account. Then leave iPhoto running and use Fast User Switching to the second account. The shared library will appear in the Source Pane of the second iPhoto.
    However, while the second user will be able to view the pics, and use them via drag and drop, he/she will not be able to modify them, keyword or import and have that work reflected in the Original library.
    If you want that kind of accessibility, move the iPhoto Library Folder to the Shared Folder, set the appropriate permissions and point both iPhotos to it. Or put the iPhoto Library Folder on an external HD and set it to ignore permissions (in the Get Info Window).
    However, this is not an intended use of iPhoto so beware. Only one user can open the library at a time, and there is a much increased likelihood database corruption. So, back up is vital.
    Regards
    TD

  • How do I stop two iphones sharing contacts?

    How can I stop two iphones sharing contacts and apps?

    Stop syncing them with the same address book or cloud service.

  • Measuring power at two different point (single phase)

    Hi all,
    I am new user of LabVIEW 2013 with electrical power suite.
    May i know how to measure two different point of single phase system using the same VI such as in DAQ power and energy example?
    As I notice that there are several type of wiring available. Is only one voltage and one current availabe during 1 ph voltage and 1 current selection. Thus, when I select 3ph voltage and 2 current, the value I obtain is not seem to be true.
    From the figure attached, I want to measure the voltage at current at the solar/PV  to obtain the power value. Other than that, I also need to measure the voltage and current at the load such as water heater. This is a single phase configuration network.
    (2 voltage and 2 current measurement at single phase)
    Hope for guidance.

    Hi Lewis,
    Here attached the file.
    Actually I wanted to measure power two different point in a single phase system as shown in the first attachement.
    Since, there is example in power quality measurement(DAQ) as shown in the second attachment.
    since there is two measuring point in my measurement. May i know how to obtain two measurement voltage at the same time in DAQ?
    Hope for guidance.
    Attachments:
    Two measuremernt point (single phase).png ‏7 KB
    power & energy measurement.jpg ‏172 KB

  • Run two Database in single server

    Hi...
    I want to run two database into single server. For that I had created one another database.
    But now I am not able to connect with two database at the same time.
    When I am going to connect to another database i have to shutdown the first one.
    Is it possible to connect and work on two database at the same time?
    Thanks
    pratik

    You should have a good enough to have two or more instances running on the same machine.
    The performance of a single instnace will always be better compared to having two or more instances on the same machine.
    Is it possible to connect and work on two database at the same time?Yes
    Here is an example
    $ ps -ef |grep pmon
    ora101AS 548928 1 0 Aug 06 - 0:31 ora_pmon_orcl
    ora102DB 552974 1 0 Aug 06 - 0:36 ora_pmon_TEST
    ora102DB 1380412 1 0 00:58:49 - 0:04 ora_pmon_LIVE
    testuser 1613946 1691868 0 10:46:11 pts/2 0:00 grep pmon
    Single machine having multiple instances
    $ ps -ef |grep pmon
    ora102DB 4086 1 0 Aug 06 - 1:39 ora_pmon_LIVE10
    testuser 32848 31172 0 10:46:24 pts/0 0:00 grep pmon
    Single machine having a single instance
    The second machine performance is much better compared to the first machine that has mutiple instances.
    Normally CREATE DATABASE is used by advance users while DBCA is relatively easy to use.
    Adith

  • Two button with single function

    I want to create two buttons for single function and one button for one function. For example, I click button1, the screen will show "clicked1"
    If I clicked button2, the screen will show "clicked2". If I click button1 and then click button2, it will show "two button are clicked". However, it does not work in two button with single function. What is the problem? Here is the code.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    if (isClicked&&isClicked1){
              trace("two buttons are clicked");

    It works but I want the screen only shows the "isClicked" only when I click button1. But now when I click button1, "isClicked" and "two buttons are clicked" show at the same time.
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var button1:MovieClip=new Button1();
    button1.x=200;
    button1.y=200;
    addChild(button1);
    var button2:MovieClip=new Button2();
    button2.x=300;
    button2.y=250;
    addChild(button2);
    var isClicked:Boolean;
    var isClicked1:Boolean;
    button1.addEventListener(MouseEvent.CLICK, onClick);
    button2.addEventListener(MouseEvent.CLICK, onClick2);
    button1.addEventListener(MouseEvent.CLICK, onClick3);
    button2.addEventListener(MouseEvent.CLICK, onClick3);
    function onClick(evt:MouseEvent):void{
              isClicked=true;
              trace("clicked1");
    function onClick2(evt:MouseEvent):void{
              isClicked1=true;
              trace("clicked2");
    function onClick3(evt:MouseEvent):void{
              trace("two buttons are clicked");

  • I have to print two labels using single XML file.Error:Only one top level e

    Hi,
    I have to print two labels using single XML file. But its giving error:
    [Error] Error -1072896683 - Line: 38 Pos: 2 Error: Only one top level element is allowed in an XML document.
    Below is my XMl file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE labels SYSTEM "label.dtd">
    <labels FORMAT="lib://FRD/PurchasedDoor.btw"  PRINTERNAME="IBM 6700-R80 (300 dpi)" _QUANTITY="1">
    <label>
    <variable name= "Color">AUTUMN</variable>
    <variable name= "Special_Message_Attribute">MSG*</variable>
    <variable name= "Special_Message">This is special Message Label</variable>
    <variable name= "Model"></variable>
    <variable name= "Build_Date">09-APR-12</variable>
    <variable name= "Assy_Cart"></variable>
    <variable name= "Assy_Slot"></variable>
    <variable name= "Finish_Cart"></variable>
    <variable name= "Finish_Slot"></variable>
    <variable name= "Serial_Number">1945.1.1.2-1</variable>
    <variable name= "Serial_Number_Barcode">1945.1.1.2-1</variable>
    <variable name= "Specie">BIRCH</variable>
    <variable name= "Truck_Group"></variable>
    <variable name= "Label_Sequence_No">1</variable>
    <variable name= "WIP_Cart"></variable>
    <variable name= "WIP_Slot"></variable>
    <variable name= "Cabinet_Sequence_No">110</variable>
    <variable name= "JC"></variable>
    <variable name= "Thickness"> </variable>
    <variable name= "Width"> </variable>
    <variable name= "Length"> </variable>
    <variable name= "Overlay"></variable>
    <variable name= "Options">B30</variable>
    <variable name= "Profile_No"></variable>
    <variable name= "Door_Style">NEWBERRY</variable>
    <variable name= "Glaze"></variable>
    <variable name= "Shape"></variable>
    <variable name= "Glass"></variable>
    <variable name= "Hinge_Side"></variable>
    <variable name= "Hinge_Type"></variable>
    <variable name= "EGE"></variable>
    </label>
    <labels FORMAT="lib://FRD/SpecialMessage.btw"  PRINTERNAME="IBM 6700-R80 (300 dpi)" _QUANTITY="1">
    <label>
    <variable name= "Serial_Number">1945.1.1.2-1</variable>
    <variable name= "Special_Message">This is special Message Label</variable>
    <variable name= "Cabinet_Sequence_No">110</variable>
    </label>
    </labels>
    Please suggest.

    >
    XML can only have one root element per file.
    >
    from XML Document: The Root Element

  • Two Home Sharing problems

    I've got two problems with home sharing on my iPad. With music, I can see and load my shared library from my iMac and I can start tracks playing. But if I switch to another app and then come back to the iPod app, 3 times out of 4 the iPod app quits and I have to start all over again. With videos, I can see my shared library and play the movies on the iPad, but only some of them play with sound. I've rebooted the iPad, iMac and router: reinstalled iTunes 10.2.1 and iOS 4.3: turned Home Sharing off and on again on both iMac and iPad: turned off the firewall. But still the same result. Anyone else having these problems? Anyone found a solution? Thanks.

    Harry
    You shouldn't need anything else. The common problems (after you have gotten past the authorization) for sharing are:
    - You copy over the .etd file instead of the .pdf file.
    - You copy over the .pdf file from /Digital Editions/ebx_backup instead of /Digital Editions. (My best guess, given the error message).
    - The file was purchased with only rights to view it on a single machine.
    The not so common and more worrisome case would be if the License was not being correctly written into the file after you purchase it.
    I would suggest that after verifying you are copying the correct file, you should open up a web support case, so that Bentley can track this, and help us gather all the correct information so we can figure out what is going on.
    Sorry you're having problems
    Jim Lester
    Adobe Systems

  • Using member sorting and grouping with two reports sharing rows

    Hi!
    I have a problem with one report and I need some help or advise here.
    I have two dimensions with dynamic expansion in rows (PRODUCT, MATERIAL), and I use the option Member Sorting and Grouping at Member selector to obtain the total amount of PRODUCT group by PARENTH1:
    PRODUCT               MATERIAL          AMOUNT
    TOTAL PROD_A-X                                   100
    PROD_A_A             MAT1                          22
    PROD_A_B             MAT1                          50
    PROD_A_A             MAT2                          28 
    TOTAL PROD_B-X                                   120
    PROD_B_A             MAT1                          30
    PROD_B_A             MAT2                          50
    PROD_B_B             MAT2                          40
    This works fine if I only have one report, but I need to create another one sharing the row and page axis with the Default Report, when I do that the option Member Sorting and Grouping doesn't work. I really need to have two reports with shared rows and also the summation by PARENTH1, how can I do that?
    Thank you very much

    Hi!
    I have a problem with one report and I need some help or advise here.
    I have two dimensions with dynamic expansion in rows (PRODUCT, MATERIAL), and I use the option Member Sorting and Grouping at Member selector to obtain the total amount of PRODUCT group by PARENTH1:
    PRODUCT               MATERIAL          AMOUNT
    TOTAL PROD_A-X                                   100
    PROD_A_A             MAT1                          22
    PROD_A_B             MAT1                          50
    PROD_A_A             MAT2                          28 
    TOTAL PROD_B-X                                   120
    PROD_B_A             MAT1                          30
    PROD_B_A             MAT2                          50
    PROD_B_B             MAT2                          40
    This works fine if I only have one report, but I need to create another one sharing the row and page axis with the Default Report, when I do that the option Member Sorting and Grouping doesn't work. I really need to have two reports with shared rows and also the summation by PARENTH1, how can I do that?
    Thank you very much

  • Merging two Queries in single crystal report lauout

    Hi All,
    I need to show two reports from two different BEx queries in a single crystal report layout. The queries are independent of each onther and having their selection variables. I have implemented two subreports for two queries in a main report. Now the problem i am facing is, though both the queries are having same slection(Profit Centre and Fiscal Per/Year), they are getting repeated in crystal report parameter screen. I have to enter the values for selections for each report.
    Is there any method to merge the selections for both reports if they are same, so that i can enter the selections only once?
    Thanks in Adv,
    Shubhramukta.

    Hi,
    I have two queries in BEx having Selections. Query 1 is having selections (Profit centre and Fiscal Per/Yr) and query 2 is having same selections as well(i.e. Profit centre and Fiscal Per/Yr). I have created two reports corresponding to these queries have used as subreports in a main report using Crystal report 2008. When i run the main Crystal report, it automatically prompts for values to be entered, as variables are set at BEx query level.
    Though both the reports are having same selection variables, crystal report asks to enter values two times , once for each report, and it is obvious.
    Parameters are Crystal parameters.
    Is there any method to merge the parameters,is selection variables are same, so that it will ask only once?
    Thanks

  • Upgrade to snowleopard and two computers sharing an external HD wireless

    Hi,
    I have recently upgraded to SnowLeopard, using a clean install. I therefore have to reinstall my itunes library, which is backed up via time machine.
    I now would like to transfer my timemachine backup to my SL itunes library. However, I would like to have the library on my external harddrive, which is attached to my airport extreme.
    For now I had transferred the itunes music folder form my timemachine backup to the external HD, and redirected my itunes library to that location.
    Although that works fine, I am not sure it was the best thing to do, and that it should be done differently to not get problems later on (i.e. importing new music). Any suggestions?
    Second question: We have ordered a second Mac for my partner. Will she be able to access the music folder on the external HD, if the new computer is authorized?
    Thanks for the help

    Noodlez,
    Using the external between computers will work the same way. Yes, you will be able to use aliases, just as described.
    One thin that has not yet been covered here is the issue of ownership and permissions. On any external, we can choose to have OS X "Ignore ownership on this volume." This is the recommendation that is most frequently made. You can, however, keep ownership and premissions in place in your scenario (two computers), provided your accounts on both machines have the same UID. If your accounts on both machines are the "initial" admin accounts created using the Setup Assistant, then they should both have a ID of "501." In other words, you should be good to go.
    As we create each subsequent account in OS X using System Preferences>Accounts, the new account gets an incremental UID, beginning with "502," then "503," etc. If you are using any type of secondary account with some UID other than "501," you will need to reconcile the accounts on the two machines, or use the "Ignore ownership.." option.
    Since you will be using this external drive with your portable MBP, you might want to consider one of the smaller form-factor drives. These drives are more expensive, especially when considering cost vs. capacity, but they are certainly more convenient to use with any portable. I have an 80 GB Firelite drive that is bus-powered, so I can carry just it (and it is very small) and a single cable. When needed, I simply plug it into my MBP, it spins up, mounts and shows up on my Desktop, and away I go.
    Scott

  • Sharing single iPhoto library between 2 users on a single computer

    Hello,
    I am currently using iPhoto 5 on a Mac Mini with 2 total users on the computer.
    I know that it is easy to share iPhoto pictures over a server with other computers, but does anyone know how to share a single library between 2 users on the same computer?
    I would like my wife and I to share a single library of pictures so that we can each upload pics from our digital camera of our family and friends and both have access to them. Currently, we each have to have separate libraries and it is difficult to share photos even between us. If this is not possible on iPhoto 5 or 6, this would be a great upgrade for the next version.
    By the way, I was able to work a similar problem out with music out so that all users share a single iTunes library of songs by placing the library in the "shared" folder, but this is not possible with the iPhoto library.
    Thanks for your help!
    Mac Mini - G4   Mac OS X (10.4.6)  

    Hi mconnor,
    Here are all the links I have for sharing an iPhoto Library.
    I think you would be interested in the ACL link for your situation. Hope it works for you.
    SHARING IPHOTO LIBRARIES
    Sharing libraries between users on the same local network
    You can also share a library on the same machine between users the same way.
    Sharing libraries between users on the same machine...
    -both users must have sharing enabled in their iPhoto Preferences
    -both users must be logged in and have iPhoto running
    -Remember that you can only view the other library. You can't edit the photos or play the saved slideshows or view the made books or burn them to CD or DVD. The books and slideshows will show up as an album. You can play that album as an "on the fly" slideshow. You can drag images from the sharing library to your library in the source column to import them to your library. You can then edit, add to albums, books, slideshow, etc.
    Sharing links from Apple....
    Sharing your photos between computers
    About shared photos
    Turning off photo sharing
    Looking for shared photos
    SHARING ONE IPHOTO LIBRARY BETWEEN USERS ON SAME MACHINE
    You can try one of these three methods:
    1- Use iPhoto Library Manager-the paid version
    The documentation page will give instructions on how it is done.
    2- Sharing one iPhoto library between several users on one machine
    3- Share an iPhoto Library in tiger Using ACL's
    4- I have also read about ShareAlike
    There is no other info on the site about how it works.
    I strongly urge anyone wanting to try any of the methods for sharing one iPhoto Library folder among more than one user to backup all iPhoto Library folders before attemptin anything.

  • Two iphones sharing one icloud with one Apple ID

    I know this type of question has been posted in the past but i couldn't find a specific answer for my situation.
    My wife and i share one Apple ID (AID), but we are wanting to have seperate ID's, we currently share one iCloud and have iTunes on a PC.
    I accept that i will have to download a load of Apps again onto her iphone but there weren't that many that we had to pay for most were free - so that point isn't really an issue.
    What i do want to do is back up her phone to include contacts, photos, etc to the current single icloud account. Her phone has been backed up to iTunes in the past but not iCloud.
    Is this something that can be done whilst still keeping both sets of Contacts, Photos etc seperate.
    Once it is backed up i'm going to create restore the phone and create a new AID and restore the Contacts etc from the original iCloud account - again is this the right way of doing this.
    Then finally i'll have to re-install the Apps, but hey ho at least once it's done its done.
    Any advice of guidance would be very much appreciated.

    You do not have to go through all that. You can keep your "itunes store" id the same and it will allow you to share apps, music etc. All you need to do is on your wife's phone delete (YOUR) icloud account. Even better if she didn't sign in yet. WHEN you delete that account you will see prompts that will ask you what do you want to keep on the phone and delete from the phone- choose accordingly. Once you out of your account, just sign in by creating new apple id for your wife. It is going to be new, her own icloud appleid.
    All of that has to be done on her phone in settings- icloud.
    And in Settings - itunes and app store you will share your old id, by that sharing apps and the stuff that you buy from store. You can also use her own id in facetime and imessage, allowing you guys to facetime each other, but you probably already do with phone numbers - so those changes are not necessary, unless you have problem now.

  • SAP Script need to display main window two times on single page.

    Hello Guru's,
    So here is my requirement, we need to print check. We are using F110_PRENUM_CHCK and linked with driver prog RFFOUS_C. We have Letter size paper with three sections,
    1. Check
    2. Voucher Section (containing table of element 515, 525 and 530) 515: Heading, 525 : Regup-Belnr, Regup-XBLNR, Regud-Wrbtr.
                                                                                    530: Regup-SGTXT
    3. Voucher Section (As a receipt for bank itself) : contains same data as 2nd section.
    I tried several things reading all the previous post over here in SDN.
    1. Created Z form created two instances of main window it results just single display of table (voucher section) in section two and not in third.
    2. I also tried pasting two times same code in single main window which gives only last item line for the table.
    3. Created z driver program made changes in Write_form added control form for element 515 that does results in showing element 515 on both the location.
                CALL FUNCTION 'CONTROL_FORM'
                  EXPORTING
                    command   = 'NEW-WINDOW'
                  EXCEPTIONS
                    unopened  = 1
                    unstarted = 2
                    OTHERS    = 3.
                CALL FUNCTION 'WRITE_FORM'
                  EXPORTING
                    element = '515'
                  EXCEPTIONS
                    window  = 1
                    element = 2.
    3. For Element 525 and element 530 is not acting same. In the prog 525 = hlp_ep_element. And there are many write_form for this. I tried pasting each and every place same kind of code. It doesnt work. what it do it gives me three pages of output repeating every thing twice and weirdly.
    I am need this to be done as I already took so much time solving nothing is working.
    Please give me the exact location where to paste this code so I can have two times data of main window.
    Or is there any other way to do this....Any way will be good for me as long as it shows two times data in the form.
    The data is table.

    Hi Manju,
    I create a new window (no main) but does not run, please can you tell me what should I do to make it work.
    Best regards.
    Robert.

  • Two Accounts sharing iPhoto library - iPod access rights error solution

    I followed the advice given in http://support.apple.com/kb/HT1198 to share a single iPhoto library on an external drive between two users. It worked well.
    ...until both my wife and I tried to connect iPods while in our individual logins and attempted to sync photos from an album in iPhoto.
    Mine worked, but my wife's responded with, "The iPod "name" cannot be synced. You do not have enough access privileges for this operation."
    Having seen this thread;
    http://discussions.apple.com/thread.jspa?messageID=4872555&#4872555
    I realized that the iPod iPhoto cache, made visible by right-clicking the iPhoto Library and Showing Package Contents, was specific to my iTunes library and not my wife's. I could sync photos, but my wife could not.
    I copied the iPhoto cache to a folder with my name on it, deleted the iPod iPhoto cache, and started iTunes under my wife's login. After setting the album she wanted to import, her photos synced without error.
    Then I copied the iPod iPhoto cache to a folder with my wife's name.
    I leave set to work for her and then I swap out her iPod iPhoto Cache and copy in my when I want to add new photos. In the meantime I deselect iPhoto sync in my iTunes until such time as I want to alter the image collection on my iPod.
    I tried to make an animator script, but didn't have much success with the cache being package content.

    I copied the iPhoto cache to a folder with my name on it, deleted the iPod iPhoto cache, and started iTunes under my wife's login. After setting the album she wanted to import, her photos synced without error.
    should have said..
    I copied the iPod iPhoto cache to a folder with my name on it, deleted the iPod iPhoto cache, and started iTunes under my wife's login. After setting the album she wanted to import, her photos synced without error.

Maybe you are looking for

  • Wlc with redirect-acl

                       Hi, I'm using ISE and I want to redirect https traffics to one web-page. so I used cisco-av-pair = url-redirect=test123 also, test123 is existed in WLC with deny https any deny any https permit ip any any however, it does not redir

  • Adobe CS5 Trial Install Problem

    I have tried to install the Adobe Photoshop CS5 trial, but it always comes up with this error, and says Photoshop failed to install, even after reaching 100%. Here are my specs: Windows XP Home Edition Service Pack 3         Enclosure Type: Desktop 2

  • Can I add intel chip to ibook G4?

    Can I add an intel chip to my ibook G4?

  • How can I still view my message details on a closed business account?

    How can I view my call logs and message details on my business account that I recently closed because I sold the business. I kept two of the lines from there and put them into a personal account with verizon but I need to access prior call logs and m

  • APple TV 2 will not accept my Itunes Password

    Since the recent upgrades I have not been able to get YouTube on my Apple TV2. A couple of days ago, I therefore reverted to Factory settings hoping that it would right itself when everything was reinstalled. Still can't get Youtube but worse than th