Closing one applet and open another...

Hi all,
What I currently have is a very basic applet that requires you to type in your password and follow by pressing the OK button. What I want it to do is following the pressing of the OK button, I want that initial applet to close and have another applet open. It doesn't seem too over the top difficult but right now I have no idea. Please help.
Thank you

I do work with applets. Reply #4 is the correct one IMHO.
If you don't understand what he is saying, I will try to put it
in other words.
1. Login dialog. Once your applet starts, it will display nothing
essential, perhaps just a nice background and it will open a
dialog for userid-password. If authentication is ok, close the
userid-password dialog and display in your applet whetever you
have in mind.
2. Card layout. Your applet will start by asking for userid-password
in its area inside the page. When authentication ok, display whatever
the applet is supposed to display.
In both scenarios, there are no two applets, but a single applet that
changes from state 1 (authentication) to state 2 (display data).
The only difference between the two scenarios is aesthetic,
i.e. do you want a popup for userid-password or you want it inside the
page? I would go with the card layout. Both are relatively easy.

Similar Messages

  • Closing one GUI and opening another?

    Hi guys,
    (I didnt really know which forum to post this in, so apologies in advance if this is the wrong one).
    I have created a login screen for a system, LoginScreen.java, which accepts a username and password and checks these on the server for validity. This all works fine.
    Once an account is accepted as valid I would like for the login screen to close, and the actual main GUI, Client.java, to open.
    Can anyone tell me the code for doing this? (closing one GUI and opening another).
    Please ask if you need more information on my code.
    Many thanks!

    You can make the Client.java as your main program then just call the LoginScreen.java.
    import javax.swing.*;
    public class Client extends JFrame {
    public static void main (String[] args) {                     
         Login log = new Login();
         log.show();     
    // Here you can put validation if the user is valid before displaying the main GUI
    // If valid user
         Client clt = new Client();
    clt.show();     
    // } else {
    // System.exit(0);
    public Client() {
         super("Client Java");
         setSize(400, 300);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    class Login extends JFrame {
    public Login() {
         super("Login Java");
         setSize(200, 300);
    }

  • Close one vi and open another

    Hi
    Is it possible to open another vi when I click a button and close the current vi.
    thanks 

    Here, try this. Enter the path to the VI you want to launch and run the program. When you press the button, the VI you specified will be launched and the program will be closed.
    Mike...
    Message Edited by mikeporter on 07-02-2007 07:43 PM
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    launch on click.vi ‏19 KB

  • I CLICK ON ONE LAYER AND OPEN ANOTHER

    Hello.  I'm having a problem with selecting the layer I want to work in in Photoshop CC.  Let's say I have a white background.  I'm on the Type tool.  I click 'create a new layer' .  In the Layers panel, it now says: [ T ] Layer 1.  On the page I now type "1111".  Back in the Layers pallet (for no good reason) I mindlessly click on  [ T ] Layer 1 and it turns into: [ T ] 1111.  I didn't ask it to change its title to that, but it just did.  So I think, well, I'm not finished with this page, so I want to get right back on it.  So in the Layers pallet I click onto what is now called: [ T ] 1111 (to let the layers panel know I want to work on that same page again), and what does it do?  It doesn't let me work on that page.  It makes a brand new layer called, once again: [ T ] Layer 1. 
    After tooling around with this all day, desiring to type onto the layer that I selected, I made a discovery.  If I click first onto the desired layer in the Layers pallet, in this case: [ T ] 1111, and then click exactly on top of the writing on the page itself, I will be allowed back onto this layer.  But if I click onto any white space around it, it will create yet another layer in the Layers pallet.
    After Googling around, I thought Oh.  Maybe this is because my Auto-Select is on?  I did in fact use it before.  So I click it off.  No difference.  I shut Photoshop on and off.  No difference.
    I'm wondering if anyone else has met this challenge?  And if you'd be able to help me I'd be really and truly grateful!

    First thing to try is reset Preferences.  I can't see what OS you are using so
    Hold down Shift Ctrl Alt immediately after starting Photoshop (Shift Cmd Opt on a Mac)
    If still no joy, are you using a mouse or tablet as your point device?  Is it problematic in other apps?
    Try working through this
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    If still stuck, we need to know Operating system?  Photoshop CC or CC 2014?  any hardware that might be an issue (i.e. Wacom tablet or Cintiq, wireless mouse, trackpad etc.  Any other information that would help

  • Click on link in one portlet and open in another portlet

    how do you click on link in one portlet and open in another portlet?

    Hrmm... This is a IBM Question..
    Officially this is a meaningless buzzword promoted by IBM. Portals are some sort of Servlet but IBM incapable of explaining how they differ from ordinary Servlets. Some speculate they are used to present a webpage with many services on it such as a search engine, and news that come from diverse sources. The user is able to dynamically configure the contents and layout of the page much like Netscape home pages
    I don't understand what yhour asking..
    I am assuming you want to call another servlet (portlet)? That would be absurd to do .. You let the HTTP request and XML file to deal with the response of the portlet

  • Close the current UI and open another one

    Hello everyone,
    I've got the following code and I want to close the current window and open another one. When i use "System.exit(1);" it closes everything when I use "this.dispose()" it doesn't close anything what could I try to get this to work? any suggestions?
    the code is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    //public class Equip_or_Job implements ActionListener {
    public class Equip_or_Job extends Frame implements ActionListener {
        JFrame dFrame;
        JPanel jePanel;
        JButton choice;
        JComboBox jeqid = new JComboBox();
        public Equip_or_Job() {
            //Create and set up the window.
            dFrame = new JFrame("Work with Jobid or Equipid");
            dFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the panel.
            jePanel = new JPanel(new GridLayout(2, 1));
            dFrame.getContentPane().setLayout(new BorderLayout());
            //Add the widgets.
            addWidgets();
            //Set the default button.
            dFrame.getRootPane().setDefaultButton(choice);
            //Add the panel to the window.
            dFrame.getContentPane().add(jePanel, BorderLayout.CENTER);
            //Display the window.
            dFrame.pack();
            dFrame.setVisible(true);
    Create and add the widgets.
        private void addWidgets() {
             //Create widgets.
              jeqid.addItem("Chose by Job");
              jeqid.addItem("Chose by Equipment");
              choice = new JButton("Chose");
                //Listen to events from the Convert button.
                choice.addActionListener(this);
              jePanel.add(jeqid);
              jePanel.add(choice);
        public void actionPerformed(ActionEvent event) {
              String sel = (String) jeqid.getSelectedItem();
            if("Chose by Job".equals(sel)){
                   InsertNewDates inj = new InsertNewDates();
                   //System.exit(1);
                   dispose();
              else if("Chose by Equipment".equals(sel)){
                   InsertNewDates ineq = new InsertNewDates();
                   //System.exit(1);
                   dispose();
    Create the GUI and show it.  For thread safety,
    this method should be invoked from the
    event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            try {
                   UIManager.setLookAndFeel(
                        UIManager.getCrossPlatformLookAndFeelClassName());
              catch (Exception e) { }
            Equip_or_Job eorj = new Equip_or_Job();
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    thanks in advance :o)

    I'm not exactly sure what you want to do, but...:
    dFrame.setVisible(false) hides the current Frame and the application is still running
    Best reagrds, Marco

  • How can I give a name to excel sheet and open another one?

    Hello!
    I use CSVWriter for writing in excel file.
    I have 2 questions:
    1.     How can I give a name to a Sheet in excel file?
    2.     How can I save the first Sheet and open another one with a different name?
    Thanks!

    This is the equivalent in Apache POI which may or may not help. I've never used CSVWriter.
    HSSFSheet sheet1 = workbook.createSheet("sheet1Name");
    HSSFSheet sheet2 = workbook.createSheet("sheet2Name");Then you can use either sheet object to write your contents. Look at the documentation for CSVWriter that pertains to sheets as it should tell you how.

  • When I close Firefox and open another instance of it to look at a new site I get a pop up window telling me Firefox hasn't shutdown yet.

    When I close Firefox and open another instance of it to look at a new site I get a pop up window telling me Firefox hasn't shutdown yet. I am aware of tabs, but I prefer to just open new windows.
    Do I really need a pop up window telling me that I just closed Firefox? Is there a way to disable it in options? I can't even use Buzof program to auto click for me. I've never had this issue with any other browser and I find it incredibly annoying.

    I am not clear what you mean by:
    ''the program will only alow 1 website for each time I boot my machine,''
    Are you talking about Firefox or something else in the above statement. Firefox will, or should allow you to open quite a few tabs at startup if you wish, although it will be faster the fewer that you do open.
    When you say
    ''I close it the program does not completely close ''
    Again what is happening, what error messages if any do you see, and what exactly makes you think Firefox is not closing properly.
    Presumably you have already clicked on the blue links in my first post and read those articles.

  • Is it possible send APDU´s from one applet javacard to another?

    Hi, i would like to send particular APDU from one applet javacard to another and if its possible how could i make it.
    Thanks

    Yes, it is possible.
    - Receive command APDU with applet1
    - Applet2 implements a shareable interface object (SIO)
    - Applet1 contacts applet2 through SIO
    - Applet2 process the apdu and optionally passes a response message
    Check out JCRE spec 2.2.1/2, Shareable Interfaces

  • How can I remove the Apple ID authorization only on one computer and authorize another in his place?

    how can I remove the Apple ID authorization only on one computer and authorize another in his place?

    De-authorize the computer in question.
    Then authorize the new computer.
    Or de-authorize all computers and authorize only the ones that actually exist.

  • Insert one table and update another???

    Hello,
    I was wondering if it is possible to insert a record in one table and update another another record in a different table.
    I have a form on my company's intranet that allows employees to add comments (ADDT Insert transaction) about new products we are going to bring to the market. At the same time, I would like to count the numbers of comments on a particular product and update that number for each product to see which product is getting the most reviews.
    Right now the products are on the homepage with the title and inserted date. From there, the employees click on the product get the info and make comments about it. The problem for me is that I would like to see the comment counts for each product on the home page, which means I would have to update the product table with the count.
    Sorry, I am using PHP as the technology.
    When I used to do it in ASP, I would insert the comment using the POST from the form, but add another hidden field with the count in it and I would use the "Command" Server behavior to retrieve the number and update the other table field.
    I noticed that dreamweaver removed the "Command" server behavior when using PHP.
    All help is greatly appreciated
    Charles.

    Hi Charles,
    you can generally execute queries on a different table using Custom Triggers, and in regards to your "update the product table with the count" scenario the ADDT help file has a helpful pointer in the chapter "Custom transactions and triggers : Save additional information on login" -- in here you´ll find a sample "incremental counter" query which should be easy to adapt.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Hi Sara,
    Many thanks for your reply.  We just brought Adobe Acrobat XI Pro complete
    with Adobe Forms Central, My manager asked whether I could use the forms
    part to create a summary tracking sheet for all of our contracts.
    Having looked at it I could see how to create a table that in the first
    column deleted costs from a starting fund, and in the last keeps a running
    total of all monies spent.
    I agree, Excel does seem to be much better suited to the task.  I was try
    trying to comply with her request
    Regards,

  • How to exit from a WebDynpro ABAP application and open another url

    Hi Friends,
    How to exit from a WebDynpro ABAP application and open another url like (www.yahoo.com) in the same window of the WD4 application on click of a Button?
    Regards,
    Xavier

    Hi,
    First of all you should create outbound plug in the window you are trying to exit with plufg type "Exit"
    Then create method handler in the view with this code
            data lo_view_cntr type ref to if_wd_view_controller.
            data lo_win_cntr type ref to if_wd_window_controller.
            data: l_parameter_list type wdr_event_parameter_list,
                  l_parameter type wdr_event_parameter,
                  l_val type ref to data,
                  l_val_url type REF TO data.
            field-symbols: <fs> type any,
                           <fs_url> type any.
            lo_view_cntr  = wd_this->wd_get_api( ).
            lo_win_cntr = lo_view_cntr->get_embedding_window_ctlr( ).
            CREATE DATA l_val type c.
            CREATE DATA l_val_url type string.
            ASSIGN l_val->* to <fs>.
            ASSIGN l_val_url->* to <fs_url>.
            <fs> = 'X'.
            <fs_url> = 'http://your-link.com'.     
            l_parameter-name = 'URL'.
            l_parameter-value = l_val_url.
            INSERT l_parameter INTO TABLE l_parameter_list.
            lo_win_cntr->if_wd_view_controller~fire_plug( EXPORTING plug_name = 'EXIT_PLUG'
                                                                    parameters = l_parameter_list ).
          You can easily change this logic to exit application instead of redirecting to the site
           just changing to
           l_parameter-name = 'CLOSE_WINDOW'.

  • How to minimize a window and open another app

    How to minimize window and open another app

    There is no "minimize". You can bring up the recent applications by double tapping the Home button. A single tap of the Home button will take you back to the Home screen.

  • Verizon Deleted they tell you one thing and charge another

    Verizon <Deleted> they tell you one thing and charge another data plans border on fraud
    Message was edited by: Verizon Moderator

        You deserve a consistant experience gbe1951! Our Share Everything http://bit.ly/LWsodg plan is available equally to everyone... no hidden charges. If you'd like to talk about a specific charge on your bill, please follow and direct message me your mobile number and a little more detail about what's going on so I can help.
    Thank you
    JenniferH_VZW
    Please follow us on Twitter @vzwsupport

Maybe you are looking for

  • ITunes slow, won't play selected song, keeps playing same music video no matter what song I click!

    I have an iTunes library of roughly 5000 songs, I just migrated my library from one hardrive to another (same computer though). Everything was working and playing fine, but now every time I click a song to play, I have to click it multiple times, the

  • Not Getting Video Signal

    I just purchased an 80 GB Black iPod Classic today and I was told by the Apple salesman to also purchase the "iPod A/V Cable" so I can also view videos. It cost about $19.99 and so I purchased it. After syncing everything into my iPod, I get ready to

  • Activity type origin text doesn't have been showed on Cost analysis report

    I have defined three acitivities TMAQ, TMO, CIF. But  the origin text column of these acitivities is not showing in cost Analysis report(althoug the origin is showed), i.e. when we go to an order & navigate to "Cost Analysis".  TCODE:CO02 (Production

  • Is it possible to export display macosx graphical interface?

    Hi all, i don't know if it's the right place to post but maybe people with good experience about export display can help. As indicated in the subject, my question concerns export display and particularly exporting display the macosx graphical interfa

  • Location of HDMI port on a Touchsmart 600 PC

    A technician from the cable company once said that we should buy an HDMI cable to run from the PC to the cable box. I see the HDMI port on the cable box, but don't see such a port on the PC. Does anyone know if an HDMI port exists on the Touchsmart 6