Navigating between 2 forms

Hello All,
I do not have much experience with swings though work mostly with java
I have basically 2 forms , Login Form and a Main application Form both created using open source swing gui builders.
I have put the code into 2 files , login.java and mainapp.java.
Now when i run the login.java first , it shows me the the screen and i can navigate to teh mainapp form from there.
The problem i face is that both the forms(read as java files) have thier own main methods and thus if i call the main method of the Mainapp class from the login class it loads a new window.
I want to load the mainapp class in teh same window as the login app. Both the main app and login class have thier own frame and panels defined.
Can anyone help here ?
Thanks.

hi
u need make the method setVisible(boolean) of Jframe to false.
u can do it by writing
Jframeobj.setVisible(false).
For ur case , u need to make loginpage invisible after validating the user's authenticity. right?
If so make the frame creating login page as setvisible(false) after validation.
So that only the main page will be visible.
i feel this solves ur problem.

Similar Messages

  • Large number of http posts navigating between forms

    Hi,
    i'm not really a forms person (well not since v3/4 running character mode on a mainframe!), so please be patient if I'm not providing the most useful information.
    An oracle forms 10 system that I have fallen into supporting has to me very poor performance in doing simple things like navigating between forms/tabs.
    Looking at the java console (Running Sun JRE 1.6.0_17), and turning on network tracing, I can see a much larger number of post requests than I would expect (I looked here first as initially we had an issue with every request going via a proxy server, and I wondered if we had lost the bypass proxy setting). Only a normal number of GETS though.
    Moving to one particualr detail form from a master record is generating over 300 post requests - I'v confirmed this looking at the Apache logs on the server. This is the worst one I have found, but in general the application appears to be extremely 'chatty'
    The only other system I work with which uses forms doesn't generate anything like these numbers of requests, which makes me think this isn't normal (As well as the fact this particular form is very slow to open)
    This is a third party application, so i don't have access to the source unfortunately.
    Is there anything we should look at in our setup, or is this likely to be an application coding issue? This app is a recent conversion from a forms 6 client server application (Which itself ran ok, at least this bit of the application did with no delays in navigation between screens).
    I'm happy to go back to the supplier, but it might help if I can point them into some specific directions, plus i'd like to know what's going on too!
    Regards,
    Carl

    Sounds odd. 300 Requests is by far too much. As it was a C/S application: did they do anything else except the recompile on 10g? Moving from C/S to 10g webforms seems to be easy as you just need to recompile but in fact it isn't. There are many things which didn't matter in a C/S environment but have disastrous effects once the form is deployed over the web. The synchronize built in for example. In C/S calls to synchronize wasn't that bad; But when you are using web deployed forms...each call to synchronize is a roundtrip. The usage of timers is also best kept on a low level in webforms for example.
    A good starting point for the whole do's and dont's when moving forms to the web is the forms upgrade center:
    http://www.oracle.com/technetwork/developer-tools/forms/index-095046.html
    If you don't have the source code available that's unfortune; but if you want to know what's happening behind the scenes there is the possibility to trace a forms session:
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14032/tracing002.htm#i1035515
    maybe this sheds some light upon what's going on.
    cheers

  • Navigation between records in a JSP application

    Hi,
    I would like to know how to provide navigation between records in a tabular form liked JSP application using JDeveloper 3.2
    without using the Oracle or Default template.
    I can do it with a singular record view but not in a tabular view. I like to know now I can mimic the navigation provided in Oracle template in which the current selected record is hightlighted. Can we navigate between records using Up and Down
    arrow key like in Oracle form instead of using Navigation Bar. Please provide details code.
    Thanks a bunch,
    Khanh Hoang

    You can refer to the source code in jbohtmlsrc.zip for deriving your own implementation.

  • Retaining values when navigating between subtabs

    Hello everyone
    I have a subtab region with 3 tabs in my page. I have some form fields in each tab, when I enter some details in tab1 and click tab2, and then come back to tab1 , my details previously entered in tab1 gets cleared. is there a way to retain these values when navigating between subtabs. all the tabs are based on different VO's
    Thanks
    Ravi

    Here's how I do it...
    (1) I always use Sessions.  In the main form of my application, I set up the session and I store a single variable:  Session.Exists = True.  All other forms begin something like this:  (It's actually an include-file.)
    <cflock ...>
    <cfset SessionExists = StructKeyExists(Session, "Exists")>
    </cflock>
    <cfif NOT SessionExists>
       <cflocation ... send 'em back to the home 'cuz their session has expired>
       <cfabort>
    </cfif>
    (2) Now that we know that a session exists, we store various structs in the Session to contain the default or current values that have been used in a particular form.  If the Session scope does not contain a particular struct, it is automagically created with appropriate default values.)  This becomes "what we display," and when we capture the user's responses, we store them there, even before we validate them.  The session pool therefore becomes the vehicle for communication between the various forms.
    (3) If we reach a point where a particular piece of information is no longer useful, we delete the appropriate structure from the Session, thereby wiping out the entire set of values at once.
    (4) Structs and Arrays can, of course, contain other Structs and Arrays.  You can build data structures of arbitrary complexity.
    (5) As of late, I have found myself specifying individual CFCs for each logical "object" in my application.  This is true object-oriented programming, as best as ordinary CFC techniques can do without plunging headlong into the underlying nether-world of Java.  In those CFCs, I deliberately try to conceal just how information is maintained and stored, so that these necessary inter-dependencies within my application are concentrated in just one place.  "The structure is 'the object,' and the methods are found 'here and only here.' "

  • How can I share data between two forms on different lists

    Using a custom content type, I created two lists that I want to share the same data - one is a calendar.  Our employees complete a form from the "Out of Office Request" list that has workflow functionality that sends an email to that person's
    manager.  If the manager approves the request, the item automatically populates the "Out of Office Calendar."  The problem is that the only information from the request list that populates the calendar is the Title field and date/time fields. 
    I need the manager name in order to create a view for each manager.  
    How can I connect the other information in the request list to the calendar list.  It seems to me that if the title and date fields carry over the information, there should be a way to connect the other information.  I'm using Designer.
    I've tried to connect the two lists' webparts with the wizard, but when I get to the page that maps the two lists, there are no column names and the "Next >" button is grayed out.  This seems like the logical place to connect the two lists,
    but it isn't working.

    Hi,
    According to your post, my understanding is that you wanted share data between two forms on different lists.
    To show external  information on the calendar event, there are two methods: Calculated column, workflow. You can refer to:
    A Simple Guide to Show More Information on a Calendar Event
    I recommend to use workflow to achieve what you want. But you need to create a people column to display the manager.
    You can create a workflow associated to the "Out of Office Request" list, add action to Start Approve Process. If the manager approves the request, you can create a item in the calendar, and then update the people column and the title column.
    Then the calendar will display the Title, date/time and the manager.
    To create a view for each manager, you need to modify the Filter. You can use the people column is equal to the manager name or the Title contains the manager name.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Navigation between different componets in IC Web Client for CRM 7.0

    Once the user click save button in component ICCMP_BT_BUTTON I need to navigate to component ICCMP_BT_SVO that displays the Service Order Data and display the new Service Request that was created.
    How can I do navigation between different componets in IC Web Client for CRM 7.0?
    Thanks.
    Rodolfo Miã

    Hello,
    You can find detailed presentations in the learning maps available on the SAP Service Marketplace http://service.sap.com/rkt-crm for release CRM 2006s, CRM 2007, or CRM 7.0. In case I didn't mention it before, Intent-Driven Interaction (IDI) was first introduced and is only available starting with CRM 2006s and above. In the Interaction Center area, there is a presentation called "Rule Based Automation and Guidance" which covers IDI. I'm not sure if you can access the URL directly, but just in case here it is: [https://websmp104.sap-ag.de/~sapidb/011000358700001162852007E].
    Warm regards,
    John

  • Differences between Oracle Forms 11.1.1.6  and 11.1.2

    Hello !
    Which version should I choose 11.1.2 or 11.1.1.6
    11.1.2 must me the latest one aka 11gR2
    11.1.1.6 must be 11gR1 PS5
    Am i right ?
    but in the forms home page it seems that the 11.1.1.6 is the latest version ??
    Oracle Forms 11.1.1.6 Released
    The latest version of Oracle Forms (11.1.1.6) has been released.
    This can be downloaded from My Oracle Support (MOS)
    23-Feb-2012
    Oracle Forms 11g Release 2 has been released. Read about the new features.
    Oct-2011
    I suppose that in a MiddleWare stack : SOA suite + BI publisher + Forms, the 11.1.1.6 (11gR1 PS5) is the best choice.
    Can somebody explain me the differences between Oracle Forms 11.1.1.6 and 11.1.2 ?
    Thanks
    Regards
    Jean-Yves

    Michael Ferrante (Oracle) wrote:
    There are many new features in 11.1.2.0 that do not exist in 11.1.1. Some of the most significant new features are listed in the 11gR2 New Features documentation found on this page:
    http://www.oracle.com/technetwork/developer-tools/forms
    Additional information about new features and changes can be found in the product documentation for 11gR2, which is here:
    http://docs.oracle.com/cd/E24269_01/index.htm
    One important thing to note is that FMw 11.1.2 (11gR2) does not include Portal or Discover. So if you need either or both of these you will need to stick with 11.1.1.Hi Michael,
    One of the features which is very very important in my point of view is
    Reduced Installation Footprint
    In order to reduce the resource requirements on development machines, you can perform an
    installation specifically tailored for development. This will limit the number of software products
    and servers installed on the machine whilst still allowing a developer to build, run and test their
    Forms application.
    If this feature is only available for the 11.1.2 release then the choice is made !
    Thanks !
    Jean-Yves
    ps : and we don't use any portal or discoverer :-)
    Edited by: JeanYves Bernier on 30 nov. 2012 23:54

  • How to navigating between layers?( as if they were pages of a book?)

    I need a good advice on design and navigating between some different layers.
    I am a Adobe Director user, and I am used to think of “navigating between frames”. also frames as pages of a book, while in flash time-frames.
    In Director one can navigate between different frames with each containing many components.
    And this does not make any conflict since the frames are some kind of pages of a book, you go to any page you want and back again.
    I am designing math training application in falsh-CS6, in which the user should be able to navigate from start-menu by choosing an
    exercise number and then go to the wanted exercise and then create an exercise by a create_excercise button, there back again to menu to choose another and so on. How I can do it clean in flash?
    As I see I have to place everything in the same “frame” in flash, and it becomes little practical and confusing since there
    are many things all gathered in the same frame, where they should instead appear in their respective “pages”.
    I have done some works in flash:  made 4 layers in flash with the following contents:
    layer 1: for my menu( contains 3 buttons, q1bt, q2bt, q3bt)
    layer 2: for question 1( contains 3 buttons  makeQ1bt, chekAns1bt, and  gotoMenuBtn)
    the same is for layer 3 and 4.
    I see no options rather than making different components visible or invisible whole way! but is there a better way?
    I appreciate any help.

    Flash does allow more than one frame - that is one of the foundations of working with it.  You can restrict yourself to using just one frame if you like, but it is not required and very often people use the timeline instead of keeping things in one place.
    I have no familiarity with Director, but what you just described sounds like designing using the timeline of Flash.  With Flash you can use the timeline in the fashion you just described where different pages occupy different frames of the timeline and you can navigate from one to another.  You are not stuck with one frame in Flash... you can create a new keyframe at any point along the timeline and add new/different content to it, while retaining a menu that exists across all pages (or not - it's your choice)..

  • Navigation between  two applications under a single webdynpro project

    Hi All,
    Here i needs to work with a webdynpro project which has two application which needs navigation one view form the first application to one view in the next application. I have already tried with "EXIT URL" concept and its working fine. Is there any alternative way to accomplish that task. I am looking for valuable reply from you.
    Regards
    Ravi

    Hi Ravi..
    Try this link..
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/webdynpro/wd%20java/wd%20tutorials/inter-application-navigation%20in%20web%20dynpro.pdf">Application Navigation</a>
    Urs GS

  • Problems navigating between classes

    Hi again,
    Sorry to be such a bore; situation is as follows:
    1)I have a midlet class containing an inner class where I can merrily navigate between a Form and a Canvas class
    2)I've written a separate class, which also extends Canvas – not an inner – which I can navigate to but cannot get back to either the form or the inner canvas class
    3) How do I do it? :-)
    Cheers
    J
    And here is the outer class
    public class OtherCanvas extends Canvas implements CommandListener{
       public Command form02 ;
       public Canvas myCF;
        public OtherCanvas(){
           //myCF = new CanvasForm();
           form02  = new Command("Form", Command.SCREEN, 1);
           this.addCommand(form02);
        protected void paint(Graphics g){
          int w = getWidth();
          int h = getHeight();
          g.setColor(159,182,205);  //159;182;205
          g.fillRect( 0,0,w,h );
        public void commandAction( Command c, Displayable d){
            //if (c == form02)
    }

    Hi,
    Trying to get to first base(with midlets) has made me forget my basic java. Anyway i have now done what you said (which i should have known) and i must be close, but still unable to navigate back to form from OtherCanvas
    Ok here's the code:
    J
    public class OtherCanvas extends Canvas implements CommandListener{
       public Command form02 ;
       public CanvasForm myCF;
       private Display display;
       private Form form;
       public OtherCanvas(Display disp, Form fm){
           display = disp;
           form = fm;
           form02  = new Command("Form", Command.SCREEN, 1);
           this.addCommand(form02);
           this.setCommandListener(this);
        protected void paint(Graphics g){
          int w = getWidth();
          int h = getHeight();
          g.setColor(159,182,205);  //159;182;205
          g.fillRect( 0,0,w,h );
        public void commandAction( Command c, Displayable d){
            if (c == form02)
               display.setCurrent(form);
    }

  • How to define the dynamic navigation between two component in web ui

    Hi All,
    I have a requirement to create a new assignment block in accounts overview screen .
    1.Created new view(Table view) in the BP_HEAD component.
    2.Created new button on the table view toolbar .
    3.If the user clicks the new button it should navigate to interaction log component(BT126H_CALL).
    Please hekp me step 3 how to do .
    I have checked planned activity assignment block in the account but is dynamic navigation.
    Please explain me how to define the dynamic navigation between two components.
    What is window delegate .
    Thanks,
    Venkyy

    Hi ,
    Kindly follow the link , this will be helpful for your issue :
    http://wiki.sdn.sap.com/wiki/display/CRM/CRM-NavigatingtoyourcustomBSP+component

  • Difference between Smart Forms and Adobe Form

    Hi all,
    What are disadvantages of Smart form in SAP ,
    What is difference between Smart Forms and Adobe interactive Form.
    I heard from someone that in future Adobe interactive Form will repalce smart forms. Is it true or not
    Best Regards
    Srikanth

    Hi,
    Companies depend on formal documents that reflect their corporate identities and contain critical business information from live systems. SAP and Adobe partnered for automating and streamlining forms-based communication to support customers who create reusable forms for their business processes.
    SAP Interactive Forms by Adobe will be used more and more as a way of simplifying and automating manual processes.
    There are various advantages of Adobe forms.
    SAP Interactive Forms by Adobe provides all the features and functions you need to create form-based output, such as order confirmations, invoices, or pay slips. You can either print such documents or send them by email or FAX.
    <b>Online Interactive Forms</b>
    A user logs on to the company intranet to fill in a form required by the HR department (for example, a Non-Disclosure Agreement to be signed by a new employee). The form is displayed in the browser.
    As the user is logged on in the background to the company's HR system, his master data is displayed in the form. The user enters the required information in the fillable fields of the interactive form, and sends the data back to the system by pushing a button. The system extracts the data from the form and saves it in the database.
    <b>Offline Interactive Forms</b>
    The purchasing department of a company creates a bid in its Enterprise Resource Planning (ERP) system and selects the potential vendors. Based upon this data, the system automatically creates interactive bidding forms with specific vendor information, such as the address or contact person.
    The forms are transmitted to the vendors by email. The vendors can fill out the forms offline (without being connected to the system that created the forms) and transmit them back to the company. The company then processes the forms automatically, and the data provided by the vendors is written to the ERP system. The purchasing department uses the data to evaluate the quotation and then issues an order.
    <b>With the integration of Adobe PDF technology into its solutions, SAP will be able to further extend its offerings of end-to-end business solutions by:</b>
    Providing for the first time the capabilities of Adobe's interactive PDF-based forms.
    Integrating PDF documents into business processes that are driven by SAP applications.
    Automating the process of moving XML data from SAP applications into interactive forms and vice versa.
    Reducing time to design, manage, and maintain extended forms-based processes through easy-to-use forms design and deployment tools.
    Offering its customers enhanced printing capabilities, in particular for interactive Web applications.
    The focus of new forms technology from SAP is interactive PDF-based forms that can be created in SAP systems as a result of the <b>integration of Adobe technology with Web Dynpro and the SAP NetWeaver Developer Studio.</b> This integration means that adobe is the future technology.
    Regards,
    Kate

  • Pass data between InfoPath forms in SharePoint

    Hello!
    Maybe someone has ideas about the next issue: how to make pass data between InfoPath forms in SharePoint, like it is shown in a video: https://www.youtube.com/watch?v=-nGl-Se2cOQ
    I've read similar topics, but still can't find solution.
    Thank you.

    When you go to modify the submit connection, you can specify whether or not to overwrite, as well as a default title value. If you use the now() function in the title, it should never have the same name.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Navigation between portlets

    I am using JSR168 portlet API.how to navigate between portlets

    Hi,
    Navigating between portlets on the same page or between portlets on different pages ?
    Could i know for what functionality you want to have navigation between portlets ?
    Please let me know.
    Thanks
    <Neeraj Sidhaye/>
    Try_Catch_Finally AT YAHOO DOT COM
    http://ExtremePortal.blog.co.uk

  • How to pass Parameters between two forms

    im trying to do this but i could not find any way for this.
    can any one help me how can i pass parameters between two forms
    in forms4.5. any help will be appreciated
    thanks.
    null

    Global variables can be used, but you can do what the online help
    says ...
    Parameters are passed to called forms by means of a parameter
    list. A parameter list is a named programmatic construct that is
    simply a list of parameter names (called keys) and their values.
    You can pass parameter values to forms invoked by the built-in
    subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
    can pass parameter values to other Oracle tools with the
    RUN_PRODUCT procedure.
    A parameter you include in a parameter list can be either a text
    parameter or a data parameter. The parameter type determines how
    its value is interpreted.
    Text Parameters The value of a text parameter being passed to a
    called product is a CHAR string that can represent the following:
    n a user-defined form parameter defined in a form invoked
    by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
    n a command line or user-defined parameter for a product
    invoked with the RUN_PRODUCT built-in subprogram
    Data Parameters The value of a data parameter being passed to a
    called product is always the name of a record group defined in
    the current form. (A record group is a data structure that
    stores records derived from a query or through programmatic
    assignment.) Data parameters are used to pass data to products
    invoked with the RUN_PRODUCT built-in subprogram. You cannot
    pass data parameters to forms.
    The following table shows the structure of a parameter list that
    contains four parameters:
    Key Paramtype Value
    CITY Text_Parameter 'BOGOTA'
    CATEGORY Text_Parameter 'EXPORTS'
    MULTIPLIER Text_Parameter '.0275'
    NEW_DATA Data_Parameter 'RECORD_GROUP8'
    arun reddy (guest) wrote:
    : im trying to do this but i could not find any way for this.
    : can any one help me how can i pass parameters between two forms
    : in forms4.5. any help will be appreciated
    : thanks.
    null

Maybe you are looking for

  • FORMFIELDS error

    HTML form data goes into an Access database. This code: <cfif isDefined("URL.Add")>      <cfinsert DATASOURCE="eval"      TABLENAME="tblGeneralEval"      FORMFIELDS="SCHD_ID,date,class,instructor,rotrain_id,stuname,GQ1,GQ2,GQ3,GQ4,GQ5,GQ6,GQ7,GQ8,GQ9

  • 'ENTER' key for Submit Button

    Hi, I have 1 inputfield , 1 dropdown and 1 submit button in a page. I want to execute submit button always when you click 'ENTER'. Now when i click enter from inputField it process something and in background there is no event triggered.But from drop

  • Add fields LGORT and WERKS in table KOMBE1

    In case of inbound deliveries, I want to add fields LGORT and WERKS to structure KOMBE1.I want to create an (Header)access sequence that checks on this 2 fields in order to generate an output type. So I will add this two fields in structure KOMBE1. D

  • ICal problem

    Since installing SL, I can't add a new entry to my ICal. It says "New Entry", but I can't change the name of the entry. This only happens on my MacBook Pro, but it works fine on my IMac. Anyone else have a MacBook Pro with the same issue?

  • Other Security Software Question

    Are any external security programs needed for the iMac? I thought Apple engineered security programs in at inception.