Hiding a form using card layout

Hey folks i have the code below, its an example that i have been messing around with.
I ahve a on the first card button 2 which has an action listener on, it simply opens another formwhich it does correct but i want the form with the card layout on it to be hidden.
As you can see from my code i have triediy numerous ways with no luck, hope i'm in the right forum and this shouldnt be in event handling
Any ideas welcomed
Ambrose
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Tab_Demo implements ActionListener
     final static String ROUTER1 = "Router One";
     final static String ROUTER2 = "Router Two";
     final static String ROUTER3 = "Router Three";
     final static String ROUTER4 = "Router Four";
     final static String ROUTER5 = "Router Five";
     final static String ROUTER6 = "Router Six";
     private     JTable          table1;
     private     JTable          table2;
     private     JTable          table3;
     private     JTable          table4;
     private     JTable          table5;
           public JFrame frame;
     private Button b1 = new Button("Add");
     public void addComponentToPane(Container pane)
          JTabbedPane tabbedPane = new JTabbedPane(); //Create the "cards".           
          JPanel card1 = new JPanel()
     //Make the panel wider than it really needs, so //the window's wide enough for the tabs to stay //in one row.
     public Dimension getPreferredSize()
          Dimension size = super.getPreferredSize();
          size.width += 100;
          size.height += 600;
          return size;
          JButton button2 = new JButton("Button 2");
       button2.addActionListener(this);
       button2.setActionCommand("button2");
        card1.add(button2);
          card1.add(b1);
          card1.add(new JButton("But3"));
          card1.add(new JTextField("f",20));
          JPanel card2 = new JPanel();
          card2.add(new JButton("buttonDays"));
          // Create columns names
          String columnNames[] = { "IP Address ", "Address", "Private User", };
          // Create some data
          String dataValues[][] =
               { "IP1", "Dublin 1 Ireland", "Yes" },
               { "1P2", "Dublin 1 Ireland", "Yes" },
               { "IP3", "Dublin 1 Ireland", "Yes" },
               { "IP4", "Dublin 1 Ireland", "Yes" },
               { "IP5", "Dublin 1 Ireland", "Yes" }
          // Create a new table instance
          table2 = new JTable( dataValues, columnNames );
          card2.add(new JScrollPane(table2));
          JPanel card3 = new JPanel();
          JPanel card4 = new JPanel();
          JPanel card5 = new JPanel();
          JPanel card6 = new JPanel();
          tabbedPane.addTab(ROUTER1, card1);
          tabbedPane.addTab(ROUTER2, card2);
          tabbedPane.addTab(ROUTER3, card3);
          tabbedPane.addTab(ROUTER4, card4);
          tabbedPane.addTab(ROUTER5, card5);
          tabbedPane.addTab(ROUTER6, card6);
          pane.add(tabbedPane, BorderLayout.CENTER);
          b1.addActionListener(this);
          public void actionPerformed( ActionEvent e)
          if (e.getActionCommand().equals("button2"))
               Main_Menu fr = new Main_Menu("User Main Menu");
               //Test.setDefaultLookAndFeelDecorated(true);
               fr.show();
               //this.hide();
               //frame.setVisible(false);
          /** * 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.
          //JFrame.setDefaultLookAndFeelDecorated(true);
          //Create and set up the window.
          JFrame frame = new JFrame("TabDemo");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          //Create and set up the content pane.
          Tab_Demo demo = new Tab_Demo();
          demo.addComponentToPane(frame.getContentPane());
          //Display the window.
          frame.pack();
          frame.setVisible(true);
     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();
}

HIDE_WINDOW does not hide a window that is associated to the main canvas of a form, same goes for HIDE_VIEW. And what do you mean by open_form?

Similar Messages

  • Hiding a form card layout

    Hey folks i have the code below, its an example that i have been messing around with.
    I have a on the first card button 2 which has an action listener on, it simply opens another formwhich it does correct but i want the form with the card layout on it to be hidden.
    As you can see from my code i have triediy numerous ways with no luck, hope i'm in the right forum and this shouldnt be in event handling
    Any ideas welcomed
    Ambrose
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class Tab_Demo implements ActionListener
         final static String ROUTER1 = "Router One";
         final static String ROUTER2 = "Router Two";
         final static String ROUTER3 = "Router Three";
         final static String ROUTER4 = "Router Four";
         final static String ROUTER5 = "Router Five";
         final static String ROUTER6 = "Router Six";
         private     JTable          table1;
         private     JTable          table2;
         private     JTable          table3;
         private     JTable          table4;
         private     JTable          table5;
               public JFrame frame;
         private Button b1 = new Button("Add");
         public void addComponentToPane(Container pane)
              JTabbedPane tabbedPane = new JTabbedPane(); //Create the "cards".           
              JPanel card1 = new JPanel()
         //Make the panel wider than it really needs, so //the window's wide enough for the tabs to stay //in one row.
         public Dimension getPreferredSize()
              Dimension size = super.getPreferredSize();
              size.width += 100;
              size.height += 600;
              return size;
              JButton button2 = new JButton("Button 2");
           button2.addActionListener(this);
           button2.setActionCommand("button2");
            card1.add(button2);
              card1.add(b1);
              card1.add(new JButton("But3"));
              card1.add(new JTextField("f",20));
              JPanel card2 = new JPanel();
              card2.add(new JButton("buttonDays"));
              // Create columns names
              String columnNames[] = { "IP Address ", "Address", "Private User", };
              // Create some data
              String dataValues[][] =
                   { "IP1", "Dublin 1 Ireland", "Yes" },
                   { "1P2", "Dublin 1 Ireland", "Yes" },
                   { "IP3", "Dublin 1 Ireland", "Yes" },
                   { "IP4", "Dublin 1 Ireland", "Yes" },
                   { "IP5", "Dublin 1 Ireland", "Yes" }
              // Create a new table instance
              table2 = new JTable( dataValues, columnNames );
              card2.add(new JScrollPane(table2));
              JPanel card3 = new JPanel();
              JPanel card4 = new JPanel();
              JPanel card5 = new JPanel();
              JPanel card6 = new JPanel();
              tabbedPane.addTab(ROUTER1, card1);
              tabbedPane.addTab(ROUTER2, card2);
              tabbedPane.addTab(ROUTER3, card3);
              tabbedPane.addTab(ROUTER4, card4);
              tabbedPane.addTab(ROUTER5, card5);
              tabbedPane.addTab(ROUTER6, card6);
              pane.add(tabbedPane, BorderLayout.CENTER);
              b1.addActionListener(this);
              public void actionPerformed( ActionEvent e)
              if (e.getActionCommand().equals("button2"))
                   Main_Menu fr = new Main_Menu("User Main Menu");
                   //Test.setDefaultLookAndFeelDecorated(true);
                   fr.show();
                   //this.hide();
                   //frame.setVisible(false);
              /** * 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.
              //JFrame.setDefaultLookAndFeelDecorated(true);
              //Create and set up the window.
              JFrame frame = new JFrame("TabDemo");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              //Create and set up the content pane.
              Tab_Demo demo = new Tab_Demo();
              demo.addComponentToPane(frame.getContentPane());
              //Display the window.
              frame.pack();
              frame.setVisible(true);
         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();
    }

    HIDE_WINDOW does not hide a window that is associated to the main canvas of a form, same goes for HIDE_VIEW. And what do you mean by open_form?

  • OTL: Time Card Layout Notification

    Hi all,
    I have 2 questions:
    1. How do I find out which Time Card Layout Notification we are using AND if that particular layout has been customized? Please answer both parts.
    2. How do I find out if a particular work flow has been customized? in this case its HXCEMP.
    Thank you all.
    OB

    OB,
    Check through the Preferences form to find the layout preference attached to a person.
    If your OTL implementer was wise enough, he would have given a new name to the modified layout. Otherwise use the fndload command to download the layout ldt file and compare with the original ones.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Which one is the Right Approach - Re Using Page Layouts or adding Web parts directly to pages instead of page layouts in SP 2013 online site ?

    Hi Team,
    I am SharePoint 2013 developer. Before asking question I would like to explain the requirement in clarity.
    We are developing one O365 SharePoint online site which is having 10 different page layouts with different and some common webparts and we are reusing these page layouts by deploying a sandboxed solution which is having page layouts. These page layouts contain
    filter and query to display data using some condition and predefined values. By using these layouts we have to create 100+ pages. All pages will show data according to that page name and category (if it belongs any). We have not written any code to develop
    the site, everything is OOB feature.
    We have used below feature/list/lib of SP Online 2013:
    - Document Library
    - Survey
    - Calendar
    - Lists
    - Discussion forum library
    - OOB Search feature
    Now, I would like to know whether this is the right approach to reuse the page layouts. Or can we add webparts directly where the logic resides in the webparts and add them to the pages instead of page layouts?
    Also how to deploy page layouts/pages from one server to another? Currently we are deploying everything as a feature using sandbox solution. 
    Could you please let me know the right approach to follow. I am asking this question because we are facing below issues:
    - Sometime page layouts gets corrupted, showing nothing.
    - All written filters/logic disappear when we open layouts in Designer
    - Deployment is pain using Sandbox solution
    Waiting for your reply.
    Thanks in Advance,
    Shifa Mittal

    Interesting question, to which i do not know a definitive answer.
    Output Caching is used to increase performance and to reduce load on the box. However since you're in the MS Cloud you don't need to worry about the latter and MS do the worrying about the former. I wouldn't be surprised if MS have updated the behaviour
    for O365 and not updated the documentation. That first office.com article is using 2010 screenshots which doesn't fill me with confidence about it's continuing relevance. Don't forget that SharePoint 2013 and O365 are technically different versions and have
    very different behaviour in places.
    Generally i'd say not to worry, but in this case if you do find any more information i'd love to see it.

  • Problem with interactive forms using ABAP

    Hi all,
        I am trying to create an interactive adobe form using ABAP in ECC 6.0. But while execute the form, it is creating an error saying that
    Exception       SYSTEM_ERROR
    Message ID:          FPRUNX                     Message number:           001
    Message:
    ADS: The render error log file has been written to D:\u(200101)
    But i was able to create adobe interactive form using WebDynpro and its working perfectly. But the problem is while using ABAP method.
    Do anyone have an idea why its happening?
    Thanks and Regards,
    Raja Sekhar

    Hi
    Interactive Forms based on Adobe software is SAP's new solution for forms development. Its first release has the focus on interactive use of forms. High-volume printing is supported in principle, but - being a new solution - the performance has not yet reached the same level as Smart Forms or SAPscript, two established solutions that had years to grow. Interactive Forms is the only solution that will continue to be enhanced with new features, while SAPscript and Smart Forms will be supported without limitations.
    When (or if) to move to Interactive Forms depends on your requirements. For interactive forms usage, i.e. the new functions, you have no choice, as the existing solutions don't support it. High-volume print scenarios need to be carefully analyzed to see whether your concrete requirements can be met at this point.
    However, it is possible to move to Smart Forms and design your forms in such a way that a migration at any point in the future would be but a small step. Smart Forms offers from Web AS 6.40 a migration wizard to Interactive Forms. Technically, everything can be migrated, but we recommend against things like ABAP program nodes, for example.
    You are not forced to ever go to Interactive Forms if you don't want to. It really depends on whether your client needs any of the new features in Interactive Forms. Also, if they are currently working with JetForms, they could enquire with Adobe directly what migration path they offer to the joint solution.
    It is impossible to make a blanket statement on what needs to be done in each of the applications using a form for output. Despite the same underlying technology, forms handling has always been a decision for each SAP application: Some do it through customizing, some through coding, some in yet anither way.
    What I CAN say from a technology pespective is that all applications are in the process of creating their forms based on Interactive Forms so that by 2007 pretty much all SAP forms will be PDF-based. Obviously, each application does it within the framework of their application - but they all use Interactive Forms.
    By the way, be aware that in ERP 2004 this forms solution is subject to a limitation for high-volume printing scenarios as we cannot ensure that ALL customers will be content with the performance in ALL scenarios with this release. (see SAP Note 863893).
    To get an overview idea about Adobe forms ,
    Using SFP , first you need to create a interface . in interface you can declare the import and export parameters and also the declaration part, coding etc : This is nothing but similar to Function module interface.
    And now we have to create the Form which is interactive. Create the form and enter the interface name which you have created in first step, so that the parameters , declarations of fields etc : will be copied and available in the form layout. So that you can drag and drop these declared fields ( dclared fields of interface ) to the layout.
    Create the context and layout in the form.
    The layout generated can be previewed and saved as PDF output.
    Now we need to integrate the driver program and the PDF form to get the final output as per the requirement.
    On activating and executing the form you will get a function module name just similar to smartforms.
    The driver program needs to call this FM.
    Refer to the below sample code :
    DATA : is_customer TYPE scustom.
    DATA : it_bookings TYPE ty_bookings.
    DATA : iv_image_url TYPE string.
    DATA : iv_sending_country TYPE adrc-country.
    DATA : it_sums TYPE TABLE OF flprice_t.
    DATA : docparams TYPE sfpdocparams.
    DATA : formoutput TYPE fpformoutput.
    DATA : outputparams TYPE sfpoutputparams.
    PARAMETERS : pa_cusid TYPE scustom-id.
    SELECT SINGLE * FROM scustom INTO is_customer
    WHERE id = pa_cusid.
    SELECT * FROM sbook
    INTO CORRESPONDING FIELDS OF TABLE it_bookings
    WHERE customid = pa_cusid.
    outputparams-nodialog = 'X'.
    outputparams-getpdf = 'X'.
    *outputparams-adstrlevel = '02'.
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    docparams-langu = 'E'.
    docparams-country = 'US'.
    docparams-fillable = 'X'.
    CALL FUNCTION '/1BCDWB/SM00000043'
    EXPORTING
    /1bcdwb/docparams = docparams
    is_customer = is_customer
    it_bookings = it_bookings
    IV_IMAGE_URL =
    iv_sending_country = 'US'
    IT_SUMS =
    IMPORTING
    /1bcdwb/formoutput = formoutput
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'FP_JOB_CLOSE'
    IMPORTING
    E_RESULT =
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/4a94696de6429cada345c12098b009/frameset.htm
    https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
    /people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
    /people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
    /people/franklin.herbas/blog/2005/12/13/2d-barcode-pdf-forms-with-sap-netweaver
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/82538c0c4458bbe10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    http://www.sap.com/company/press/press.epx?pressID=2785
    http://www.adobe.com/enterprise/partners/sap.html
    http://www.adobe.com/enterprise/partners/pdfs/sap_datasheet.pdf
    look at the Adobe page here in SDN:
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
    Check these links on Adobe forms
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
    It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
    Use the Tcode : SFP
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
    Check these links on Adobe forms
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
    It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
    Very useful
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/00f4f594-7306-2a10-8483-b45bec157093 [original link is broken]
    for PDF forms
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm
    See the links for debugging
    Refer to this thread
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    Debugging
    Check these documents.
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    ABAP Debugging
    http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
    Look at the SAP help link below
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    For online PDF form creation...........
    https://createpdf.adobe.com/index.pl?BP=IE&LOC=en_US
    for Other information use these Links
    C:Documents and Settingsvuser01DesktopSANKET SPersonalVikalpsap netweaver ABAP and adobe Formspdf form webpdf based print forms.htm
    C:Documents and Settingsvuser01DesktopSANKET SPersonalVikalpsap netweaver ABAP and adobe Formspdf form webSAP Interactive Forms by Adobe.htm
    http://searchsap.techtarget.com/generic/0,295582,sid21_gci1079310,00.html?Offer=SAPwn927nw
    http://www.thespot4sap.com/articles/SAP_Netweaver_Introduction.asp
    http://help.sap.com/saphelp_webas630/helpdata/en/cb/f4bc3d42f46c33e10000000a11405a/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c7cbe08d-0c01-0010-8bac-b9ce7348246c?source=gawindev09&kw=sap+netweaver&adgroup=brand_netweaver
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
    https://websmp204.sap-ag.de/~sapidp/011000358700004952682004E
    /people/venkata.ramisetti/blog/2006/09/21/configuring-output-types-for-pdf-based-print-forms
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/96/6ee0d5b39640d68fc0078fc575114a/frameset.htm
    D:adobe livecycle designerAdobe_Designer_71BeforeInstall.htm
    http://sdn.sap.com/irj/sdn/interactiveforms
    very imp ADS configuration guide
    http://help.sap.com/saphelp_nw2004s/helpdata/en/95/5a08cd0e274a0bae559622d6670722/frameset.htm
    Could anyone provide the complete manual of SAP Query Creation
    Tcode is : SFP
    chk these links:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    see these links..
    https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
    /people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
    /people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
    /people/franklin.herbas/blog/2005/12/13/2d-barcode-pdf-forms-with-sap-netweaver
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/82538c0c4458bbe10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    http://www.sap.com/company/press/press.epx?pressID=2785
    http://www.adobe.com/enterprise/partners/sap.html
    http://www.adobe.com/enterprise/partners/pdfs/sap_datasheet.pdf

  • Interactive Adobe Forms using WebDynpro ABAP

    Hi,
    I could able to design and execute my interactive adobe form using webdynpro ABAP. Here what i am doing is i am creating context with my structures and table types  and pdfobject of type xstring  and passing the proper inputs in interactive form properties, in template sources i am provinding the interface and form name of my own choice and it is getting created automatically by the system, every thing works fine here and i could able to execute my form from web dynpro application.
    Here my requirement is i have already created structures and table types after that i went to transaction SFP and created an interace and by using that interface i have created form and i have designed the layout. Now what i want to do is i want to integrate this form in my webdynpro appliction and i want to execute it from webdynpro applicaton. When i try to do i am getting short dump, is my approach feasible or not . kindly suggest. If we can achieve this what is the way to achieve.
    Please do send your suggestions.
    Regards,
    Venkat

    Hi
    When u click on button..u will have to get the data from node which is existing on the Intereactive form and pass it to other view via writing logic in button event handler.
    The data can be displayed in other view as result.
    I hope u got it.
    Provide REWARD points..:-)

  • Using 'Preview Layouts' on specific objects

    Hi everyone,
    I would want to know if it is possible to import CR layouts in SBO, and use it with the menu "Preview Layouts" on personalized objects.
    When I try to import a CR layout with the Report And Layout Manager of SBO, I choose my RPT file, check the Layout radio button, and open the List Of Documents. But in this list, there are no items which correspond to my specific objects, so I can't link my report and my objects, and when I open a record of my object, the menu "File -> Preview Layouts" is disabled.
    So my question is : is it possible to create new Document Types to be able to link my layout and my objects? Or any other solution which can allow me to use "Preview Layouts" on my specific objects?
    Thanks.

    Hello Charly,
    There is a way to add layout on User object. Using a piece of code, you can add your report in the table RDOC putting it in a BLOB field
    SAPbobsCOM.ReportLayoutsService rptService = (SAPbobsCOM.ReportLayoutsService)oCompany.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService);
    SAPbobsCOM.ReportLayout newReport = (SAPbobsCOM.ReportLayout)rptService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayout);
    newReport.Author = oCompany.UserName;
    newReport.Category = SAPbobsCOM.ReportLayoutCategoryEnum.rlcCrystal;
    newReport.Name = "APRS";
    newReport.TypeCode = "TypeCode";
    SAPbobsCOM.ReportLayoutParams newReportParam = rptService.AddReportLayout(newReport);
    newType = rptTypeService.GetReportType(newTypeParam);
    newType.DefaultReportLayout = newReportParam.LayoutCode;
    rptTypeService.UpdateReportType(newType);
    SAPbobsCOM.BlobParams oBlobParams = (SAPbobsCOM.BlobParams)oCompany.GetCompanyService().GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiBlobParams);
    oBlobParams.Table = "RDOC";
    oBlobParams.Field = "Template";
    SAPbobsCOM.BlobTableKeySegment oKeySegment = oBlobParams.BlobTableKeySegments.Add();
    oKeySegment.Name = "DocCode";
    oKeySegment.Value = newReportParam.LayoutCode;
    FileStream oFile = new FileStream("D:\\DEV\\Layouts\\Demo.rpt", System.IO.FileMode.Open);
    int fileSize = (int)oFile.Length;
    byte[] buf = new byte[fileSize];
    oFile.Read(buf, 0, fileSize);
    oFile.Dispose();
    SAPbobsCOM.Blob oBlob = (SAPbobsCOM.Blob)oCompany.GetCompanyService().GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiBlob);
    oBlob.Content = Convert.ToBase64String(buf, 0, fileSize);
    oCompany.GetCompanyService().SetBlob(oBlobParams, oBlob);
    Then you have to associate your form to the reportType using this line of code in your form's constructor:
    oForm.reportType = "ReportType"
    Hoping that can help you
    Best regards

  • Update a system form using XML

    Hi all,
    I'm trying to update a system form by adding a tab (folder). The form is Customer Equipment Card (nb 60150), in the service menu.
    I just want to add a folder called Counter.
    When I load the XML file below, I get the following error :
    System.Runtime.InteropServices.COMException (0xFFFFFFFE): Function not supported on current SBO Version - upgrade is required
    If I want to add a button, it's working, but not a folder.
    Something's false in this XML file (I add the good uid before I load it) ?
    Thanks for your help
    Sébastien

    > - Drop the datasource section
    > The error is gone, but I don't see the folder in
    > in the form
    You could try and check wether it's there but invisible (access it in your code and wait for an exception).
    > - Linkto Objet
    > If you look at the XML code of the form, you can
    > can see that all the folder are links to this item.
    > Moreover, when I add the form using VB (it's working
    > that way), the XML result will show linkto = "54"
    I believe. I analyzed another system form and my own forms: None of the tabs are linked to anything. Is this documented? What does it mean?
    > - the data source is SYS_71 for all the folder of the
    > form. I don't understand what you mean when you want
    > me to set the val_on to this datasource
    I looked at the XML source of another system form and the tabs had val_on="SYS_whatever". With my own forms I set val_off="N" and val_on="Y". I remember having had some problems there, but I can't put my finger on it now.
    > - item group
    > I'm using SBO 6.5, I can't find help on that, maybe
    > it's only on 2004.
    No, it's 6.5. It's not in the documentation but you will find it somewhere inside the guts of this forum. As I said, I once had trouble adding tabs cleanly to a custom form using XML.
    Of course, all this is just blindly stabbing into the dark. What else can we do?

  • F4 help in online interactive forms using ABAP

    Hi,
    Question 1:
                     I am able to get f4 help in online interactive form using ABAP. but after selecting the value from pop-up the value is not populated in PDF field. Can u help regardiing this.
    Question 2:
                     I am able to get f4 help in online interactive form using value help dropdown, first time if i click the dropdown button it is showing the popup, if i click second time it is not showing the popup.
    Thanks & Regards,
    Krishna

    Hi,
    1. I you are woking from the Web Dynpro for ABAP then after binding the Context variable in the view, and in the Adobe Layout Designer from the Library goto WebDynpro Native Tab and drag and drop the Value Help and for this automatically JavaScript is being generated, go that script and edit the line
    Var fieldname = "yourfieldname";
    Note: dont forget to link the context attribute to search help. ie. in the context properties of the attributes select the input help mode as dictionary search help and specify the name of the search help present in data dictionary.
    And now go to Utilities and click on u201CInsert Web Dynpro Scriptu201D.
    Also make sure that you specify the Layout as ZCI Layout in the Propertioes of the Adobe Form.
    2. Only the Submit button , the Enumerated Drop-Down List as well as the Value help button from the Web Dynpro Native library of Adobe LiveCycle Designer are supported. Check SAP Note: 1098009
    Regards
    Pradeep Goli

  • Doubt regarding Adobe forms used for PCR

    Hey all,
    I have a doubt regarding Adobe forms used for PCR.If i goto tc
    <b>SFP->form name (ISR_FORM_SPPM)->Layout->XML SOURCE-->
    <base><server name><port>/sap/bc/fp/form/layout/</base></b>
    But in tc SICF,i do not have anything beyond FP.It goes like this :<b> sicf-> default_host->sap->bc->fp</b> .
    Could this be the possible cause of error why i am not able to view the forms in PDF format?
    Can anyone , who has doen this before, please help me out with this issue?
    Thanks,
    Aditi

    Hi Aditi,
    Are you getting an error when you are trying to access the PDF form ?
    Is ADS installed and configured properly ? Also let me know the operating system you are using, it's version, J2EE and Portal version.
    Regards,
    Sunil

  • Card layout trouble

    I cannot figure out why when I run the program it shows the second card, and will not change when I click on the buttons that should change the card.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.text.*;
    import java.util.*;
    public class Payroll extends JFrame
        // Card Layout to hold panels of GUI
        private CardLayout cardLayout = new CardLayout();
        // panels for various parts of GUI
        private JPanel homePanel = new JPanel();
        private static JPanel filePanel = new JPanel();
        private JPanel processedPanel = new JPanel();
        private JPanel journalPanel = new JPanel();
        private JPanel checkPanel = new JPanel();
        private JPanel stubPanel = new JPanel();
        // contentPane will hold other panels via cardLayout
        private JPanel contentPane;
        //row panels that will be used in various other panels
        private JPanel firstRow = new JPanel();
        private JPanel secondRow = new JPanel();
        private JPanel thirdRow = new JPanel();
        private JPanel fourthRow = new JPanel();
        private JPanel fifthRow = new JPanel();
        //create other data
        private int fileReturnValue;
        private JFileChooser fc = new JFileChooser();
        private File file;
        public Payroll()
            super("Widget Incorporated Payroll");
            contentPane = (JPanel)getContentPane(); // get contentpane
            contentPane.setLayout(cardLayout);  //set its layout to cardlayout
            //create the panels as cards
            homePanel = createHomePanel();
            filePanel = createFilePanel();
            /*processedPanel = createProcessedPanel();
            journalPanel = createJournalPanel();
            checkPanel = createCheckPanel();
            stubPanel = createStubPanel();*/
            contentPane.add(homePanel,"home");
            contentPane.add(filePanel,"file");
            /*contentPane.add(processedPanel);
            contentPane.add(journalPanel);
            contentPane.add(checkPanel);
            contentPane.add(stubPanel);*/
            cardLayout.show(contentPane, "home");
        private JPanel createHomePanel()
            //Create the layout for this panel
            JPanel homePanel = new JPanel(new GridLayout(4,1));
            FlowLayout rowSetup = new FlowLayout(FlowLayout.CENTER);
                firstRow.setLayout(rowSetup);
                secondRow.setLayout(rowSetup);
                thirdRow.setLayout(rowSetup);
            //Create components for this panel
            JLabel hoursWorkedLabel = new JLabel("Default hours worked:");
            JTextField hoursWorkedField = new JTextField("40",2);   
            JButton processButton = new JButton ("Process payroll for all non-terminated employees");  
            JButton closeButton = new JButton ("End Program");
            //Clear all rows
            firstRow.removeAll();
            secondRow.removeAll();
            thirdRow.removeAll();
            fourthRow.removeAll();
            fifthRow.removeAll();
            //Add the components to rows
            firstRow.add(hoursWorkedLabel);
            firstRow.add(hoursWorkedField);
            secondRow.add(processButton);
            thirdRow.add(closeButton);
            //Add the rows to this panel
            homePanel.add(firstRow);
            homePanel.add(secondRow);
            homePanel.add(thirdRow);
            //Add action listeners to the buttons
            processButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    //creates next part of GUI
                    cardLayout.show(contentPane,"file");
            processButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    //Verfies user wants to close program
                    int answer = JOptionPane.showConfirmDialog(null,"Are you sure you want to end the program","Exit",JOptionPane.YES_NO_OPTION);
                    if (answer == JOptionPane.YES_OPTION)
                    System.exit(0);
            return homePanel;
        private JPanel createFilePanel()
            //Create the layout for this panel
            JPanel filePanel = new JPanel(new GridLayout(3,1));
            FlowLayout rowSetup = new FlowLayout(FlowLayout.CENTER);
                firstRow.setLayout(rowSetup);
                secondRow.setLayout(rowSetup);
                thirdRow.setLayout(rowSetup);
            //Create components for this panel
            JLabel chooseFileLabel = new JLabel("Select the payroll file");
            final JTextField fileChooseField = new JTextField(25);
            JButton fileChooseButton = new JButton("Find");
            JButton fileOKButton = new JButton("Process");
            JButton fileBackButton = new JButton ("Back");
            //Clear all rows
            firstRow.removeAll();
            secondRow.removeAll();
            thirdRow.removeAll();
            fourthRow.removeAll();
            fifthRow.removeAll();
            //Add the components to rows
            firstRow.add(chooseFileLabel);
            secondRow.add(fileChooseField);
            secondRow.add(fileChooseButton);
            thirdRow.add(fileBackButton);
            thirdRow.add(fileOKButton);
            //Add the rows to this panel
            homePanel.add(firstRow);
            homePanel.add(secondRow);
            homePanel.add(thirdRow);
            //Add action listeners to the buttons
            fileChooseButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    //Goes back to previous part of GUI
                    chooseFile(fileChooseField);
            fileBackButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    //Goes back to previous part of GUI
                    cardLayout.show(contentPane,"home");
            return filePanel;
        private void chooseFile(JTextField field)
            fileReturnValue = fc.showOpenDialog(filePanel);
            if (fileReturnValue == JFileChooser.APPROVE_OPTION)
                file = fc.getSelectedFile();
            field.setText(file.toString());
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    Payroll frame = new Payroll();
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);           
        }

    I used an example from Encephtalophathic as a guide
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class SimpleCardLO1 extends JFrame
        // first create a CardLayout object
        private CardLayout cardlayout = new CardLayout();
        // contentPane will hold the next two panels via CardLayout
        private JPanel contentPane;
        private JPanel firstPanel;
        private JPanel nextPanel;
        public SimpleCardLO1()
            super("Simple Card Layout");
            contentPane = (JPanel)getContentPane(); // get contentpane
            contentPane.setPreferredSize(new Dimension(160, 80));
            contentPane.setLayout(cardlayout); //set its layout to cardlayout
            // create the two panels held in contentPane as cards
            firstPanel = createFirstPanel();
            nextPanel = createProcessPanel();
            // and add them.  The String helps to recognize which panel is which
            contentPane.add(firstPanel, "First");
            contentPane.add(nextPanel, "Next");
        private JPanel createFirstPanel()
            JPanel firstPanel = new JPanel(new GridLayout(0, 1, 20, 20));
            JPanel buttonPanel = new JPanel();
            JButton nextButton = new JButton("Process");
            buttonPanel.add(nextButton);
            firstPanel.add(buttonPanel);
            nextButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    // to get the next panel, simply call cardlayout's next method
                    // also pass a reference the component that is using the cardlayout as its manager
                    cardlayout.next(contentPane);
            return firstPanel;
        private JPanel createProcessPanel()
            JPanel processPanel = new JPanel(new GridLayout(0, 1, 20, 20));
            JPanel buttonPanel = new JPanel();
            JButton backButton = new JButton("Back");
            buttonPanel.add(backButton);
            processPanel.add(buttonPanel);
            backButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    // to get the previous panel, call the previous method
                    cardlayout.previous(contentPane);
            return processPanel;
        // code to call this program in a thread-safe way
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    SimpleCardLO1 frame = new SimpleCardLO1();
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);            }
    }The example works and mine doesn't and I just can't find the difference
    Edited by: tim.raptorrunner on Jan 17, 2008 8:54 PM
    As far as I can tell it decided to randomly work.

  • IPhoto card layout

    I have iPhoto ver 9.4.3. I am trying to create a flat card but iphoto only alows me to use 4 different card layouts.
    Is there a way to modify the "standard" layouts or create new card layouts other than what iPhoto allows?

    Do you have iWork?  With Pages it's easy to create a collage of photos of any size you want. Just drag the photos from iPhoto onto the Pages layout, resize and place where you want Like this 20 x 30 poster with 96 photos:
    The demo version of OmniGraffle will let you create a layout with 10 photos on it.

  • Verizon VRUC-A (Verizon Re-Use Card-Amount)

    A short time ago in the District of Columbia near, near to me a store was visited, ready associates eager to accept any form of payment from needy customers, one of which, an Eco-conscience consumer requiring a VRUC-50 ( Verizon -
    Re-use card $50 amount) re-activated.
    Many attempts were executed by the readies (CSR's) & Jet-I (MOD's) alike, inevitably it became apparent more training was needed in the ways of the source.
    The question now being asked in this saga, is the VRUC-50 useless? Should efforts to get card service from Walmart cease? Maybe Allie with another CPSP (Cellular Phone Service Provider) after all they may provide the same services for less!
    Additionally it is concluded that the statement posted on the front of the cards, refill, re-use or whatever indicating unlimited talk, text & web simply is not true, only basic models does this apply, such as the lower grade flip phones.
    Despite the fact that the reverse side of the card outlines (in fine print) the terms & conditions are understood by the purchaser, the front is misleading & so the Samsung Galaxy story continues....

    Yeah, you should still be able to use that old sim, you just need to have Verizon reassign your number to that sim card... or you can do so online yourself at verizonwireless.com/activatenow. You will just need your sim number and the imei from the droid ultra.

  • How can I autofill the "Amount" field in my eCommerce form using the "Total" from the shopping cart?

    I've found the tags to display the shopping cart summary elsewhere on the site, so I know there's a way to display the total, but I can't figure out a way to fill in the required "Amount" field in the eCommerce form used to process payments. I'd like that "Amount" field to be filled in automatically using the total in the shopping cart. Can anyone help? Thanks!

    You can use the shopping cart summary tag with custom layout.
    Here's the sample:
    <input type="text" value="{module_shoppingcartsummary template="/ModuleTemplates/Shop/cartsummary.tpl"}">
    Inside the shopping cart summary custom layout is a tag for total amount:
    {tag_currency}{tag_totalAmount} or {tag_totalAmountWithCurrency}

  • Card Layout

    I want to chage this so that when the user clicks the continueButton I want the two radio buttons to be replaced with secondCategoryCheckBox and some other things. I've been trying to learn card layout from the web but no success. If you know will you take a few seconds to edit my code so I can understand card layout . thanks
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.border.*;
    import java.lang.System;
    public class MainPanel extends JFrame implements ActionListener
    private final int ITEM_PLAIN = 0; // Item types
    private final int ITEM_CHECK = 1;
    private final int ITEM_RADIO = 2;
    private JPanel topPanel;
    private JPanel newItemPanel;
    private JRadioButton tigerRadio;
    private JRadioButton bearRadio;
    private ButtonGroup bg;
    private JButton continueButton;
    private JLabel blankLabel; //used to give space between things
    private JPanel newItemDescriptionPanel;
    private JCheckBox secondCategoryCheckBox;
    private JMenuBar menuBar;
    private JMenu menuFile;
    private JMenu menuEdit;
    private JMenu menuProperty;
    private JMenuItem menuPropertySystem;
    private JMenuItem menuPropertyEditor;
    private JMenuItem menuPropertyDisplay;
    private JMenu menuFileNew;
    private JMenuItem menuFileNewAccount;
    private JMenuItem menuFileNewItem;
    private JMenuItem menuFileOpen;
    private JMenuItem menuFileSave;
    private JMenuItem menuFileSaveAs;
    private JMenuItem menuFileExit;
    private JMenuItem menuEditCopy;
    private JMenuItem menuEditCut;
    private JMenuItem menuEditPaste;
    public MainPanel()
    setTitle( "Ebay Organizer" );
    setSize( 310, 130 );
    topPanel = new JPanel();
    topPanel.setLayout( new BorderLayout() );
    topPanel.setBorder (BorderFactory.createTitledBorder ("TopPanel"));
    //topPanel.setPreferredSize(new Dimension (300,300));
    getContentPane().add( topPanel );
    // For New Item Panel
    ButtonListener ears = new ButtonListener();
    blankLabel = new JLabel (" "); // used to give space between radio buttons and continue button
    continueButton = new JButton ("Continue >");
    continueButton.addActionListener (ears);
    newItemPanel = new JPanel();
    newItemPanel.setLayout (new BoxLayout(newItemPanel, BoxLayout.Y_AXIS));
    topPanel.add (newItemPanel, BorderLayout.NORTH);
    newItemPanel.setBorder (BorderFactory.createTitledBorder ("NewItemPanel"));
    newItemPanel.setVisible (false);
    tigerRadio = new JRadioButton ("Tiger" );
    bearRadio = new JRadioButton ("Bear");
    bg = new ButtonGroup();
    bg.add(tigerRadio);
    bg.add(bearRadio);
    tigerRadio.addActionListener (ears);
    bearRadio.addActionListener (ears);
    newItemPanel.add (tigerRadio);
    newItemPanel.add (bearRadio);
    newItemPanel.add (blankLabel);
    newItemPanel.add (continueButton);
    // ------ After continue pressed ---------
    newItemDescriptionPanel = new JPanel();
    newItemDescriptionPanel.setLayout (new BoxLayout(newItemDescriptionPanel, BoxLayout.Y_AXIS));
    newItemPanel.add (newItemDescriptionPanel, BorderLayout.NORTH);
    newItemDescriptionPanel.setBorder (BorderFactory.createTitledBorder ("newItemDescriptionPanel"));
    secondCategoryCheckBox = new JCheckBox ("second category animal");
    newItemDescriptionPanel.add (secondCategoryCheckBox);
    newItemDescriptionPanel.setVisible (false);
    // Create the menu bar
    menuBar = new JMenuBar();
    // Set this instance as the application's menu bar
    setJMenuBar( menuBar );
    // Build the property sub-menu
    menuProperty = new JMenu( "Properties" );
    menuProperty.setMnemonic( 'P' );
    // Create property items
    menuPropertySystem = CreateMenuItem( menuProperty, ITEM_PLAIN,
    "System...", null, 'S', null );
    menuPropertyEditor = CreateMenuItem( menuProperty, ITEM_PLAIN,
    "Editor...", null, 'E', null );
    menuPropertyDisplay = CreateMenuItem( menuProperty, ITEM_PLAIN,
    "Display...", null, 'D', null );
    //Build the File-New sub-menu
    menuFileNew = new JMenu ("New");
    menuFileNew.setMnemonic ('N');
    //Create File-New items
    menuFileNewItem = CreateMenuItem( menuFileNew, ITEM_PLAIN,
    "Item", null, 'A', null );
    menuFileNewAccount = CreateMenuItem( menuFileNew, ITEM_PLAIN,
    "Account", null, 'A', null );
    // Create the file menu
    menuFile = new JMenu( "File" );
    menuFile.setMnemonic( 'F' );
    menuBar.add( menuFile );
    //Add the File-New menu
    menuFile.add( menuFileNew );
    // Create the file menu
    // Build a file menu items
    menuFileOpen = CreateMenuItem( menuFile, ITEM_PLAIN, "Open...",
    new ImageIcon( "open.gif" ), 'O',
    "Open a new file" );
    menuFileSave = CreateMenuItem( menuFile, ITEM_PLAIN, "Save",
    new ImageIcon( "save.gif" ), 'S',
    " Save this file" );
    menuFileSaveAs = CreateMenuItem( menuFile, ITEM_PLAIN,
    "Save As...", null, 'A',
    "Save this data to a new file" );
    // Add the property menu
    menuFile.addSeparator();
    menuFile.add( menuProperty );
    menuFile.addSeparator();
    menuFileExit = CreateMenuItem( menuFile, ITEM_PLAIN,
    "Exit", null, 'X',
    "Exit the program" );
    //menuFileExit.addActionListener(this);
    // Create the file menu
    menuEdit = new JMenu( "Edit" );
    menuEdit.setMnemonic( 'E' );
    menuBar.add( menuEdit );
    // Create edit menu options
    menuEditCut = CreateMenuItem( menuEdit, ITEM_PLAIN,
    "Cut", null, 'T',
    "Cut data to the clipboard" );
    menuEditCopy = CreateMenuItem( menuEdit, ITEM_PLAIN,
    "Copy", null, 'C',
    "Copy data to the clipboard" );
    menuEditPaste = CreateMenuItem( menuEdit, ITEM_PLAIN,
    "Paste", null, 'P',
    "Paste data from the clipboard" );
    public JMenuItem CreateMenuItem( JMenu menu, int iType, String sText,
    ImageIcon image, int acceleratorKey,
    String sToolTip )
    // Create the item
    JMenuItem menuItem;
    switch( iType )
    case ITEM_RADIO:
    menuItem = new JRadioButtonMenuItem();
    break;
    case ITEM_CHECK:
    menuItem = new JCheckBoxMenuItem();
    break;
    default:
    menuItem = new JMenuItem();
    break;
    // Add the item test
    menuItem.setText( sText );
    // Add the optional icon
    if( image != null )
    menuItem.setIcon( image );
    // Add the accelerator key
    if( acceleratorKey > 0 )
    menuItem.setMnemonic( acceleratorKey );
    // Add the optional tool tip text
    if( sToolTip != null )
    menuItem.setToolTipText( sToolTip );
    // Add an action handler to this menu item
    menuItem.addActionListener( this );
    menu.add( menuItem );
    return menuItem;
    public void actionPerformed( ActionEvent event )
    if (event.getSource() == menuFileExit)
    System.exit(0);
    if (event.getSource() == menuFileNewAccount)
    System.out.println ("hlkadflkajfalkdjfalksfj");
    if (event.getSource() == menuFileNewItem){
    newItemPanel.setVisible (true);
    //System.out.println( event );
    private class ButtonListener implements ActionListener
    public void actionPerformed(ActionEvent event)
    if (event.getSource() == continueButton){
    if (!(tigerRadio.isSelected()) && !(bearRadio.isSelected()))
    JOptionPane.showMessageDialog(null, "You must select at least one.", "Error", JOptionPane.ERROR_MESSAGE);
    else{
    if (tigerRadio.isSelected()){
    //newItemPanel.setVisible (false);
    newItemDescriptionPanel.setVisible (true);
    }

    have you used a JTabbedPane?
    a cardlayout is just a JTabbedPane, but without tabs.
    search the swing forum for
    "new CardLayout"
    and you will find plenty of working examples

Maybe you are looking for

  • Log4J: Different config files for different applications?

    Hi all. If you run an application which uses Log4J logging it's enough to place the log4j.xml file in the Classpath. But how do you specify which configuration file to use during startup of a Java programm if they need different configurations but ha

  • Help needed in debugging null pointer exception

    I am debugging one seeded report in R12. It is erroring out with the following error. Calling XDO Data Engine... java.lang.NullPointerException at oracle.apps.xdo.oa.util.DataTemplate.getDataTemplate(DataTemplate.java:281) at oracle.apps.xdo.oa.util.

  • Purchase SD version now, HD version released later...

    Ok so I know there is no official documentation on this sort of thing, but I wanted to know if anybody has any personal experience with this type of situation. I want to buy Batman Begins on iTunes... Unfotunately, it is only available in standard de

  • Pro*C compiled on 11g should load libclntsh.so of 10g

    Is it possible that a program compiled with ORACLE 11g Pro*C compiler to load libclntsh.so of 10g ? My problem is source compiled on 10g works fine for even when connected to 11g database. But it get crashed with compiled on 11g and run in same envir

  • Dates for Backwards scheduling when MRP Run

    Hello experts, When MRP run, which calendar does SAP take to schedule planned orders? where could I indicate it? Thanks in advance. Laura