Multiple view of contentPane of a JFrame

Hello,
I want to make a java program like Windows Explorer. I want to make it like "MDI" (Multiple document interface) like Windows Explorer so that users can drag files/folders from one window to the others.
When I create the second, third, etc windows, I set the contentPane of the new window by the contentPane of the first windows.
this.setContentPane(fileManager.getContentPane());
The problem is only the last window can show the contentPane. When I open a newer window, then the contentPane on the older window disappreared.
Please help me with this.
Thank you,

A component can only belong to one parent component. So adding the content to a new window will automatically remove it from the old window. You will have to create a new content pane for each new window.

Similar Messages

  • How can I have multiple views for my question

    When I posed a question on a forum, it indicates that I have one (1) view. How can I have multiple views on the same question?

    I believe the number you are looking at is the number of times a particular thread has been looked at (viewed) by different users. When someone else opens your question, the view count should increase.
    Justin

  • Passing one parameter to multiple views

    Is this possible?  I would like to pass one parameter, a date field, to multiple views.  I cannot use it in the record selection, because my views do a mathematical computation which returns a single value, but I only want to select the data for a single day. 
    The problem is that there are several views and I do not want to have to enter the date parameter a dozen times.

    Try to use add command and write the query like this
    select * from view where datefield={?date}
    also create another add command for the other view
    select * from view2 where datefield2={?date}
    for all the queries create the same parameter with the name {?date}
    Regards,
    Raghavendra

  • Can Numbers Display Multiple Views of the Same Table

    Hi,
    Excel and Appleworks both have a pull down tab on the vertical bar allowing multiple views into the same spreadsheet (table). Can Numbers do this?
    I have a set of calculations at the top of a spreadsheet that are based on years and years worth of data under the calculations (same column). I add data for each new event (the rows) and watch the calculations at the top of the data. Easy to do in Excel or Appleworks, but, I can't figure out how to do this in Numbers.
    Example:
    Spot1 Spot2
    Total 15 36
    Avg 5 12
    Jan 09 5 10
    Feb 09 6 20
    Mar 09 4 6
    Apr 09
    So... does Numbers allow the view "split" or multiple views that Excel and Appleworks allow?
    Thanks!
    Tom

    Question asked and responded several times:
    feature unavailable.
    For multiple views of a table there is an easy workaround as we may build a table whose every cells grab their contents from the 'master' one.
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'10
    Yvan KOENIG (VALLAURIS, France) mardi 1 septembre 2009 21:56:42

  • I have been working on a book and have 418 photos already in my book.  All of a sudden I cannot access the book format to see the multiple view, spread view, or single view.  I can no longer see my book although I still see the collection with 418 photos

    I have been working on a book and have 418 photos already in my book.  All of a sudden I cannot access the book module and clicking on the multiple view, spread view, or single view does not take me back to the book I have been working on.  I can no longer see my book although I still see the collection with 418 photos under collections.  What I do see is a blank template for a new book and I can't find the unfinished book I started with 418 photos.  It is like the new empty template is somehow covering it up.  How do I get back to the book I have been working on?

    Is it possible you mistakenly clicked on a [Clear Layout] button?
    But a great hint is- Always click on the [Create a Saved Book] button, early in your new book design.
    Then you have a permanent link to the book in the Collections panel. (In addition to the standard collection of your selected images)
    Note: a Book Collection shows an icon that looks like a book.
    Every time you come back to edit the book, open the Book Module by clicking on the white arrow that appears on the end of your Book Collection title. (The title as saved)
    Re-opening a book without using the "Saved Book" option can have unpredictable results.
    A "Book" Collection is like a "Smart Collection" because anything you do to the book design, change pages, change images, etc,  is automatically updated in the Saved Book collection.

  • MVC �Best Practice� (handling multiple views per action/event)

    Looking for the best approach for handling multiple views for one action/event class? Background: I have a small application using a basic MVC model, one controller servlet, multiple event classes, and multiple JSP views. For performance reasons, the controller Servlet is loaded once, and each event class is an instance within it. Each event has an �eventProcess()� and an �eventForward()� method called by the controller, standard stuff.
    However, because event classes should not use instance variables, how should I communicate which view to forward to should based upon eventProcess() logic (e.g. if error, error.jsp, if success, success.sjp)? Currently, there is only one view mapped per event, and I'm having to put error handling logic in the JSP, which goes against the JSP being for just view only.
    My though was 1) A session object/variable that the eventProcess() sets, and the eventForward() reads, or 2) Have eventProcess() return a mapping key and have the conroller lookup a view page based upon that key, as opposed to 1-1 event/view mapping.
    Would like your thoughts!
    Thanks
    bRi

    Your solution seems ok to me, but maybe the Struts framework from Apache
    that implements MVC for JSP is a better solution for you:
    http://jakarta.apache.org/struts/index.html
    You should take a look at it. It has in addition some useful taglibs that makes life much easier.
    We have successfully used it in a project with about 50 pages.

  • Table based on multiple views

    Hello all,
    Is it possible to populate a table with data from multiple view objects that are linked with a view link?
    The reason i want to do this is because if you update the reference ID in the master the detail automatically follows.
    Now, I know i can create a view object and then include the detail info using expert mode, but this way the detail info doesn't change if i change the reference ID.
    To conclude, a brief explanation of what i'm trying to achieve.
    I have a table with adresses. Having a reference ID to the ZIP table.
    Because the user doesn't know all the ID's by heart i show the name of the city and the user can change them by clicking on a lov button. This all works fine, BUT, when the city is changed the old one stays visible for the user. Although committing, changes the city to the new one.
    Regard
    Johan

    Keeping in mind what Dave just said, you would be better off creating your GTT once. Then reusing it over and over again. Using GTTs is advantagous in that its contents are visible only at the session level, and depending on how the GTT was created it will either automatically truncate the table on commit (the default if not otherwise specfied) or truncate the table at the end of your session regardless of commits.

  • Controlling Post Order of Multiple View Objects

    Hi ,
    Here is the scenario:
    I have a use case of "Creating an Abstract"
    Steps:
    step1 ) (Page 1) Author presents the details of the abstract (Details goes to 2 tables ABSTRACT & ABSTRACT_CONTENT tables). For the 2 tables i have 2 entities. I use a view here called CreateAbstractView from both the tables( here i control the post order of the entities ....code from jdeveloper 11g guide)
    Step 2)(Page 2) Author presents details of Additional Authors. I use the view (*AdditionalAuthorDetailsView*) (Details goes to 2 tables AUTHOR & ABSTRACT). Here in the abstract table i have a parent key(parent abstract id) So all the additional authors has a record in Abstract table with parent_abstract_id from step1. ABSTRACT table also has a foreign key (author_id) .Here also i control the post order of the 2 entity object using the code from jdeveloper 11g guide.
    I also have a link from CreateAbstractView to AdditionalAuthorDetailsView (abstract_id in Abstract table from CreateAbstractView to parent_abstract_id in Abstract table from AdditionalAuthorDetailsView )
    If i have a commit on both the pages , i don't see a problem.
    But i want to have a commit process at the end so that the user can review the information. So when i try to add a commit process at the end , i get a exception (Parent Key not found exception) which i came to understand that commit from AdditionalAuthorDetailsView is happening first which is trying to insert a record into ABSTRACT table and cannot find the parent_abstract_id.
    How do i control the post order for multiple view objects in such scenarios?

    Hi!
    Please take a look at the dev guide. It comes down to controlling the posting order on entity level.
    http://download-uk.oracle.com/docs/html/B25947_01/bcadveo007.htm#CEGJAFCF
    Sascha

  • Multiple View sessions, same PC?

    View 6.0.1, Client 3.3.0
    Can I have multiple View sessions from the same PC? In other words
    Launch the Horizon View client, login, and access a desktop
    Launch the Horizon View client again, login as a different user, and access a different desktop
    Repeat until I have many session open at once
    The reason I ask is we are migrating from Exchange to Gmail. Google provides a utility called GAMME that in a larger environment can be run from multiple machines with each machine migrating one portion of the alphabet. Rather than using 10 physical machines I would rather use 10 View desktops. This will work slick if from my real PC I can access all 10 view desktops. I will be using a different login account to access each desktop.

    Have not tried yet. I did not want to go through the time setting up a separate non-persistent desktop pool if I could not login to more than one desktop at the same time. Now that I know it will work, I will run with it. Thanks for the help

  • Define multiple views

    I'm trying to build a simple app which has multiple views. When the user clicks on the worksetItem I want to change the view, and display an other table in the shell. But I dont know how can I define another view, and add it to the shell.

    Hy Venkatesh
    I've found the link too that you've posted.
    I've used the following tutorial to buld the base of my app:
    Developing a simple List based SAPUI5 Application
    And now I want to spereate the BP data, and create a subview for it, and do the same for Sales, than load it to the main view, when the user clicks on the menu. But I dont really know how to write my own view. (what to write to the "createContent()").

  • Complex Query - Joins vs Multiple Views

    I am trying to run a query that joins a main table representing people with 7 others that contain demographic and status information. Some of the other tables don't have records or have more than one record per person. For the instances of more than one phone number for a person, I need to filter out all but the active home number record. If the person doesn't have a phone number, I still need a record returned, just without a phone number listed. I have tried joining all the tables in a single query, but can't get every person to show up in the results. If the person doesn't have a phone number, or has a phone number that isn't both active and "Home" then they don't show up... I got around this by using multiple views to make sure everyone was pulled, but the multi level view runs slow as heck... Here are the two approaches. Any ideas?
    Here are the views that work:
    CREATE OR REPLACE VIEW pinnacle_address AS SELECT p.person_id, a.line1 | | ' ' | | a.line2 | | ' ' | | a.line3 AS StreetAddress, a.city, a.state, a.zip FROM cmn_people p, cmn_people_addresses a WHERE p.person_id=a.person_id(+) and a.Active_Address = 'Y' and a.Address_Type = 'Home';
    CREATE OR REPLACE VIEW pinnacle_phone AS SELECT p.person_id, ph.phone_number, ph.phone_number_type FROM cmn_people p, cmn_phone_nos ph WHERE p.person_id=ph.person_id(+) and ph.active_phone_number = 'Y' and ph.primary_flag = 'Y';
    CREATE OR REPLACE VIEW pinnacle_people AS SELECT p.person_identifier01, p.last_name, p.first_name, p.middle_name, p.date_of_birth, p.gender, a.StreetAddress, a.city, a.state, a.zip, ph.phone_number, ph.phone_number_type, p.email, p.ssn, p.ethnic, p.fulltime, p.person_id FROM cmn_people p, pinnacle_address a, pinnacle_phone ph WHERE p.person_id=a.person_id(+) and a.person_id = ph.person_id(+);
    CREATE OR REPLACE VIEW pinnacle_student AS SELECT DISTINCT p.person_identifier01, p.last_name, p.first_name, p.middle_name, p.date_of_birth, p.gender, p.streetaddress, p.city, p.state, p.zip, p.phone_number, p.email, p.ssn, p.ethnic, p.fulltime, i.student_instance_id, e.comb_id FROM sss_student_enrollments e, sss_student_instance i, pinnacle_people p, cmn_statuses s WHERE e.person_id=i.person_id and i.person_id=p.person_id and i.status_id=s.status_id and s.status in('Active', 'Accepted');
    Here's the single sql that doesn't:
    CREATE OR REPLACE VIEW pinnacle_test AS SELECT DISTINCT cp.PERSON_IDENTIFIER01, cp.LAST_NAME, cp.FIRST_NAME, cp.MIDDLE_NAME, cp.DATE_OF_BIRTH, cp.GENDER, cpa.LINE1 | | ' ' | | cpa.LINE2 | | ' ' | | cpa.LINE3 AS StreetAddress, cpa.CITY, cpa.STATE, cpa.ZIP, cph.PHONE_NUMBER, cp.EMAIL, cp.SSN, cp.ETHNIC, cp.FULLTIME, si.STUDENT_INSTANCE_ID, se.COMB_ID FROM SSS_STUDENT_ENROLLMENTS se, SSS_STUDENT_INSTANCE si, CMN_STATUSES cs, CMN_PEOPLE cp, (SELECT * FROM CMN_PEOPLE_ADDRESSES WHERE Active_Address = 'Y' and Address_Type = 'Home') cpa, (SELECT * FROM CMN_PHONE_NOS WHERE active_phone_number = 'Y' and primary_flag = 'Y') cph WHERE se.PERSON_ID = si.PERSON_ID and si.STATUS_ID = cs.STATUS_ID and si.PERSON_ID = cp.PERSON_ID and cp.PERSON_ID(+) = cpa.PERSON_ID and cpa.PERSON_ID(+) = cph.PERSON_ID and cs.status in ('Active', 'Accepted');
    Thanks in advance,
    Erik Marin
    [email protected]

    CREATE OR REPLACE VIEW pinnacle_student
    AS
    SELECT DISTINCT p.person_identifier01,
    p.last_name,
    p.first_name,
    p.middle_name,
    p.date_of_birth,
    p.gender,
    a.line1 | | ' ' | | a.line2 | | ' ' | | a.line3 AS StreetAddress,
    a.city,
    a.state,
    a.zip,
    ph.phone_number,
    p.email,
    p.ssn,
    p.ethnic,
    p.fulltime,
    i.student_instance_id,
    e.comb_id
    FROM sss_student_enrollments e,
    sss_student_instance i,
    cmn_people p,
    cmn_people_addresses a,
    cmn_phone_nos ph,
    cmn_statuses s
    WHERE e.person_id = i.person_id
    and i.person_id = p.person_id
    and i.status_id = s.status_id
    and p.person_id = a.person_id(+)
    and p.person_id = ph.person_id(+)
    and s.status in ('Active', 'Accepted')
    and a.Active_Address(+) = 'Y'
    and a.Address_Type(+) = 'Home'
    and ph.active_phone_number(+) = 'Y'
    and ph.primary_flag(+) = 'Y';
    null

  • Multiple views without instancing

    Ive seen the question asked about this. and it doesnt seem to
    be widely used. using multiple cameras diplaying multiple views of
    one scene, at one time, without having to use instances. why so
    many opt not to use it I dont know. when it should be used. on a
    very standard basis. for those that play the playstion or xbox
    systems. you have most likely seen a game where a second window
    opens up. You can do the the exact same thing in shockwave 3d. so
    why not use it. Say you have a character walking thru a house. and
    the camera is following that character. You can take a seperate
    camera, in a seperate part of the house. Showing another person
    coming from behind the first person in a second window displaying
    both windows at the same time. You can actually create mood and
    atmosphere. There isnt a single shot in movies or tv that cant be
    created in 3d and therefore shockwave 3d, be it split screens or
    not. So why not use it. This is like if all the people that use
    flash opt not to use flash video. when that is one of its strongest
    features. well here is a very simple example of it
    www.bleed3d.com/rotating%20cameras.htm

    quote:
    Originally posted by:
    tyree_2
    Im not referring to resources Im referring to visual delivery
    here is a very simple scene nothing special just a sphere but its
    interesting to look at
    But resources, in terms of manpower and funding is a huge
    factor which
    directly affects the end quality of the visuals. This is a
    lot of the reason that most commercial games require huge teams and
    huge amounts of funding. If we had double the time available (i.e.
    funding) and double the team size for our projects, we would be
    able to deliver much higher visual quality in terms of time spent
    modelling characters and levels, and time spent adjusting and
    improving visual routines.
    Incidentally, the demo you posted is actually quite boring to
    look at! Adding a second camera view of something that is already
    very dull doesn't make it significantly more interesting :-)
    quote:
    I also dont believe that the size of the plugin is really a
    problem. keep in mind people downloading movies and content in
    excess of 100 mb is the norm.
    If you read my post more carefully, you'll see that I said
    the plugin install "process", not the size. I agree with you that
    the size is not so much of an issue particularly now broadband is
    more widespread. But the number of dialogue boxes that must be
    click through, the 'age request', the toolbar option, the redirect
    to shockwave.com.... it's appalling and I am embarrassed when a
    client needs to see that, when we pitch a shockwave game to them.
    It's a
    major hinderance to selling shockwave work to clients.
    I
    really don't understand how you think adding a second camera
    view would inherently raise the 'standard' or make a project more
    entertaining. In almost all cases, unless it was for some specific
    purpose that was relevant to the project, I think the user would
    think, "what's that extra camera view for?".
    - Ben

  • Multiple views in single View Container

    Hi Experts,
    Is it possible to display multiple views in single view container.!! . I want to display 2  views in a view container based on condition. Please suggest me how to achieve this.
    Thanks,
    Regards,
    Ram.

    Hi.,
    Yes it is possible to embed views in one view container.
    Embed all views in one View Container . Assign plugs based on condition navigate through them.
    Create an attribute and bind the visibility property and play with show or hide.
    hope this helps.,
    revert if u need some more clarifications.,
    Thanks & regards
    Kiran

  • NSTimer on multiple views

    Hello everyone,
    I am making a simple game with multiple views (levels) that involves a timer that counts down. I can't seem to figure out how to code the same timer into each of the views. So far I have only been able to get the timer to show on the first view.
    Thanks in advance.

    You can declare a int variable (e.g. int timePassed - in secs) in the AppDelegate (e.g: GameAppDelegate) - also make properties for it. You can init it in the mainViewController as follows:
    GameAppDelegate *delegate= (GameAppDelegate *)[[UIApplication sharedApplication] delegate];
    delegate.timePassed = 0;
    Each viewcontroller (that uses a timer) will have an nstimer instance:
    NSTimer *timer; (or something similar)
    At viewWillAppear method you will init the timer as follows:
    timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(TimePasses) userInfo:nil repeats:NO];
    In TimePasses method (each viewController will have such a method) you will update the label of the viewController using the timePassed from the delegate:
    GameAppDelegate *delegate= (GameAppDelegate *)[[UIApplication sharedApplication] delegate];
    timerLabel.text = (format the seconds from timepassed into a nice time output - e.g 70 => 1:10)
    When switching to a new viewcontroller you have to invalidate the timer of the old viewcontroller and init the timer of the new viewcontroller. You will invalidate the old timer when doing the [self.navigationcontroller pushviewcontroller:newviewcontroller animated:NO] (you'll get an error if you already have invalidated it). Again in the newviewcontroller you'll have to init the timer as above, which will launch the selector method from it's own class.
    I believe this is how it can be done, though if you want a single nstimer instace I don't know how you can switch the target/selector. You'd also need to declare the NSTimer variable in the delegate like the timePassed. Also if you need to invalidate the timer with other occasions you can also use a BOOL which will tell you if the timer is invalidated or active so you won't get a BAD ACCESS.
    I hope this helps, good luck with your game

  • Basic question on multiple views

    Just getting started in the world of cocoa, objective-c, etc. and have basically started by building a very basic app and slowly adding things to that app (however arbitrary and seemingly useless) to teach myself new things.
    I initially started with a simple app that loaded a single view that had a couple of buttons (one plus, one minus) and a "total" label. All that happened was the total incremented/decremented by 1 based on the button you selected.
    I want to try and hit on the idea of multiple views, so I've modified the code to only allow the user to modify the total within a range of 1-5 and have added a "Go To Page" button.
    What I'd like to do now is set it up so that the user generates a number (1-5) and then selects Go To Page at which point I load a page (probably just with a label to confirm which page it is, i.e. "First Page", "Fourth Page", etc.).
    I guess where I'm running into a mental block is how I go about changing views from within a view controller (where my response to my "Go To Page" button is).
    I understand I could build all of my views (basically just my navigation view controller and one other "page controller" that I will create multiple instances of and set different label values on) in the App Delegate, but how would I go from my response method inside one of the controllers to my top level Delgate.
    Again, I know this is basic stuff, but I'm learning and have had some difficulty finding answers to some specific things.
    Thanks.

    Hi jd & welcome to the forums
    You may want to visit iTunes/iTunes U and download some of the iPhone developer videos...good stuff that will help you get a handle on using the touch screen and smaller space, etc.
    Also, check the Apple iPhone Human Interface Guidelines...
    The point I'm trying to suggest is that your 'block' about how to design and proceed may actually be your inner geek trying to tell you this is a new environment and you perhaps need a bit more time to come to grips with what is actually a new way of presenting data, etc.
    'pages' are so.... yesterday

Maybe you are looking for