How to create a Dialog Box with two buttons (Acept and Cancel)?

Hi i am devoloping an application (an applet) that has to throw a Dialog box, if i click on the Acept button makes some thing and if i click on the Cancel button the it makes other things.
how could i throw this dialog message...?
Thanks.

The following would be the code needed for your dialog box:
     JDialog dialog = new JDialog();
     dialog.setModal(true);
     //the following window listener to the dialog box is optional
     dialog.addWindowListener(new WindowAdapter(){
          public void windowClosing(WindowEvent e){
              System.exit(0);
          }//method
     JButton acceptButton = new JButton("Accept");
     JButton cancelButton = new JButton("Cancel");
     acceptButton.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent e){
              //do what you need to do
          }//method
     cancelButton.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent e){
              //do what you need to do
          }//mehthod
     Container cont = dialog.getContentPane();
     cont.setLayout(new BorderLayout());
     cont.add("West",acceptButton);
     cont.add("East",cancelButton);
     dialog.pack();
     dialog.setVisible(true); I hope this would be useful
Rizwan

Similar Messages

  • How to create a dialog window with no button that opens along with the main window?

    When the main window is open, the dialog window opens up immediately and can be closed by key press. At other times, when the next step, ie: decision, comes to, the another dialog window pops up again and is again closed by key press. Does anyone know how to do? Use the sub-Vi? notification method? occurrence method?
    And another thing: how to create a reusable dialog window with no button so that different messages can be sent to it and it can closed by key press. And how to pass the string to the title of the dialog window programmatically?

    For your functionality (If I understand it right), nothing needs to be in the event structure. Pressing any key just triggers the event, thus finishing the VI (there is no while loop).
    Could you tell me what you mean my "it won't run properly"? Make sure that the front panel of the subVI is closed before starting the main VI. Remember that the subVI is set to "open when called" and "close afterwards if originally closed". So, if you had the panel open already, it won't of course close when finished!
    (Actually, the problems is worse when you have the subVI panel open when starting the main VI. you get a catch22 and labVIEW locks up because (1) the subVI is set to dialog and grabs all attention but (2) it has not been
    called, thus the event cannot be triggered. So don't do that!!!! As a quick workaround, add the modification shown in the attached image to ensure the panel of the subVI is closed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CloseNoButtonDialog.gif ‏3 KB

  • How to create a vi project with two ao channel and multi ai channel by customer/producer mode

    I'm a ni elvis ii user.
    i want to create one vi which include 2 AO channel output FGEN and multi AI channel acquisition signal,
    and i wish use cunstomer/producer mode to realize this vi。
    here is the vi,run this vi seveal secends,then pop-up with “完成该操作内存不足”
    anyone can help me?
    thx
    Attachments:
    demo.vi ‏191 KB

    Hi steve ,
    Sorry to say that you cannot configure and acquire from AI channels on a   Device simultaineously from 2 seperate VI's.
    regards
    Dev

  • How to create conditional dialog box

    Hi Everyone
    I am creating a database application in APEX 4.0. In that application a page requires a dialog box, which has to appear when a user clicks on Submit button.
    It has to consider validations and appear after validations and submit button is clicked. Here the Submit button submits the entire page after validations by updating the database table.
    Please help me out how to create a dialog box which has to appear by the click of Submit button.
    Thanks in advance
    Regards
    Sandeep

    Hi Kiran
    Thanks for responding,
    Sorry for providing the complete details.
    Provided link is much more helpful, but its not meeting my needs. My requirement is to just show a popup box after the user clicks on submit button.
    Saying 'Thank you for answering' if he is done with all questions or if he has more questions to answer pop up with different message 'You have more questions to answer'.
    In both the cases page as to get submitted when clicked on Submit button.
    Thanks in advance
    Regards
    Sandeep

  • How can I blur a image with two variables : degree and radius?

    how can I blur a image with two variables : degree and radius?
    a lot of thanks !

    What are the values of these variables supposed to represent?

  • Wondering how to create a text box with variables...

    Hi everyone,
    I was wondering how to create a text box, that at the beginning of the presentation, the audience fills in regarding what they think constitutes the role they have been chosen for.
    I would like that same box to then appear at the end of the presentation, with the text they typed in at the beginning, so they can reflect on what they think now, and what they thought then. I understand this is done using variables, but i'm not 100% sure.
    I hope I've worded this okay!

    This screenshot shows the properties panel, Style tab for the TEB. I relabeled it to My_TEB, used the X button  to create a user variable v_choice that will replace the generic Text_Entry_Box_1/
    This is the properties panel of a Shape, I went in Edit mode (double clicking)to make the Character section appear, where you find the X button. It opens the dialog box 'Insert Variable' and you can choose the var associated with the TEB. The Maximum Length will define how many characters will be displayed, the value of a variable has maximum 256 characters.

  • How to create a check box with an X

    Hi,
    How do you create a check box with an X as apposed to a tick?
    Thanks

    Go to the check box's properties and in the Options tab choose "Cross" as the check box style.

  • Creating a dialog box with OK and Cancel buttons without OADialogPage

    Hi Experts,
    i want to create a dialog box for Delete Confirmation means after clicking on delete it should pop up a small dialog box with OK/Cancel buttons
    and need code for the same to handle the buttons.
    i have created with OADialogPage but its showing in a complete page but i want to show those buttons in a small box.
    Plz help.
    THANKS IN ADVANCE.
    Thanks
    Raja.

    Hi,
    I have not tried using javascript in destination URI as suggested by Mukul.
    I have tried the below code for opening a page as dialog box.
    You can try it for your requirement by creating a dialog page of your own, say XXDialogPage (with OK and Cancel button)
    StringBuffer l_buffer = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    String url = "/OA_HTML/OA.jsp?page=/xx/oracle/apps/fnd/dialog/webui/OADialogPG";
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:500, height:500},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    In dialog page's controller, you can forward it to the page onc ethe user selects OK or Cancel.
    Pass the selected value back to the main page and further you can use it for deleting.
    Regards.

  • How to create Information Dialog boxes in web Dynpro

    Hi,
    'm new to webdynpro.
    Can any body help me to create a dialog box.
    I would like to know how to create dialog boxes of type information, confirmation and warning
    expects reply
    thanks
    smitha

    to create confirmation dialog I tried the code
         IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
        String dialogText = "The email was successfully sent!";
        IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow( dialogText, controllerInfo.findInEventHandlers("ok"), "ok");
        dialog.addChoice(controllerInfo.findInEventHandlers("newEmail"), "new email");
        dialog.open();
    and I got error like:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.clientserver.window.ConfirmationDialogDelegate.<init>(ConfirmationDialogDelegate.java:58)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createConfirmationWindow(ClientComponent.java:926)
         at com.enteg.systallocpkg.LoginView.onActionLogin(LoginView.java:157)
         at com.enteg.systallocpkg.wdp.InternalLoginView.wdInvokeEventHandler(InternalLoginView.java:137)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    I don't know how to solve this
    can any body help me
    Smitha

  • How to create one soap interface with two soap action?

    Hi,
    I need to create one SOAP Interface with two or more webmethods (soap action), for example:
    Interface: MI_Outb_User
    Webmethods: createUser, searchUser, deleteUser.
    Can anybody helpe me?

    Hi Santos,
    I assume you will use one action at a time and depending upon certain condition you want to invoke the webservice and the corresponding action. If this is yes, then please check michaels reply in this thread:
    How can I handle serveral soap actions 
    or see stefans reply:
    Re: Is SOAP Adapter Action field can contain 2 or more "SOAP Actions"
    If this is not, then please ignore it.
    Regards,
    ---Satish

  • How to print a dialog box with all its components ?

    Hi !
    I've written an application.It has a dialog box [JDialog] containing following components:
    1) 2 JLabels.
    1) A JTextField.
    3) A JTable with some values.
    4) A JProgressBar.
    5) A JButton.
    6) An animated gif image.
    I want to print the dialog box with all its components exactly as the are [ Except the button & animated gif ].
    Would anybody please help me?
    My Operating System: Windows XP

    The article over at http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/ has some helpful information on printing Swing components.
    It suggests creating a subclass of the JComponent that you want to print, and have it implement Printable interface.
    So, something like (note, uncompiled / untested code alert) :
    import java.awt.Frame;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.HeadlessException;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import javax.swing.JDialog;
    public class PrintableDialog extends JDialog implements Printable {
          * Or whichever constructor you need...
         public PrintableDialog(Frame owner, String title, boolean modal) throws HeadlessException {
              super(owner, title, modal);
          * Implementation of the Printable interface.
           public int print(Graphics g, PageFormat pf, int pageIndex) {
              if (pageIndex != 0) return NO_SUCH_PAGE;
              Graphics2D g2 = (Graphics2D) g;
              g2.translate(pf.getImageableX(), pf.getImageableY());
              getContentPane().paint(g2);
              return PAGE_EXISTS;
    }Cheers,
    John

  • How to create the composite control with textinput,button and grid.

    I have created the application having two Textinput  and three button and a DataGrid.
    1. on click of first button next to "select a value" , a DataGrid will be open.
    and i am using all the functionality of DataGrid.
    2. now by using all of these control i have required to create single composite control.
    plz help me how to create this composite control.

    Right click the graph and select Create>Property Node. On the diagram, find the property node, right click it and first select Change All to Write. Right click again and if you select Properties, you will see a list of all the available properties for the graph. The properties you want are XScale.Minimum, XScale.Maximum, XScale.Increment, YScale.Minimum, YScaleMaximum, and YScale.Increment. You can grow the single property node to have as many properties that you want. Once you have all the properties created, create front panel controls and wire them to the property node. See the attached picture.
    Attachments:
    graph_properties.jpg ‏16 KB

  • How to create a custom layout with two rows

    hi ,
       i have a requirement of creating the portal page layout with two rows. First row has one container with 100% width and second row has 3 columns (30:40:30).
    How to create the layout?
    what are the modification in portapp.xml?
    Thanks and regards,
    Saravanan

    Hi,
    Check this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/efa44d27a21a7de10000000a422035/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/efbac120711a71e10000000a422035/content.htm
    Here is example portalapp.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <!THIS FILE IS A COPY OF THE ORIGINAL VERSION STORED IN THE PCD. PLEASE DO NOT CHANGE IT!>
      <application-config>
        <property name="Vendor" value="sap.com"/>
        <property name="SecurityArea" value="NetWeaver.Portal"/>
        <property name="SharingReference" value="com.sap.portal.htmlb,com.sap.portal.useragent,com.sap.portal.pagebuilder"/>
      </application-config>
      <components>
        <component name="fullWidth">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="1 Column (Full Width)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying one full-width column"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="fullWidth.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConF"/>
            </property>
          </component-profile>
        </component>
        <component name="light_fullWidth">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 1 Column (Full Width)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying one full-width column"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_fullWidth.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConF"/>
            </property>
          </component-profile>
        </component>
        <component name="narrowWide">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="2 Columns (Narrow:Wide)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the left"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="narrowWide.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_narrowWide">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 2 Columns (Narrow:Wide)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the left"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_narrowWide.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="wideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="2 Columns (Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the right"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="wideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_wideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 2 Columns (Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the right"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_wideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="equalWidths">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="2 Columns (Equal Widths)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying two equal-width columns"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="equalWidths.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_equalWidths">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 2 Columns (Equal Widths)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying two equal-width columns"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_equalWidths.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="narrowWideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="3 Columns (Narrow:Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Three columns displayed in a narrow:wide:narrow layout"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="narrowWideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConM"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont3" value="column3">
              <property name="plainDescription" value="Column 3"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_narrowWideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 3 Columns (Narrow:Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Three columns displayed in a narrow:wide:narrow layout"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_narrowWideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConM"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont3" value="column3">
              <property name="plainDescription" value="Column 3"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    Greetings,
    Praveen Gudapati

  • How to  create a selection screen with two tab strips

    Hi Experts,
    I need to craete a selection screen '100' with two tab strips, in the 1st tab strip i need create some select options as subscreen and in other tabstrip i need to call the subscren '4000' of the program 'SAPLCTMS' . i need to call this screen as selection screen from the zprogram. please help me out.
    Thanks in advance...
    Sarath...J

    Hi,
    I have developed some code.
    It just displays a table control and after entering the values init, upon hitting the return button, the values will be put into table itab. Have a look and make necessary changes as you see fit.
    *& Report  ZMADHU_TBCNTL
    REPORT  zmadhu_tbcntl.
    DATA: BEGIN OF itab OCCURS 0,
         sel TYPE s_flag,
         matnr TYPE matnr,
         ersda TYPE ersda,
         ernam TYPE ernam,
      END OF itab.
    CONTROLS: tab_cntl TYPE TABLEVIEW USING SCREEN 100.
    *START-OF-SELECTION.
    CALL SCREEN 100.
    *END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'TABCNTL'.   "pf status
    SET TITLEBAR 'xxx'.
      CASE sy-ucomm.
        WHEN 'BACK' OR
             'CANCEL' OR
             'EXIT'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  ITAB_MODIFY  INPUT
          text
    MODULE itab_modify INPUT.
      CASE sy-ucomm .
        WHEN ' '.        " When pressed enter
    if itab-sel = 'X'.
          MODIFY itab INDEX tab_cntl-current_line.
          APPEND itab.    " append lines to internal table
          CLEAR itab.
    *endif.
      ENDCASE.
    ENDMODULE.                 " ITAB_MODIFY  INPUT
    *Screen 100 flow logic.
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      LOOP AT itab WITH CONTROL tab_cntl CURSOR
      tab_cntl-current_line..
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE select_data.
      LOOP .
        CHAIN.
          FIELD itab-matnr.
          FIELD itab-ersda.
          FIELD itab-ernam.
          MODULE itab_modify ON CHAIN-REQUEST.
        ENDCHAIN.
      ENDLOOP.
    MODULE USER_COMMAND_0100.
    Hope it will helps to u.
    Thanks,
    Shankar

  • How to create a dropdown menu with sub buttons that link back to the labels on click.

    im trying to create a dropdown menu buttons that when you rollover to the top central button the button it opens up like a drop down menu would containg two other subsectional buttons. This makes the sub sectional buttons seperate from the main stage making it difficult to simply give them a on click,  sym.play("label") function.
    the buttons work like this in symbols or sections stage/panel/homebutton inside home button is group dev containg another group dev containg the button which I need to link back to a "label" in the /panel/ symbol or section. Thank you very much.

    pdp_1 wrote:
    Hi!
    I would like to create a DVD menu that offers two languages. So the first page gives two options: Language 1 and Language 2. Then depending on which language you choose, you go to a menu that proposes different videos and a photo slideshow.
    Regardless on which language button you click on initially, you get the same content but in different languages.
    I've been looking at Premiere's templates, which I can certainly customize, but I really don't see how to create the double menu. Does anybody have an idea?
    Put the video with the first language on the timeline followed by the video with the second language.  Use chapter markers so you can have each video as a chapter in the menu.
    I use Premiere Pro, so I can't give more specific directions. Perhaps somebody like ATR will chime in.
    Also, I have another question: can I put videos from different projects in the same DVD with Premiere or must all of the videos that go into the DVD be in the same project?
    Thank you very much!!!
    pdp1
    They must be in the same project.

Maybe you are looking for