How can I link two frames via a button on one of the frame?help Plz

Ok,here is the problem. I got two fully working java frames,each has different funcion. On one of the frames(my home Frame" Frame 1" ) i got a button called "Add User", when i press it i should then get my other frame(Frame2) to popup/run. in Frame1 i got this code as action for the add user button.Note: each Frame have thier own Main class.
public void actionPerformed (ActionEvent e)
if (e.getSource()==jbtnAddUser)
// new Frame2(this,"hshsh",jb);
////////////// The commented line is where i am not sure what to put in there, Frame1 is the name of my Frame 2 class......
Please could anyone tell me how do i link Frame 2 to Frame 1....i appreciate it....Max

You can create both together on pgm startup (instaniation of the class).
Next for frame1 - I'll call it - you can setBounds(int, int, int, int) and setVisible(true); When you press the button on frame1 to get frame2, you can then do frame1.hide(), followed by frame2 setBounds and setVisible. Finally, when you are done with frame2 you can do frame2.dispose() and frame1.show(). try that.

Similar Messages

  • How can I link two charts on different pages in one document?

    I have a chart on the first page How cn aI link two charts on differnetof my document. The last line is a intermediate total (formula). How can I link the chart on the next page to this total, so I can go on with the calculation without having to copy and paste the result of the first chart?

    Timan,
    I'm sure that you could figure out how to get along with Pages, or Numbers. Each has it's own advantages and disadvantages.
    If you put all your text that doesn't need to be in the table into text boxes, you can place the text boxes over the table in any arrangement you like. Be sure to turn off Object Causes Wrap in the Wrap Inspector.
    Here is an example of a single table across two pages with other text on the page:
    The formula in the cell displaying 500 is =B1 * 100
    On the other hand, I agree that the feature of linking to sister tables would be a nice enhancement and I encourage you to submit the idea vie Pages > Feedback > Enhancement Request.
    Regards,
    Jerry

  • In ER DIagram using toad( how can i link two tables)

    Hi,
    Any Toad expert can guide me that how can i link two tables in Toad in ER Diagram to show the relationship between two tables.
    Thanks

    Hi,
    I hope there is foreign key relationship in tables, if so then you can click on "Find table dependencies" icon which will draw lines between them.
    ~Vinod

  • How can I link two accounts on Behance: Adobe ID and earlier?

    I have some troubles with my old behance account created before Adobe ID subscription -- can't sign up. How can I link two accounts?

    You should probably ask in Behance
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • How can I delete my apple id and create another one with the same email?

    How can I delete my apple id and create another one with the same email?

    So sorry; somehow I forgot to provide the link.   Here it is ...
    Frequently asked questions about Apple ID
    Again, my apologies.

  • How can I prevent two different profiles from interfering with one another?

    I have a serious profiles problem. I created a new profile with Profile Manager and then copied a well-established profile's contents into its directory before starting the new profile. Now, when I start either profile, it contains whatever tabs I had in the previously opened profile. I deleted a bunch of tabs and a window from the new profile but when I opened it after having opened and closed the old profile, the tabs and window reappeared. If I open some tabs in the new profile and then close it and open the old profile, the tabs appear in it, and vice versa.
    I open the original profile through a shell script:
    <pre>/Applications/Firefox.app/Contents/MacOS/firefox -P "profile 1"</pre>
    I open the second one the same way but with the <i>-no-remote</i> parameter:
    <pre>/Applications/Firefox.app/Contents/MacOS/firefox -P "profile 1 clone" -no-remote</pre>
    Why do the two profiles collide like that and how can I prevent this from happening?

    Are you using Sync then ?
    Or are you setting a bunch of tabs as the homepage ?
    If you cloned a profile they will start off the same and that will include the set of open tabs from the file ''sessionstore.js'' however profiles are independent and so should have there own sessionstore and History once they have been used.

  • How can I merge conference calls and hang up on one of the instead of both on iOS 8.1.1

    How can I merge phone Calls and make conference calls with iOS 8.1.1 and hang up on one instead of both of them , it's not giving me an option like before on iOS 7 ?

    The following from the 8.1 user manual (http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf) may help
    Create a conference call. While on a call, tap Add Call, make another call, then tap Merge Calls. Repeat to add more people to the conference.
        Drop one person: Tap  next to a person, then tap End.
        Talk privately with one person: Tap , then tap Private next to the person. Tap Merge Calls to resume the conference.
        Add an incoming caller: Tap Hold Call + Answer, then tap Merge Calls.

  • I'm upgrading from iPad2 to iPad air.  how can I transfer all my data and apps from one to the other?

    Hi, I'm upgrading from my iPad2 to the iPad Air.  What is the most painless way to transfer all my data from one device to another?
    I have iannotate, which I've just found out is no longer syncing via iCloud (I thought that's what I was paying all that storage for) and a lot of catalogued PDF's on it.  Is there any other way besides plugging it in to my old Mac via iTunes to do the transfer?

    Favor the route via iTunes and local storage on the computer. MUCH faster than any cloudy backup, no matter the speed of your Internet connection. No network beats the speed of a hard drive. Just make sure there's enough room on the computer before you start, must contain all that's on the iGadget.

  • How can I link two separate Messenger systems?

    From what I have read, the only way to message users from other Messenger systems is to use the Pidgin client which would require a second logon to the other Messenger system.
    Can Messenger systems from two separate Groupwise systems be linked at the server level?
    - Gordon

    Hi,
    Here's the link to all the documentation: https://www.novell.com/documentation...l_messenger22/
    The installation guide (page 16, I think) explains the authentication requirements.
    Cheers,

  • How can i link two drop down buttons added dynamically

    guys got a wired problem but plz help.
    i m using jbuilder to create m y website.
    in this i got 2 drop down buttons.
    when the 1st(p1) 1 is clicked then second 1(a1) shows value respective of the value clicked in 1st 1.
    i dynamically add similar drop dowm on click of a button.
    but when value in the new drop down is selected (p2) it shows changes in 1st drop down (a1) not in newly created drop down(a2)
    could u guys plz help me out.
    its really urgent

    this is the code i m using to create the drop down
    ->
    var i=0;
    var option=new Array();
    function insRow(){
    var d=document.getElementById("div");
    d.innerHTML+="<select id='D"+i+"' class='input' onChange='getSh(this.selectedIndex)'><option>Select Here</option>"+
    <%
    rs=st.executeQuery("select * from productTab");
    while(rs.next())
    %>
    "<option><%=rs.getString("productName")%></option>"+
    <%}%>
    "</select>"
    d.innerHTML+="<select name='DD"+i+"' id='DD"+i+"' class='input'><option>Select Here</option></select>"
    d.innerHTML+="<select name='DDD+i' id='DDD+i' class='input'><option>Select Here</option></select>"
    d.innerHTML+="<input type=text name='T+i' id='T+i' class='input-time'><br>"
    option +=["DD"+i];
    option +=["D"+i];
    i++;
    function getSh(selectedcitygroup)
    document.getElementById("DD+i").options.length=1
    if(selectedcitygroup>0){
    for(i=0;i<cities[selectedcitygroup].length; i++)
    document.getElementById("DD+i").options[document.getElementById("DD+i").options.length]=new Option(cities[selectedcitygroup].split("|")[0], cities[selectedcitygroup][i].split("|")[1])

  • How can i log two (almost equal) data streams into one spreadsheet file?

    Hello,
    My problem is (as stated above) that i would like to log data obtained from 15 current-sensors and data obtained from 15 pressure sensors into one spreadsheet file. The idea is to put them next to eachother (preferabley pressure current sensors 1, pressure current sensors 2, pressure current sensors 3 etc.).
    Next to that I'm having difficulty logging certain constraints into a separate spreadsheet file. I.e. I've placed a maximum value constraint on my datalogger and I wish to log the data that has surpassed the max. constraint seperatly from the main logging file (see above) and (of course) preferably with the associated sensors. I would be extremly grateful if someone
    out there could help me with this problem becouse when I've fixed these problems my internship will finally have come to an end (and i NEED a vacation). Thanks in advace;
    Gideon Haan
    Nefit Buderus bv Deventer (Netherlands)
    [email protected]

    Shouldn't be too difficult. You would obviously have to have some form of test to see when your data has gone out of the specified range. You could then have this secondary logging process inside a case structure. You could innitialize this second file with the same header info. This is easiest if you go ahead and log all the sensor values into this new "surpassed" file if any of them are over. Otherwise, you will have to enter space characters ahead of the sensor values to ensure that the columns line up. You can create a string constant with a bunch of space characters and just use it over and over as necessary.

  • How can i link from IR to ID

    hi , all
    while configuring objects in ID , how can i link design objects from IR into ID.
    thanks & regards

    Hi,
    >><i>while configuring objects in ID , how can i link design objects from IR into ID</i>
    --> In the receiver determination u will be specifying
       1 .Message Interface ( Has the Message Type and Message has the Data Type)
       2. Interface Mapping ( Has the Message Types and the Message Mapping to be Done).
    --> Also u import the ccBPM in the in the Integeration Process of ID
    By these steps the design objects of ID is linked to IR.
    Regards
    Santhosh

  • Office 2013 - SharePoint Web App: How can I link a subform on two Master/Child controls?

    I have a form in which I have placed a subform in a SharePoint Web App.
    I also have 2 controls on the form, from which I'd like to link to two columns on the subform.  How can I have two Master/Child linking relationships to a subform. 
    In Access desktop, it is done in a window "Subform Field Linker", like this:
    Master Fields:          Child Fields:
    <sorry I could not include a link until my account is verified>
    Thanks,
    Keith

    Hi Bruce,
    >>Are subforms in web apps different in this regard?<<
    Yes, there are two kinds of database. In an on-premise environment, Access 2013 apps are hosted by SharePoint 2013 while the data is stored in SQL Server 2012. SharePoint 2013 provides authentication, authorization, and security for Access 2013 apps.
    The back-end tables, views, macros, and queries are stored in a SQL Server 2012 database.
    You can get more detail about Access 2013 web app from link below:
    What's new for Access 2013 developers
    How to: Create and customize a web app in Access 2013
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    It is not possible to do that.
    Allan

  • Can/ how do I link two or more "projects" - not events or clips - "projects" together in final cut pro 10?

    Can/ how do I link two or more "projects" - not events or clips - "projects" together in final cut pro 10?

    Thanks Tom -
    I created two "sequences". They are currently listed individually in the "project library". Now I want to take sequence "B" and attatch it in it's entirety to the end of sequence "A" - forming one long sequence.
    I have tried to drag sequence "B" and drop it into "A's" timeline. I have tried to creat a compound clip. I'm either missing something - or - you can create a compound "clip" or a compound "event" - but perhaps you cannot link to "projects" together.
    Does this help descibe my problem?
    Thanks again.

Maybe you are looking for