Getting to Objects in Dialog

I have created a JDiaolg box in the UI editor. This Dialog has a JTextArea object. The Dialog is instantiated in say class myClass as myDialog. How do I get to the setText method of the JTextArea in myDialog.
myDialog.setText( "Test Text String" ) produces a compile error saying JDialog does not have a method "setText()". I know it does not but JTextArea does. How do I get to the JTextArea methodes ?

Never mind, I figured it out. Thanks anyway

Similar Messages

  • In Object Properties dialog box, modify "tab path"...

    For FrameMaker versions up to and including 8 (and I suspect 9).
    Select a graphic, then click in sequence
    ESC g o to open the
    Object Properties dialog box. By default the dialog box opens with the insertion point in the
    Width text entry area.
    Now press TAB four times: The insertion point moves sequentially to the
    Height,
    Top,
    Left, and then
    Color text entry areas.
    I wish the last movement, to the
    Color text entry area, was replaced with movement to the
    Percent text entry area. This would enable me to use the keyboard to efficiently configure the size, position, and scaling of a graphic.
    As it is, I virtually never need to select the graphic's
    Color text entry area and the movement of the insertion point to that essentially useless tool drives me crazy: It makes me TAB all the way 'round the dialog box or grab the pointing device to get it to the
    Percent text entry area...
    Cheers,
    Riley

    Odd... What does your properties dialog look like? Can you post a screenshot of the dialog box? Also, what version of LabVIEW are you running?
    Message Edited by smercurio_fc on 06-03-2008 04:56 PM

  • Java - best practice for getting values from complex dialogs

    Hi,
    Java is a language I use quite a bit, but much of my work hasn't required GUIs. Now, I'm developing an app which will contain a number of custom-made dialogs (which will obviously extend JDialog). Take a typical Options dialog which typically stores many parameters for a given application.
    Simple dialogs that ship with Java allow to 'get' a given value. As they assume that the dialog only consists of obtaining a single piece of data, think JFileChooser.
    So, what is the best way to cope with a dialog that could potentially hold hundreds of parameters? It's surely unfeasible to implement getters for each field. I was thinking either creating a hashmap object to hold key-value pairs, and 'get' that from the dialog. Or, I could encapsulate that a little more by creating a new class that manages these values, ProgramOptions or such like. That can be passed around between the dialog and the main app.
    I hope this makes sense
    TIA

    sudman1 wrote:
    I doubt it's the most efficient method, but the way I've delt with things like this in the past is to set up the fields in either an Array or ArrayList, then use a for loop that gets the data and drops it into an Array/ArrayList which is then returned.
    class MyDialog extends JDialog {
    // Global variable
    private ArrayList dialogFieldsArray= new ArrayList();
    private void initGUI() {
    for (int i=0 ; i <numRequiredFields ; i++) {
    dialogFieldsArray.add(new JTextField(10));
    private ArrayList getDialogData() {
    ArrayList rval = new ArrayList();
    for (int i=0 ; i < dialogFieldsArray.size() ; i++) {
    String tempString = ((JTextField) dialogFieldsArray.get(i)).getText();
    rval.add(tempString);
    return rval;
    The only thing to remember with the above method is the castings involved, but you could implement your own subclasses of ArrayList that deal only with JTextFields and Strings seperately to get around that.
    I personally wouldn't go for this exact style, instead I'd opt for a Map collection instead. This because you need to know which field is at which exact index. Imagine you make a form that has the fields: forename, surname, date of birth. And so you know that forename is .get(0) of your ArrayList, etc.
    But then, you decide to put a new field, saluation (Mr, Miss, etc) at the beginning. This now shifts all your olds fields along by one, and so you need to edit that code. Sure, no biggie with a handful of fields, but large dialogs could cause headaches.

  • Service Objects with Dialog duration

    m
    Hi Forte`ans,
    I am trying to listen to an event from a service object which has a
    dialog duation of Message.The service object is configured for
    failover.
    I get an exception ( not an error message ) saying :
    SYSTEM ERROR: Invalid attempt to register for an event on an object of
    class (CKBaseServiceMgrProxy) which has a dialog duration of
    message. The
    semantics of message duration do not guarantee that the same object
    instance will service each message, which is in conflict with the
    semantics of event registration (which requires that the same object
    instance to which the event is registered for generates the event;
    these are two separate actions). To disable this restriction,
    restart this process with cfg:do:4 specified.
    If I make the dialog duration of the SO Session, it works without
    screaming.
    Does this mean I cannot listen to events from such SO( Failover
    enabled with Message duration?) Is it because the event loop may still
    point to the failed SO and Forte wants to avoid such situations???
    Can somebody throw some light on this..?
    Thanks
    Ajith Kallambella M
    International Business Corporation.

    We ran into this same problem when converting an application from R1 to
    R2. In R1, you were allowed to do this. However, Forte won't
    guarantee, even in a non-replicated, non-failover partition, that it
    won't swap objects under certain situations unless the dialog duration
    is session. If this happened, you would lose your registration and not
    even know it. The recommended solution is for the client partition to
    pass a reference to an object anchored in its partition to the service
    object in the remote partition. The service object can then post events
    on the anchored object, which is guaranteed to be there during the life
    of that client partition. The logger flag was designed for backwards
    compatibility. It's not really recommended, but it's not supposed to
    have much overhead if you do use it. We already had a client
    notification architecture in place, so we re-worked our application to
    use it in the cases where we had been using direct registrations. Hope
    this helps -- Chris
    Chris Kelly, IS Architect
    Andersen Windows
    From:
    [email protected][SMTP:[email protected].
    net.in]
    Sent: Thursday, September 18, 1997 1:44 PM
    To: [email protected]
    Subject: Service Objects with Dialog duration
    m
    Hi Forte`ans,
    I am trying to listen to an event from a service object which
    has a
    dialog duation of Message.The service object is configured for
    failover.
    I get an exception ( not an error message ) saying :
    SYSTEM ERROR: Invalid attempt to register for an event on an
    object of
    class (CKBaseServiceMgrProxy) which has a dialog duration of
    message. The
    semantics of message duration do not guarantee that the same
    object
    instance will service each message, which is in conflict with
    the
    semantics of event registration (which requires that the same
    object
    instance to which the event is registered for generates the
    event;
    these are two separate actions). To disable this restriction,
    restart this process with cfg:do:4 specified.
    If I make the dialog duration of the SO Session, it works without
    screaming.
    Does this mean I cannot listen to events from such SO( Failover
    enabled with Message duration?) Is it because the event loop may
    still
    point to the failed SO and Forte wants to avoid such
    situations???
    Can somebody throw some light on this..?
    Thanks
    Ajith Kallambella M
    International Business Corporation.

  • Could not get schema Object:java.sql.SQLSyntaxErrorException ora-904

    All of a sudden I get
    Could not get schema Object:java.sql.SQLSyntaxErrorException: ORA-00904: "SYS"."O"."NAME": ongeldige ID
    when doing anything in the tables tree in the connections pane
    The only thing I set recently is pga_aggregate_target
    Environment
    Oracle 11.2.0.1
    OS Windows Vista Ultimate sp2
    Sql developer 2.1.1.64.39 with its own JDK
    As the download links on OTN are broken I can not upgrade, and I'd rather not work in command line sqlplus.
    Help!!!
    Sybrand Bakker
    Senior Oracle DBA

    My copy of sqldeveloper isn't located in that directory. Would that matter?
    In the mean time I have disabled filtering the tables node. Opening the tables node doesn't result in exceptions anymore.
    Now, when I click on any table in that node I get 4 identical ora-904 error messages for sys.o.name for any table.
    Apparently it is querying either the all_objects view and it thinks it is querying sys.obj$.
    I didn't yet enable sql_trace for the session, I'm more or less giving up on sqldeveloper. I can not use the space bar in any datagrid, sqldeveloper has always been extreemly unresponsive when navigating the schema browser (as opposed to Toad), etc, etc. Too bad I bought Sue Harpers book, but I think I will be de-installing sqldeveloper soon.
    Sybrand Bakker
    Senior Oracle DBA

  • Getting Duplicate Object existing issue while deploying the BIAR file

    Hi All,
    We are trying to deploy BIAR File with XI R2 Command tool InstallEntSdkWrapper. But we are getting Duplicate Object exixting issue while deploying the BIAR file.
    Error Message:
    [report] [InstallEntSdkWrapper.main] Connecting to CMS plmdevapp31:6400 as administrator
       [report] [InstallEntSdkWrapper.CmsImportFile] Exception: An error occurred at the server :
       [report] Failed to commit objects to server : Duplicate object name in the same folder.
       [report]
       [report] [InstallEntSdkWrapper.main] BIAR File could not be imported
    If we are doing any promition with Import Wizard we have an option to "Overwrite object contents" option to overwite exixting objects. It will very helpful if any one suggest how we can achieve this through InstallEntSdkWrapper.
    Unfortunately there is no documentation availabe on InstallEntSdkWrapper.
    Cheers!

    That's a limitation with the XI Release 2 InstallEntSdkWrapper.jar tool.
    Sincerely,
    Ted Ueda

  • How to get the object class field value in CDHDR table for vendor

    hi
    how to get the object class field value in CDHDR table for vendor

    Try KRED/KRED_N as object class in CDHDR for Vendor.

  • Web Dynpro Java : Failed to get deployable object part info for component

    Currently we have a web dynpro java project which connects to the ABAP backend with Web Services. Everything seems fine, and when we transport to the production server via NWDI, we have the following error. Everytime we try to access the application , the error is occurred.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to get deployable object part info for component com.sie.attachmentcomp.AttachmentComp
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getComponentDeploymentDescription(ClientComponent.java:784)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:934)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:116)
    It is working properly in our development , and testing environment. Only production has this error. And one weird thing is that this particular error occurred only sometimes to some user. For example; I could not access to the application with this error yesterday but my friend can access. Today, I can access in the morning but my friend cannot. For another friend , Yesterday he can access by using IE but not by Firefox. But today Firefox is fine but not with IE. It seems crazy.
    For more information, in our J2EE engine for the production server, we have 3 server nodes (clusters). And we are not sure it is the source of the problem. Is there any solution , and any way to know from the application that we are on which server?
    We also go and check from the Content Administrator in Web Dynpro Console. Under our project name, in the list of Components, sometimes we can see AttachmentComp but sometimes not.
    Please help us as our project is about to go-live next week.
    Thanks,
    Yu

    Hi Meenge,
    Please check below document for finding root cause for "Failed to start deployable object part info for <development component> and application <application name>"
    http://help.sap.com/saphelp_nwce711core/helpdata/en/44/7716e1633a12d1e10000000a422035/frameset.htm
    OR http://help.sap.com/saphelp_nw04/helpdata/EN/f4/1a1041a0f6f16fe10000000a1550b0/frameset.htm
    Hope it helps
    Regards
    Arun

  • How to get a file save dialog box on button click

    Hi All,
    I have  some text  and I want to write this text in to a  file.Then I want to save this file to my local system using a file save dialog box so that I can choose the location where I want to save this file.Please tell me how can I do this in WebDynpro.
    If I cannot get the File save Dialog Box then how can I give the path while creating the new file so that it is created on my local system  as the application is running on server.
    Regards
    Rahul

    Hi Rahul,
    Sometime back I was also facing the same requirment and there are only two solutions to it one is what Armin suggested to use the file download UI element the other one you can get from this link How to write a file on our local machine using Web Dynpro
    Regards
    Sid

  • FF 7.0.1 on Mac OSX 10.6.8: I sometimes get the "unresponsive script" dialog box in the top left corner of the screen, so far out that I can see only the bottom right corner of the dialog box. Is there any way of re-centring it?

    FF 7.0.1 on MacOSX 10.6.8 (not this machine!): I sometimes get the "unresponsive script" dialog box jammed into the top left corner of the screen so that only a quarter of it is visible.
    Is there a way of re-centring the dialog box (in particular, when its top edge is off the screen)?
    Thanks!

    There is no way to preserve view preferences.Just remember or annotate the zoom % used in the package.
    You may want to open an MS Connect item asking to add such a feature.
    I can tell you it may not be implemented because a package may be opened on different size monitors.
    Arthur My Blog

  • Get JSF objects in a Filter Class

    Hi! I have a problem with my JSF application. As the most of the web applications I have a login at the begining and I place a Listener - Filter classes for catching the session timeout to returning the user to the login page. All this works OK. The problem it´s to validate that the user only has 1 session open at the time, when the user begin session I change a flag into it's database row, and when the user logout the flags change again to false (both actions (login and logout) was fired by the user clicking it's respective buttons), this works fine, but I want to change the data flag in the database row with the timeout Filter classes after pass 1 minute. My Filter class it's like this:
        public void doFilter(ServletRequest request,ServletResponse response, FilterChain filterChain) throws IOException,ServletException {
            if ((request instanceof HttpServletRequest) && (response instanceof HttpServletResponse)) {
                HttpServletRequest httpServletRequest = (HttpServletRequest) request;
                HttpServletResponse httpServletResponse = (HttpServletResponse) response;                      
                if (!StringUtils.contains(httpServletRequest.getRequestURI(), "welcomeJSF.jsp")) {                                
                    if((httpServletRequest.getRequestedSessionId() != null) && !httpServletRequest.isRequestedSessionIdValid()){
                         /* 1 */               
                           FacesContext context = FacesContext.getCurrentInstance();
                             User user = (User) context.getExternalContext().getSessionMap().get("simpleUser");
                             UserDAO conn = new UserDAO();
                             List users = conn.findByNumber(new Long(user.getNumber()));
                             persistence.User userDB = (persistence.User) users.get(0);
                             userDB.setUse(false);
                             Transaction tx = conn.getSession().beginTransaction();
                             conn.save(userDB);
                             tx.commit();
                             conn.getSession().close();                                     
                             /* 2 */                     
                        String timeoutUrl = httpServletRequest.getContextPath()+ "/faces/" + "welcomeJSF.jsp";
                        System.out.println("Session is not invalid. Redirecting to login page. ");
                        httpServletResponse.sendRedirect(timeoutUrl);
                        return;
            filterChain.doFilter(request, response);
        }When I comment from 1 to 2 works fine, but if I want to get the context.getExternalContext().getSessionMap().get("simpleUser") i get this error:
    java.lang.NullPointerException
         at validadores.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:53)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:619)This is because I'm working in a diferent conexts? How can I get Jsf objects from ServletRequest? or to pass getExternalContext().getSessionMap() to the filter class? Any ideas to change the database when the session timeouts if I'm using hibernate?
    Thanks for your time and help!

    correction :
    MyObjectProxy extends ObjectProxy{
         override callProperty(
              // your dyna logic
    and expose new MyObjectProxy(dynaInstance)

  • Help to get text objects in ABAP

    Hi guys!
    I've created my first report program and need some help to get text objects into the report. The program combines the tables KNA1, LIKP, LIPS, VBAK, VBAP and VBKD to create a deliverylist which we import as excel info a shipping service. The issue at hand is that our website allows customers to change the ship-to party's address when creating an order. The adress are not updated to KNA1, but are comitted as a text on the ship-to on the delivery itself.
    The text I need in the report is RV50A-TXTWE.
    Can you help me get going on how to add this from the delivery?
    Thanks a lot!

    Your problem is that its a structure.  Structures are filled in a program and no longer exist after the program is closed.  They are temporary data.  It will have been moved to tables somewhere most likely.  The next step is to debug / trace through the code to find out what was done with it.
    What program were you using that created the structure?
    Neal

  • How to get PortetSession object in backing file

    Hi all,
    Is it possible to get PortletSession object for current portlet in a backing file. If it is then could you please tell me how?
    regards
    -saurabh

    Pl see your duplicate post here - How to capture SQL *Loader program parameter value in control file?
    Srini

  • How to get an open file dialog in Forms 9i?

    Although in online help I can find the get_file_name function just like it was in Forms 6.0, at runtime this wonderful function doesn't seem to do anything.
    Furthermore, there is no more d2kwutil.pll, nor d2kwutil.dll.
    How could I get an open file dialog?

    Hi,
    actually this functionality does not work. The reason for this is that Forms9i is Web only and there is no functionality downloaded with the generic Java Applet. For the moment I filed an enhancement request to have this on our radar. Meanwhile, if you need thi sfunctionality you can help yourself by writing a PJC that opens a dialog and performs the action that you want to.
    Frank
    Forms Product Management

  • Get an object in a servlet

    Hello! I'm developing a servlet which has to get an object that I send as a parameter:
    Course c = new Course();
    out.println("<form ... action=\"InsertCourse?course="+c+"\">");
    I don't know how to get mi object "c" in the servlet InsertCourse. When I tried to do:
    Course c2=(Course)request.getParameter("course");
    it told me "inconvertible types", so I wrote:
    Course c2=(Course)(Object)request.getParameter("course");
    But that doesn't work.
    Thanks for your help!

    HTTP paremeters are Strings. If your object has a String based constructor, rebuild it like that:
    Course c2 = new Course(request.getParameter("course"))

Maybe you are looking for

  • Citrix is not working post Yosemite upgrade

    Post the upgrade to Yosemite, my citrix application is not opening. I am being asked to install Java application everytime I boot even though I have installed. Not sure if both are related. I need citrix application to connect to my work. Any help is

  • Opening Word-- blue screen-- all applications shutting down?

    Hi everyone! Today I closed my laptop to put it in sleep mode, it was not connected to power. I came back an hour or so later, opened it up, and entered my password to log in. It started to log in and then I got a blue screen! In a few seconds it bro

  • Best way to sync iTunes on 2 computers?

    Hi Can anyone suggest the best way to sync iTunes between 3 macs Mac Pro & 2 Macbook pros. I edit and rate the music on the desktop so it's not as much about the mp3 files as much as it is not having to reinput the metadata 3x. Also the iTunes folder

  • Events entered on iphone not showing up on mac ical

    Events entered on my iphone do not show up on my Mac ical.

  • Iweb navigation menus don't display in chrome

    I have created web pages in iweb and have published to file ( I will later transfer to web server via ftp) but when testing the pages the navigation menus are not displayed when using internet explorer and chrome but appear fine in safari and firefox