Container hirearchy for splitting screen into two parts.

I have the following requirement.
I need a screen split in two parts. The left part will always contain a tree menu (JTree) and the right part will be loaded according to the node selected in the left part of the screen (i.e. JTree). I understand that I have to use JSplitPane for dividing the screen and the top level container should be JFrame. But I am not sure of the container hirearchy for both the JTree and the right part of the screen.
regards,
nirvan

Based on that very limited description I would guess -
-- in the left part, a JScrollPane containing a JTree
-- in the right part, a JPanel with CardLayout, containing other JPanels with appropriate layouts and content. Or if the content is larger than the screen space available, you mat need to enclose the CardLayout panel in a JScrollPane too.
db

Similar Messages

  • How to split currency into two parts at dot

    Hi,
    I am working in ECC6.0.
    how can I split a currency field into two parts split at dot ( . )
    I cannot use SPLIT AT  for currency field. All FMs I found does not works for currency.
    Reagrds,
    Divya

    DId u check G_DECIMAL_PLACES_GET ?
    You can use this FM to find the decimal places in the currency .

  • Split float into two parts

    I have the following code to split a float number into 2 parts (as integer):
         float f = 1.2345f;
    String s = String.valueOf(f);
         int indexOfPoint = s.indexOf(46);
         String si = s.substring(0, indexOfPoint);
         String sf = s.substring(indexOfPoint+1,s.length());
         int intPart = Integer.valueOf(si).intValue();
         int fracPart = Integer.valueOf(sf).intValue();
    But this won't do if the float is in scientific notation, the last last line will return a java.lang.NumberFormatException. Can anyone help me? Thank you very much.

    I'd advise doing the split between fractions and integers mathematically, rather than through string manipulation.
    OTOH if the split is purely for display purposes, perhaps using java.text.DecimalFormat would help.

  • How to split  the records into two parts

    Hi experts,
    I have a field with 75 char length, this field have records also, Now i want to split the field into two differnt fields. That means upto first 40 char goes to one field, from 41st char to 70 char goes to another field, for that how to split record into two parts.
    Plz advice this,
    Mohana

    Hi,
    Do the following:
    f1 = fsource(40).
    f2 = fsource+40(30).
    where fsource is the 70 character original string and target strings are f1 (length 40) and f2 (length 30).
    Cheers,
    Aditya
    Edited by: Aditya Laud on Feb 22, 2008 2:10 AM

  • Split String into two

    HI,
    How to Split String into two parts at delimiter

    HI,
    REPORT ZSTRING.
    DATA: LENGTH TYPE I,    
          REMAINING_LENGTH TYPE I ,   
          NEXT_POINTER TYPE I    ,   
          FIRST_HALF(20)  TYPE C ,    
          SECOND_HALF(20) TYPE C ,    
          TEMP TYPE I .
    PARAMETER: WORD(35) TYPE C . "INPUT WORD
    START-OF-SELECTION.
    LENGTH = STRLEN( WORD ).      "Length of the input String
    SEARCH WORD FOR '/'.
        IF SY-SUBRC = 0 .  
          IF SY-FDPOS > 0.   
          MOVE WORD+0(SY-FDPOS) TO FIRST_HALF.  
          ENDIF.  
       TEMP = SY-FDPOS + 1. 
       IF TEMP <> LENGTH.    
       NEXT_POINTER = SY-FDPOS + 1.    
       REMAINING_LENGTH = ( LENGTH - SY-FDPOS ) - 1.    
       MOVE WORD+NEXT_POINTER(REMAINING_LENGTH) TO SECOND_HALF.  
       ENDIF.
    ENDIF.
    WRITE:/'Input String:', WORD .
    WRITE:/'First  Half:', FIRST_HALF.
    WRITE:/'Second Half:', SECOND_HALF.
    *-- End of Program
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • How do I save a long video clip which I've split into two parts; save it as two seperate clips?

    I've split a video about 25 minutes into two parts; now how do I save the parts separately (as two different clips)?

    smwproductions
    What version of Premiere Elements and on what computer operating system is it running?
    Do you want to export these two clips from the same Timeline? If so, you can selectively export them.
    Two critical details for this...
    a. Set the gray tabs of the Work Area Bar to span just the segment that you want to export
    and
    b. Have a check mark next to the option Share Work Area Bar Only in the export settings. Not all export
    choices have this option. But, it is a must have for this select exporting.
    You can set the gray tabs of the Work Area Bar with keyboard shortcuts...
    Move the Timeline Indicator to the beginning of the segment to be exported. Then as you hold down the
    Alt key of the computer keyboard, hit the left bracket key [
    Move the Timeline Indicator to the end of the segment to be exported. Then as you hold down the
    Alt key of the computer keyboard, hit the right bracket key ]
    The following is a quick look at the gray tabs and the Work Area Bar to which I am referring.
    This screenshot is from a Premiere Elements version earlier than 11, but it conveys the concept of gray tabs and
    Work Area Bar in the Edit area as well as the option Share Work Area Bar Only in the export settings.
    Please le me know if you have any questions or need clarification on any of the above.
    Thank you.
    ATR
    Add On...I am strictly an Elements Windows user. The same principles should hold for Premiere Elements Mac.
    Not sure how the Alt will translate for match in this keyboard shortcut - Option or something else?

  • Please help, I am trying to split a HD mp4 video into two parts using Quicktime 10.2

    Please help, I am trying to split a HD mp4 video into two parts using Quicktime 10.2, running Mountain Lion. I use trim then export but it doesn't give the movie option as a format. What would you suggest i do?

    I'm not sure why you're using a FAT32 drive, but using ExFAT instead of FAT32 would be a better overall choice as it doesn't have the 4 Gig limit.
    http://www.tech-recipes.com/rx/2801/exfat_versus_fat32_versus_ntfs/

  • Ksh. Integer value splitted into two parts

    Hi ,
    I have code like below in my Ksh script, and getting the sample_id value as '2003 15588' instead of '200315588'
    I'm using this sample_id to run an oracle report. Any help on why the value is getting splitted into two parts like 2003 15588.
    if (( CHECKS == 0 )) || (( CHECKS == 1 ))
    then
    V_SAMPLE_ID=$( $ORACLE_HOME/bin/sqlplus -S / <<EOF
    whenever sqlerror exit 1 rollback;
    whenever oserror exit 1 rollback;
    --Set up pagesize parameters.
    set newpage 0;
    set space 0;
    set echo off;
    set pagesize 0;
    set heading off;
    set verify off;
    set feedback off;
    set trimspool off;
    set termout on;
    set colsep "";
    set linesize 5;
    select substr(SAMPLE_ID,1,15) from sample_m
    where NAME=$MFGLBL and TVALUE=$C_SAMPLE;
    exit;
    EOF
    v_count=$?
    print "V_SAMPLE_ID: $V_SAMPLE_ID" >> $LOG_FILE
    fi
    Pls help . thanks.

    Here the actual outputs,
    from SqlPlus,
    SQL> select substr(SAMPLE_ID,1,15) from nais_sample_attributes where NAME='MFG LABEL NUMBER' and te
    xt_value ='9300141751';
    SUBSTR(SAMPLE_I
    200315588
    used the same query in the script , only difference is name and text_value are
    passing as variables.
    from script log file,
    /app/oracle/product/dev6i/bin/rwrun60 /app//reports/105.rep /@DB18 BATCH=YES DESTYPE=PRINTER DESNAME=nullprinter DESFORMAT=PDF P_SAMPLE_ID=20031 5588
    in the script , when i tried ,
    substr(SAMPLE_ID,1,5 ) it returns 20031 and
    substr(SAMPLE_ID,1,6) it returns 20031 5.

  • Split records into two files based on lookup table

    Hi,
    I'm new to ODI and want to know on how I could split records into two files based on a value in one of the columns in the table.
    Example:
    Table:
    my columns are
    account name country
    100 USA
    200 USA
    300 UK
    200 AUS
    So from the 4 records I maintain list of countries in a lookup file and split the records into 2 different files based on values in the file...
    Say I have records AUS and UK in my lookup file...
    So my ODI routine should send all records with country into file1 and rest to file2.
    So from above records
    File1:
    300 UK
    200 AUS
    File2:
    100 USA
    200 USA
    Can you help me how to achieve this?
    Thanks,
    Sam

    1. where and how do i create filter to restrict countries? In source or target? Should I include some kind of filter operator in interface.
    You need to have the Filter on the Source side so that we can filter records accordingly the capture the same in the File. To have a Filter . In the source data store click and drag the column outside the data store and you will have Cone shaped icon and now you can click and type the Filter.
    Please look into this link for ODI Documentation -http://www.oracle.com/technetwork/middleware/data-integrator/documentation/index.html
    Also look into this Getting started guide - http://download.oracle.com/docs/cd/E15985_01/doc.10136/getstart/GSETL.pdf . You can find information as how to create Filter in this guide.
    2. If I have include multipe countries like (USA,CANADA,UK) to go to one file and rest to another file; Can I use some kind of lookup file...? Instead of modifying filter inside interface...Can i Update entries in the file?
    there are two ways of handling your situation.
    Solution 1.
    1. Create Variable Country_Variable
    2. Create a Filter in the Source datastore in the First Interface ( SOURCE.COLUMN = #Country_Variable)
    3. Create a new Package Country File Unload
    4. Call the Variable in Country_Variable in Set Mode and provide the Country (USA )
    5. Next call the First Interface
    6. Next call the Second Interface where the Filter condition will be ( SOURCE.COLUMN ! = #Country_Variable )
    7. Now run the package .
    Solution 2.
    If you need a solution to handle through Filer.
    1. Use this Method (http://odiexperts.com/how-to-refresh-odi-variables-from-file-%E2%80%93-part-1-%E2%80%93-just-one-value ) to call the File where you wish to create store the country name into the variable Country_Variable
    2. Pretty much the same Create a Filter in the Source datastore in the First Interface ( SOURCE.COLUMN = #Country_Variable)
    3.Create a new Package Country File Unload
    4.Next call the Second Interface where the Filter condition will be ( SOURCE.COLUMN ! = #Country_Variable )
    5. Now run the package .
    Now through this way using File you can control the File.
    Please try and let us know , if you need any other help.

  • Album download relabels itself and splits itself into two separate album folders

    I have purchased and downloaded an album from a reputable and legal independent website that I have successfully used in the past, but the album folder seems to have a glitch.
    When I download the album it labels itself "Standard" instead of by the name of the album title, like it usually does.  Then when I add it to my iTunes library, it relabels itself to the album name and subsequently splits itself into two separate album folders.  9 random tracks located in one folder, 13 in the other.  The only difference between the labels of the two album folders is that one has an underscore at the end of it.  I have exhausted all my trouble shooting tricks like ensuring all the common metadata is the same (artist, album, sorting, grouping, genre, playlist etc) and deleting and re-downloading, and subsequently copying and pasting files into the correct place but the same thing keeps happening. 
    I have downloaded all the latest software updates on my iMac 10.10.1 and use OS X Yosemite.  I have tried clearing my cache, cookies and webpage history and then downloading again using a completely different browser without success.  I've even tried dragging and dropping files from one folder into the other, again without success.  I would be grateful for any expert advice.

    It's a bug that has been there for years.
    There are workarounds, but you have to do them every time an album gets split. And that will happen every time you change an artist name or an album name (whether it's to change it to proper capitalization, or other reasons). There is no permanent solution.
    Workaround #1:
    1. Select all the tracks from the album
    2. Right click and select "Get Info"
    3. Change the album name by deleting, let's say, the last letter and press "OK"
    4. Change the album name back.
    Workaround #2:
    1. Select all the tracks from the album
    2. Right click and select "Get Info"
    3. Change the artist name by deleting, let's say, the last letter and press "OK"
    4. Change the artist name back.
    Workaround #3:
    1. Select all the tracks from the album
    2. Right click and select "Get Info"
    3. Go to "Options"
    4. Check (or uncheck, if it's already check) the "Part of a compilation" box and press "OK"
    P.S. Some smart person moved this thread from the "iTunes U" forum to the "iTunes for Mac" forum. But the OP clearly said he runs iTunes on Windows.

  • Split string into two based on end of word and max length

    I have the following procedure, which is passed a comma separated string as it input, and it has to split it into two, and the split has to occur at the end of a word, and the first split part can't be more than 15 in length.
    Is there an more efficient way of achieving this? I have a loop in my main code that calls this procedure and in effect a nested loop has been created here.
    e.g. Hello, everyone, welcome, to, split, string' would be split into 'Hello' and 'everyone, welcome, to, split, string'
    create or replace procedure split_str
                   (pi_str  in  varchar2,
                    po_str1 out nocopy varchar2,
                    po_str2 out nocopy varchar2) is
      i number;
    begin
      if (len(pi_str) <= 15) then
        po_str1 := pi_str;
        po_str2 := NULL;
      else
        i := 1;
        loop
          exit when len(SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1)) > 15;
          po_str1 := SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1);
          po_str2 := SUBSTR(pi_str, INSTR(pi_str, ',', 1, i)+2);
          i := i+1;
        end loop;
      end if;
    end split_str; 

    You want to find the last space character before the 15th character.
    x := INSTR ( SUBSTR ( pi_str, 1, 15) , ' ' , -1)Then the first string is SUBSTR(pi_str,1,x) and the second string is SUBSTR(pi_str,x+1)

  • I have a split screen with two site. All the suggestions are not working.

    Everytime I load Firefox, I get a split screen with two sites on it.
    I have tried the resetting of home page and clicking off the icon to not show the site selection page.
    I have facebook on the left and it cannot be expanded bigger than a panel. I have a 3/4 screen of what ever web site I wanted to load.
    How do I turn this off?
    Nothing is working and I cannot imagine how it happened.

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.
    Opening in the sidebar is the default for bookmarks that are created via a link or button on a website.<br />
    You can check the Properties of a bookmark via the right-click context menu in the sidebar (Ctrl+B; Cmd+B on Mac).<br />
    In the Bookmarks Manager (Bookmarks > Show All Bookmarks) you can click the More button in the Details pane at the bottom right.<br />
    Make sure that "Load this bookmark in the sidebar" is not selected.<br />

  • Dividing Genrated PDF no  of  pages into two parts

    Dear Friends,
    I have requirement in which i need to divide total number output pdf pages into two parts.
    E.g. If there are 10 pages Then   10 / 2 = 5
    Before generation of pdf file from smartform it automatically divide by 2 and then show these files.
    How to do this?
    Thanks & Regards,
    Ravi Grover

    Hi Rob,
    when you call the function module of the smartform you have the output parameter:
    DOCUMENT_OUTPUT_INFO-TDFPAGES
    It is the number of pages of the smartform.
    Then... you can call the funtion module of smartform two times  :
    1rst with the input field OUTPUT_OPTIONS-TDPAGESLCT from 1 to number of pages / 2
    2nd  with the input field OUTPUT_OPTIONS-TDPAGESLCT from  number of pages / 2 to number of pages
    And generate both pdf.
    Bye!

  • I would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??, i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??

    i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??, i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??

    Go to the Project Library View and select your project.
    Then FILE/DUPLICATE PROJECT and give the duplicate a name like "your name - part 1".
    Then duplicate it again and give the duplicate a name like "your name - part 2"
    Now you can open "part 1" as a project and delete everything that is in part 2.
    Open "part 2" as a project and delete everything that is in part 1.

  • How to do a locked split-screen between two different video tracks

    I'm creating two time-lapse videos and then I'm planning to to play them side-by-side in one sequence.
    The way I was planning to do this was to scoot one video track over using the "center" tool in the motion panel, and then crop it on its right-hand edge to reveal the other video track beneath.
    The problem with doing this however is that, as the camera gets bumped or moved slightly as the months go on, and I then have to cut and reposition the "center" location for the clip, I have to then adjust the amount of crop on that video clip since I've moved its position. This means the center split-screen location keeps changing as I move the video around.
    Is there a way where I can just lock the split screen smack in the middle of the frame as I tinker with each side of the frame (video track) independently? I tried adding a split-screen transition in the very beginning to the top track, but I can't make cuts on a transition to then adjust the motion attributes.
    Any ideas on how to simplify this process would really be appreciated. Originally, I thought there was no easier way to do this, but I was so blown away by all the answers to my motion effects question today (and all the things I never knew about FCP) that I thought it wouldn't hurt to see if someone out there had one more ace up their sleeve. If not, I'll assume this is one of those things that can't be simplified anymore than what I'm doing.
    Thanks again guys,
    Chris

    Though David's Motion Tracking suggestion would eliminate alot of later finagling, you could try something similar to Reink's, without using Photoshop.
    Try this...
    1. In a seperate timeline, drop a Matte/Color Solid into the new timeline (using dropdown at bottom right of Viewer window).
    2. Dbl-click the color solid, click on Controls tab and set Parameters as H/0, S/0, B/100. Then click the Motion tab/Crop Right-50.
    3. Click the Viewer's Video tab and go to Export/QTConversion/Still Image (png) and name it something like WhiteMatte_CropR50.
    4. Import that into your project.
    5. Now with your two timelapse clips on V1 and V2 with in/out points at head/tails and both tracks highlighted...'Nest' the sequence...Main Menu/Sequence/Nest Item(s).
    6. Next, with the nested sequence active (single clip will look light purple)...option-double click on it and and drop an Image Mask Filter on it, then drag the WhiteMatte.png clip into the 'image well' (little box that has a question mark in it). Keep the channel on Luminance.
    7. Now, if you dbl-click the nest, it will open it's host sequence, that you can do your 'Motion Tab/Centering' on, without affecting the 50% split down the middle.
    May seem like alot of work, but it's not really.
    K
    p.s...there are probably other ways to do this as well.

Maybe you are looking for

  • Date Expression in SSRS

    I have a query in MS SQL database which i want to create a report with that but the report should use a date chosen by the user. Now my problem is when the user chooses today's date, I want the query to select yesterday date and match it with date fr

  • Problem in using ErrorHandler interface

    Hi , I have a problem with Errorhandler interface.I use errorhandler class to handle the errors/warnings while parsing an XML file.Incase of an error,a JOptionPane pane is displayed to get user confirmation.If there is only one error while parsing my

  • Display not scrolling during recording

    I'm using the latest version of Audition CC2014, and have just noticed that during recording, the waveform created under the playhead (in the waveform editor) as the playhead moves left to right doesn't scroll.  I have playback preferences set to aut

  • Looking for team development best practices

    We are new to Flex and have a team of five developers with JEE background. My question is how to best organize a flex project, so it's efficient for everyone to work together. Coming from typical JEE Web application development, it's quite straightfo

  • How to set Focus on a Cell in a Table

    I have a column for which i set the table editor in the following way : DateTextField contractStarts = new DateTextField(); itemTable.getColumnModel().getColumn(9).setCellEditor(new DefaultCellEditor(contractStarts); When the focus is brought to a ce