How to catch clicking a radiobutton action?

Hello!
I want to disable some components within a screen after I click a radiobutton, but I don't know how to catch the clicking radiobutton action (or event?). Could anyboby give me some ideas? Thanks in advance!
kt

Have you tried adding ItemListener? this should work....
<CODE>
jpanel extends JPanel implements ItemListener
private JRadioButton;
public jpaenl()
rad = new JRadioButton("myradiobtn");
add( rad )
rad.addItemListener( this );
public void itemStateChanged( ItemEvent e )
if( e.getItemSelectable() == rad )
//todo code here

Similar Messages

  • How to catch click event on BAR or a BAR GRAPH???

    Hello
    I want to implemnt following things,
    1. there is Bar Graph containing 10 Bars.
    2. So i want to navigate to 10 diff. pages on click of each bar.
    So how to catch click event on BAR or a BAR GRAPH.????

    Hi,
    You can set Destination URI on a graph. The URL can be specifically associated to a particular data point plotted in the graph.
    Detail for the same is provided in OAF developer guide under 'Charts and Graphs' topic.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to catch click event on a link from an applet

    how to catch click event on a link from an applet

    The applet has to call a mouse listener:
    public class Applet extends Applet
                   implements MouseListener, MouseMotionListener
    The mouse methods must be included, here is the one to catch a click
    public void mouseClicked(MouseEvent e)

  • How to capture "Click" or "MouseOver" actions of SelectOneChoice.

    Hi All,
    I want to show a popup with some text + hyperlink when user either clicks or mouseover the selectOneChoice.
    I can't use ShortDesc because the tooltip contains a hyperlink as well.So i created a method in managed bean and raising a popup using that.
    Right now i used below.But it's triggers only if there is a value selected and that too if there is a change in value.
    But i wanted it whenever we just click on SelectOneChoice and need not necessarily select anything.
    <af:selectOneChoice label="Testing" id="soc1" autoSubmit="true" valueChangeListener="#{RamaBean.test}">
    Thanks,
    Sid.

    Hi,
    I am new to ADF Faces,May be i am not getting your solution.
    The selectOneChoice is not allowing to place the ServerLsitener inside it.So coded as below.
    It's not working.Can you take a look.
    JSPX_
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:resource type="javascript">
    function showPopupFromAction(event) {
    var source = event.getSource();
    AdfCustomEvent.queue(source,"slPopup", {}, true);
    </af:resource>
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:selectOneChoice label="Testing" id="soc1">
    <af:selectItem label="Test" value="Test" id="si1"/>
    <af:selectItem label="Test1" value="Test1" id="si2"/>
    <af:clientListener method="showPopupFromAction" type="focus"/>
    </af:selectOneChoice>
    <af:serverListener type="slPopup" method="#{RamaBean.serverListener}"/>
    <!-- <af:commandButton text="commandButton 1" id="cb1"
    action="#{RamaBean.cb1_action}"/> -->
    <af:popup id="popup" binding="#{RamaBean.popup}">
    <af:panelWindow title="Business Type" id="btid2">
    <af:outputText id="btot7" value="Please consult the "/>
    <af:goLink id="gl21" text="Catalogue of Standard Parts" destination="http://lifelink.corp.life/docs/DOC-76129"/>
    <af:outputText id="btot41" value=" prior to creating a new lower-level instrument-related SKU"/>
    </af:panelWindow>
    </af:popup>
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:preferred-managed-bean-name:RamaBean-->
    </jsp:root>
    Managed Bean_
    public class Rama {
    private RichPopup popup;
    public Rama() {
    public void setPopup(RichPopup popup) {
    this.popup = popup;
    public RichPopup getPopup() {
    return popup;
    public void serverListener(ClientEvent clientEvent) {
    // Add event code here...
    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    popup.show(ph);
    Where am i missing.?
    Thanks,
    Sid.

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • How to change images based on action.Even clicking changed images should ?

    how to change images based on action.
    Even clicking changed images should do respective actions.
    and while displaying only one image at a time sholud get displayed.
    I am using three images for a single column of a table in Jsp.
    Any clues.
    Any link for any good javascript html jsp site where i can find some good solution.
    vijendra

    In broad way if i say i have multiple situations in mutiple tables where i need such a logic to operate in for all tables.
    lets say in first time load of page by default one image will be displayed (one with sorted order for first column rest all non sorted)Now after every click to any image respective sort should get called.along with all images should get changed.Here with every function one/two images will get effect at least.
    As in first if i say sort by desc then this image will change rest all will remain in unsort form.
    when i move to other column and click on new image the previos will convert to unsort and new one will convert to sort by ascending. rest all will be in unsort form as it is.
    Now it seems like same logic is required with two three conditions.
    even for everyaction different parametrs has to be passed at differnt situations.
    Any good idea if someone can suggest.
    I will be very greatful for him.
    thanks
    vijendra

  • How to catch menu click events from B1AddOn Wizard

    Dear Friends,
    I'm adding some custom menus to the SAP BO main menù using B1 Addon Wizard generated code, but then I don't know how to catch the events generated by the menus.
    Thank you for attention
    Massimo

    Thank you Eddy,
    I had a look at the help, but there it is not explainsed that events can be attached only to string menus!!
    It was attempting to do something wrong.
    A further question: is it possible to add new menus and related events to an existing project (I tried with new item and then B1 Addon Component, but it doesn't let me add new menus)?
    Thanks again
    Masimo

  • To catch click event on a picture on screen

    How to catch the click event on a picture on screen? Please answer with code.
    regards
    agn

    Try this code....
    REPORT  zaby_pic.
    CLASS cl_picture_click DEFENITION.
    PUBLIC SECTION.
    METHODS: picture_yclick FOR EVENT picture_click of cl_gui_picture IMPORTING mouse_pos_x mouse_pos_y.
    ENDCLASS.
    CLASS cl_picture_click IMPLEMENTATION.
    METHOD: picture_yclick.
    Perform onclick. "write the action of click in this form.
    ENDMETHOD.
    ENDCLASS.
    DATA: obj_cl_picture_class TYPE REF TO cl_picture_click.
    DATA: it_event_picture TYPE TABLE OF cntl_simple_event,
          wa_event_picture TYPE cntl_simple_event.
    MODULE status_001_output.
    wa_event_picture-eventid = cl_gui_picture=>eventid_picture_click.
    wa_event_picture-appl_event = 'X'.
    APPEND wa_event_picture to it_event_picture.
    CALL METHOD h_picture->set_registered_events
    Exporting
        events = it_evet_picture
    Exceptions
        cntl_error                = 1
        cntl_system_error         = 2
        illegal_event_combination = 3
        OTHERS                    = 4.
    CREATE OBJECT obj_cl_picture_click.
    SET HANDLER obj_cl_picture_click->picture_yclick FOR h_picture. "h_picture is the object of class cl_gui_picture.
    ENDMODULE
    ...................Hope this code will help you. Thanks.

  • How to catch and display a link content in another portlet page?

    Can you tell me how to display a URL content into next page after an user click s on this link? I am developing a JSR 168 portlet under a Portal. I have 3 pages so far in my portlet. view.jsp, view2.jsp and IpByHourPage.jsp. view2.jsp displays a lis of IP address. When an user clicks on an IP in view2.jsp, it goes to IpByHourPage.jsp. How to catch the IP address such as 123.23.89.21 that an user just click displayed in IpByHourPage.jsp. I don't know why I got null value returned.
    Also, I don't know how to do a "go back to previous page". I want to go back to view2.jsp from IpbyHourPage.jsp
    Here is my code
    in view2.jsp
    <portlet:renderURL var="aURL">
    <portlet:param name="goto" value="IpByHourPage"/>
    </portlet:renderURL>
    <a href="<%=aURL.toString() %> "><%=MyIP%></a>
    in IpByHourPage.jsp
    <%
    String MyIPHour = request.getParameter("goto");
    %>
    <h1>IP Report by Hour ( <%=MyIPHour%> )</h1>
    <portlet:renderURL var="Ret_IPByHour">
    <portlet:param name="Ret_IPHourPage" value="Ret_IPByHourPage"/>
    </portlet:renderURL>
    <center> <a href="<%=Ret_IPByHour.toString() %> "><b>Choose Another IP</b></a></center>
    in my .java file
    protected void doView(RenderRequest request, RenderResponse response)
    throws PortletException, IOException, UnavailableException {
    response.setContentType("text/html");
    String MyBegDate = request.getParameter("BegDate");
    String MyEndDate = request.getParameter("EndDate");
    String MyNetworks = request.getParameter("networks");
    String MyYourName = request.getParameter("yourname");
    PortletURL renderURL = response.createRenderURL();
    renderURL.setPortletMode(PortletMode.VIEW);
    request.setAttribute("renderURL", renderURL.toString() )
    String GotoRenderAction = request.getParameter("goto");
    String MyIPHourAction = request.getParameter("Ret_IPHourPage");
    if ( (MyIPHourAction!=null) && MyIPHourAction.equals("Ret_IPByHourPage") )
    PortletRequestDispatcher kk = getPortletContext().getRequestDispatcher("/view2.jsp");
    kk.include(request, response);
    if (MyIPHourAction != null && MyIPHourAction.equals("Ret_IPByHourPage"))
    PortletRequestDispatcher mm = getPortletContext().getRequestDispatcher("/view2.jsp");
    mm.include(request, response);
    if (GotoRenderAction != null && GotoRenderAction.equals("IpByHourPage"))
    request.setAttribute("BegDate", "MyBegDate");
    request.setAttribute("EndDate", "MyEndDate");
    System.out.println("BegDate" + MyBegDate);
    System.out.println("Endate" + MyEndDate);
    PortletRequestDispatcher mm = getPortletContext().getRequestDispatcher("/IpByHourPage.jsp");
    mm.include(request, response);
    if(MyEndDate!= null )
    PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/view2.jsp");
    prd.include(request, response);
    else if (MyEndDate==null && GotoRenderAction == null)
    PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/view.jsp");
    prd.include(request, response);
    The problem for above code is the clicked single IP can not be displayed in IpByHourPage.jsp. and I cannot go back to view2.jsp from IpByHourPage.jsp. when I click "Choose Another IP"
    I find out that the MyBegDate and MyEndDate values are all null when I click Choose Another IP link. I got the following error message
    Caused by: javax.servlet.ServletException: Unparseable date: "null null"
         at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
         at org.apache.jsp.view2_jsp._jspService(view2_jsp.java:651)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    How to fix above problems. Thanks

    I think the problems are related to portletsession. But I don't know how to use it. How to put portletsession into doview method or my jsp pages. Can anyone tell me in my code? Thanks a lot.

  • I'm wanting to use the "Actions" in Photoshop Elements 11.  But when I get the Actions box up, it is only showing a small list of effects to use.  And no side bar to go any further.  When I click on the little arrow at top and then click on "load actions"

    I'm wanting to use the "Actions" in Photoshop Elements 11. But when I get the actions box up, it is only showing a small list of effects to use. And no side bar. So I can't go any further.  When I click on the little arrow at top and click on "load actions", I am only getting a box with empty space saying "No items match your search".  The folder at the top does say "Actions".  How do I get more effects?  The tutorials that I've checked into all show a long list of effects in their box.  Can anyone help? 

    To use the existing actions, try the following:
    1. Open one of the Action Sets, in this example Special Effects is the Action Set, by pressing the small arrow beside the set name.
    2. Then click on the name of the Action, in this example Faded Ink is the Action name.
    3. Then press the Play button to run the action.

  • When  click the Payment Action "Format " gets the error

    Dear all:
    When do the AP payment click the Payment Action "Format " gets the error as follow , how can I solved the problem?
    =========================================================================
    LOGFILE :
    Oracle 應付帳款管理系統: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    C050_CAPPBFOR_HS module: C050 HS HKD Check Payment Format
    目前的系統時間是 07-01-2010 12:04:30
    +-----------------------------
    | 正在啟動並行程式的執行...
    +-----------------------------
    引數
    P_PAYMENT_BATCH='快速付款: 識別碼=1031163'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    TRADITIONAL CHINESE_AMERICA.UTF8
    MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Get_Base_Curr_Data
    MSG-00800: Getting Payment Batch details....
    MSG-00900: Payment Batch does not exist.
    MSG-00955: Deleting AP_CHECKRUN_CONC_PROCESSES record....
    REP-1419: 'beforereport': PL/SQL 程式異常中止.
    Report Builder: Release 6.0.8.20.2 - Production on 1 01 7 12:04:29 2010
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    輸入使用者名稱:
    Plsql 程式的日誌訊息開始
    PlSql 程式日誌訊息的結束
    程式 以狀態 1 結束
    為並行請求 4280108 執行 Oracle*Report 時, '並行管理程式' 發生錯誤.
    有關詳細資訊, 請查閱並行請求日誌檔及/或輸出檔.
    正在執行請求完成選項...
    已完成請求完成選項的執行.
    並行請求已完成
    目前的系統時間是 07-01-2010 12:04:30
    APPSTAND : 11.5.33
    APXINWKB : 11.5.564.11592.22
    APXPAWKB : 11.5.319.1159.21
    FNDCPVWR : 11.5.15
    FNDRSRUN : 11.5.129
    FNDSCSGN : 11.5.111
    ==========================================================
    Regards
    Edited by: Terry Chen on 2010/1/6 下午 8:20

    Hi terry;
    Please follow below and see its helpful for your issue:
    JEDEREFD Errors With Msg-00900: Payment Batch Does Not Exist. [ID 438680.1]
    Error When Creating A Quick Payment Through The Invoice Workbench - Pay In Full APXPBFEL [ID 566027.1]
    JEPTBFOR Errors With REP-1419, MSG-00901 [ID 433323.1]
    APXPBFOR - Format Payments : Program Aborted With Error REP-1419 When Run From NLS Responsibility [ID 257075.1]
    Regard
    Helios

  • How to Disable the Lead selection Action on aTable n How to Refreh a Page

    HI....
    1)How to Disable the Lead selection Action on aTable n How to Refreh a Page r web dynpro application.
    In my case i have a table n user enters data on multiple rows in table , n i have some input fields outside of table for those Inputs fields am settiing the data  at the screen initilization(in Init() moethod by hard code).the problem is whenever the is clicking in th 2nd row of a table the Lead Selection is triggerig and the data in the Input Fields outside the table is not displayinig.
    So by removing the lead Selection Action of a table i thought i can reslove this,
    2) How to refresha page(like we click F5 on key board),is it can be done thru code in web dynpro application
    Regards
    Rajesh

    Hi,
    You did not explained what is your functionality or coding in leadselection. Is that action on leadselection is necessary for you?.
    1)If you just want to remove the action then go to table properties and remove the action for leadselection.
    2)If you still want to continue with your leadselect action, then what you can do is.. write the code in leadselection action to again set the input fields which are out from table.  That is what you did in your init method.
    Page Refreshing
    3) What do you mean by page refreshing? is that refreshing your table only or both the table and input fields. 
         What I understood is you are allowing the user to enter values in table and soon after pressing a button the values should be saved and the data in input fields shld be deleted.  For this if you only invalidate the node then the user entered data will be lost. 
    So what you do is after getting the input data from the user add it to a ArrayList and then invalidate the node which clears the data in input field. Finally bind the Arraylist to your node.  see the following code. This is a concept make changes according to your requirement
    ArrayList list1=new ArrayList();
    wdContext.nodeAbc().bind(list1);
    IPrivateExcelviw.IAbcElement ele = wdContext.createAbcElement();
      ele.setNo(wdContext.currentAbcElement().getNo());
      ele.setName(wdContext.currentAbcElement().getName());
      ele.setMarks(wdContext.currentAbcElement().getMarks());
      list1.add(ele);
      wdContext.nodeAbc().invalidate();
    wdContext.nodeAbc().bind(list1);
    Revert me if you have any doubts
    Regards
    Raghu
    Edited by: Raghunandan Madarikuruva on Oct 16, 2008 8:07 AM

  • How to get the Application perform actions when exits?

    How to get the Application perform actions when user clicks on the "X" icon in the top right hand corner?
    OR
    If i placed an Exit Button.... when actions that i need to use to allow my application to perform a certain action when it exits?
    Thanks

    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        // do your stuff here
    });The WindowListener and WindowEvent can be found in java.awt.event package
    //David

  • How to catch the ApplicationStart event??

    how to catch the application start event??
    i want to do some actions (Java code) that will be run once when the application started
    this like ApplicationStart event in ASP.NET
    how ???

    Google for javax.servlet.ServletContextListener. You need to write a class that implements this interface and register it in web.xml.
    Please ask questions like this in the JDeveloper or OC4J forum since they are not related to JHeadstart.
    Steven Davelaar,
    JHeadstart Team.

  • How to Catch External device's Event

    hi frndz
    i connected Dental Web Camera in my PC.i want to capture his click event.can i capture its click event.
    or any other way to catch its generated event.
    actually i want to store picture(Taken from Camera) into database.
    can u help me to solve this problem or can u provide me any solution
    thanks in advance
    Edited by: ajju29 on Mar 20, 2009 2:40 AM

    IMO:
    If Your camera don't ofer any SDK, you should check OS API and next search how catch events in your OS.
    if you develop for windows, check msdn.microsoft.com
    this links i find in google, maybe can help you"
    http://www.velocityreviews.com/forums/t130113-swing-how-to-catch-all-events.html
    http://www.experts-exchange.com/Programming/Languages/Java/J2SE/Q_23643749.html *(you must pay)
    http://www.javareference.com/jrexamples/viewexample.jsp?id=9
    http://www.microdoc.com/download/EDFoop2000_EN.pdf
    and more,
    ask google.
    Edited by: Skowroniasty on Mar 20, 2009 10:52 AM

Maybe you are looking for

  • Officejet J4680 and windows 8.1

    I went to the drivers section for my OfficeJet J4680 printer and downloaded the Full download for the printer so that I could install in on my new windows 8.1 64bit desktop pc.  I had not problem installing or connecting the printer to the desktop (w

  • Help! IPOD clickwheel doesn't work!

    hi guys, I just wanna get some help.. I dropped my IPOD last night, then the IPOD itself, its working.. But the clickwheel doesnt even work.. The display clearly shows up, the hold button completely works, but the clickwheel doesn't work.. what shall

  • How do i know if i'm connected to wifi??

    I have wifi at home and when i try to connect the phone it just does not seem to do it. Am i missing something? is there somewhere on the phone that shows it's connected? help???

  • Help - lost icons in finder window

    Hi, Somehow i lost some icons, and i can't get them back. When I click on the HD icon, i get the finder window. Listed are: network, MacHD - a line, then: Desktop, User Icon, Applications, Pictures, and Favorites. I almost positive I also had a Music

  • Mov. type  313

    Hi, In what situation mov. type 313 will use, what the purpose ?? in t-code MB1B. Thanks.