Getting the text of a Label from an inputField

Hello everyone,
In my application, I have an inputField and a Label.
The labelFor property of the Label directs to the inputField.
How can I get the text of the label from the inputField ?
Any suggestions ?
Thanks.
Ruthie.

Hi Anilkumar,rahul,Valery.
I didn't explain it clear enough.
In my application I use the method reportContextAttributeMessage as follows:
private void checkMandatory(String fieldName, String fieldText){
IWDMessageManager messageMgr = wdControllerAPI.getComponent().getMessageManager();
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(fieldName);
String value = wdContext.currentContextElement().getAttributeAsText(fieldName);
if (value.length()==0){          
               messageMgr.reportContextAttributeMessage(wdContext.currentContextElement(),
               attributeInfo,                        IMessageOpenUserApp.MISSING_INPUT,
               new Object[] { fieldText },
               true);     
So,this method executes validity check to an input field
("fieldName").
In the layout I have an inputField and a Label.
The property labelFor of the Label is set to the inputField.
The parameter "fieldText" should be the text of the label.
Is there a way - that when knowing only the context attribute of the inputField - I can get the text of the Label ? what is the meaning of the labelFor property ?
Thanks.
Ruthie.

Similar Messages

  • How to get the text in a label which is imbeded in a JTextPane

    I have created a JTextPane that has 5 JLabels inserted in the text. I have attempted to get the text with the following code snippet.
    Component[] lbl = new Componennt[DisplayLetterPane.getComponentCount()];
    //         JTextPane DisplayLetterPane; is defined previously
             lbl = DisplayLetterPane.getComponents();
             int componentIndex = 0;
             String lblText = new String(((JLabel)lbl[componentIndex]).getText());I have run a dump of the sytledDocument of the JTextPane and I see the JLabel listed as a component.
    When this snippet is executed I get the following:
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.text.ComponentView$Invalidator
    When I check the character where the component for the JLabel is located in the styled document it does not find an instanceof JLabel.
    How can I get the text from the labels.
    Thank you in advance!

    JTextPane jtp = new JTextPane();
              for (int i = 0; i <5; i++) {
                   jtp.add(new JLabel("labelText"+i));
              Component[] lbl = new Component[jtp.getComponentCount()];
    //      JTextPane DisplayLetterPane; is defined previously
          lbl = jtp.getComponents();
          int componentIndex = 0;
          for (int i = 0; i < lbl.length; i++) {
               System.out.println(((JLabel)lbl).getText());
    When I do like the above, it just works fine. Can u share a little bit more of your code?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I downloaded the new 6 software. Me and my boyfriend share the same iTunes account and now every time I text him I also get a copy of the text sent to my from my number. How do I get that to stop?

    I downloaded the new 6 software. Me and my boyfriend share the same iTunes account and now every time I text him I also get a copy of the text sent to my from my number. How do I get that to stop?

    Go to settings > messages > send & receive
    check or uncheck the correct phones numbers and/or email addresses

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

  • Getting the text from a JTextArea...

    hi, I'm making a perfect calculator program and I'm trying to add a Note Pad function to it, I also want to hide that so the other interface can be used; I can get it hided and come again but I'm wondering how could I get the text from the JTextArea INCLUSIVE the enters that are made withing it, so:
    theString = jTextArea1.getText();only gives me the text and no enters; suggestions?

    I think I displayed it wrongTwo things to keep in mind...
    Certain Swing components will just ignore newlines, so you have to be careful where/how you're displaying your multiline text strings. Some components will display it all as one line, some will only display the top line, some will even show \n instead of doing the newline. It all just depends.
    And JTextArea does support word wrapping, so just because it looks like there's a newline, there may not be one.

  • How to get the text from me52n/me52?

    I used rp-read-infotype in getting the text in HR. Please guide me how to get it in ME52. Thanks!

    HI
    GOOD
    CAN YOU GIVE SOME MORE BRIEF ABOUT YOUR REQUIREMENT.ANYWAY YOU CAN GO THROUGH THIS REPORT HOPE CAN HELP YOU SOMETHING
    REPORT Z_LEAVES_AND_COMMENTS  line-size 255 line-count 65 no
    standard page heading .
    =====================================================
    DATA DECLARATIONS
    =====================================================
    infotypes : 0002 ,
                2001 .
    TABLES : t554t .
    DATA : BEGIN OF ITAB_LEAVES OCCURS 100 ,
           PERNR LIKE P2001-PERNR ,
           NACHN LIKE P0002-NACHN ,
           VORNA LIKE P0002-VORNA ,
           SUBTY LIKE P2001-SUBTY ,
           ATEXT LIKE T554T-ATEXT ,
           YEAR(4) TYPE C ,
           SEQNR LIKE P2001-SEQNR ,
           BEGDA LIKE P2001-BEGDA ,
           ENDDA LIKE P2001-ENDDA ,
           KALTG LIKE P2001-KALTG .
    DATA : END OF ITAB_LEAVES .
    DATA : S_DATE_LOW LIKE SY-DATUM .
    =====================================================
    SELECTION SCREEN - DEFAULT
    =====================================================
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME .
    parameters : P_PERNR LIKE Pa0002-PERNR 
                 MATCHCODE OBJECT PREM  OBLIGATORY.
    PARAMETERS : S_DATE LIKE SY-DATUM DEFAULT SY-DATUM .
    SELECTION-SCREEN END OF BLOCK B1 .
    =====================================================
    TOP-OF-PAGE
    =====================================================
    TOP-OF-PAGE .
      WRITE : 'Report of Leaves - Infotype 2001'  COLOR COL_HEADING .
      ULINE .
      WRITE : /
         'CODE' COLOR COL_HEADING ,
         'DESCRIPTION OF LEAVE     '  COLOR COL_HEADING ,
         'YEAR'  COLOR COL_HEADING ,
         'STARTING  '  COLOR COL_HEADING ,
         'ENDING    '  COLOR COL_HEADING  ,
         'DURATION '  COLOR COL_HEADING .
      ULINE .
    ======================================================
    START OF SELECTION
    ======================================================
    START-OF-SELECTION .
      S_DATE_LOW = S_DATE - 365 .
      CLEAR : P2001 , P2001[] .
      RP-READ-INFOTYPE P_PERNR 2001 P2001 S_DATE_LOW S_DATE .
      IF SY-SUBRC = 0 .
        LOOP AT P2001 .
          CLEAR : ITAB_LEAVES .
          ITAB_LEAVES-PERNR = P2001-PERNR .
          ITAB_LEAVES-SUBTY = P2001-SUBTY .
          ITAB_LEAVES-SEQNR = P2001-SEQNR .
          clear t554t .
          select single * from t554t
          where MOABW = '99'
          and   awart = P2001-SUBTY
          and   sprsl = SY-LANGU .
          if sy-subrc eq 0 .
            ITAB_LEAVES-ATEXT = T554T-ATEXT .
          endif .
          ITAB_LEAVES-BEGDA = P2001-BEGDA .
          ITAB_LEAVES-ENDDA = P2001-ENDDA .
          ITAB_LEAVES-YEAR = P2001-BEGDA(4) .
          ITAB_LEAVES-KALTG = P2001-KALTG .
          CLEAR P0002 .
          REFRESH P0002 .
          RP-READ-INFOTYPE P_PERNR 0002
          P0002 '18000101' '99991231'.
          IF SY-SUBRC = 0 .
            ITAB_LEAVES-NACHN  = P0002-NACHN .
            ITAB_LEAVES-VORNA  = P0002-VORNA .
          ENDIF .
          APPEND  ITAB_LEAVES .
        ENDLOOP .
      ENDIF .
    ======================================================
    END OF SELECTION
    ======================================================
    END-OF-SELECTION .
      LOOP AT ITAB_LEAVES .
        WRITE : /
             ITAB_LEAVES-SUBTY ,
             ITAB_LEAVES-ATEXT ,
             ITAB_LEAVES-YEAR  ,
             ITAB_LEAVES-BEGDA ,
             ITAB_LEAVES-ENDDA ,
             ITAB_LEAVES-KALTG .
        PERFORM GET_NOTES_OF_AN_INFOTYPE
        USING '2001'
               ITAB_LEAVES-SUBTY
               ITAB_LEAVES-PERNR
               ITAB_LEAVES-BEGDA
               ITAB_LEAVES-ENDDA
               ITAB_LEAVES-SEQNR .
      ENDLOOP .
      uline .
      write : ' *** End of Report *** '  COLOR COL_HEADING .
      uline .
    *======================================================
    =========> FORM GET_NOTES_OF_AN_INFOTYPE <===========
    *======================================================
    FORM GET_NOTES_OF_AN_INFOTYPE
    USING MINFTY MSUBTY MPERNR MBEGDA MENDDA MSEQNR .
      DATA: TX-KEY LIKE PSKEY.
      DATA: BEGIN OF TEXT-VERSION,
             NUMMER TYPE X VALUE '02',
            END OF TEXT-VERSION.
      DATA: BEGIN OF PTEXT OCCURS 200.
      DATA:  LINE(78).
      DATA: END OF PTEXT.
      data : is_first type i .
      DATA : LINES_OF_NOTES TYPE I .
    Preparing Key for Reading Texts of
    Infotype
      CLEAR TX-KEY .
      CLEAR:   PTEXT             .
      REFRESH: PTEXT             .
      TX-KEY-PERNR = MPERNR .
      TX-KEY-INFTY = MINFTY .
      TX-KEY-SUBTY = Msubty .
      TX-KEY-ENDDA = MENDDA .
      TX-KEY-BEGDA = MBEGDA .
      TX-KEY-SEQNR = MSEQNR .
    READING CLUSTER TX - (Texts)
      IMPORT TEXT-VERSION
             PTEXT
      FROM DATABASE PCL1(TX)
      ID TX-KEY
      USING PCL1_EXP_IMP(SAPFP50P)  .
      IF SY-SUBRC NE 0        .
        CLEAR:   TEXT-VERSION      .
        CLEAR:   PTEXT             .
        REFRESH: PTEXT             .
        SY-SUBRC = 4               .
      ENDIF          .
    Writing texts retrieved
      DESCRIBE TABLE PTEXT LINES LINES_OF_NOTES .
      IF  LINES_OF_NOTES GT 0 .
        is_first = 1 .
        LOOP AT PTEXT .
          if is_first = 1 .
            WRITE : /  'Comments' , ptext-line  .
            is_first = 0 .
          else .
            WRITE : /  '        ' , ptext-line  .
          endif .
        ENDLOOP .
      ENDIF .
    ENDFORM.
    THANKS
    MRUTYUN

  • HT1694 The text has disappeared from my emails in my inbox. What can I do to get the text back?

    The text has disappeared from my emails in my inbox. What can I do to get the text back?

    Try closing the Mail app via the taskbar and see if the email text shows when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't fix it they try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge

    HOWTO Get the text of "combo box" and "labe" controls with JavaAccessBridge.
    Please help,
    I'm trying to use the Java Access Bridge (JAB) 2.1 to get the text in Java Applet controls. I've been able to use the sample code in AccessInfo.cpp sample that comes with JAB to get text from "text" controls in a Java Applet. To clarify, I am referring to the "role" in the AccessibleContextInfo struct being set to "text" or "combo box" or "label".
    The problem is, when I use the AccessInfo.cpp sample to get text from a "combo box", the accessibleText data member comes back as FALSE, and thus any of the JAB text functions like GetAccessibleTextInfo fail to get any text information from "combo box" or "label" controls.
    I've also tried GetCurrentAccessibleValueFromContext on the "combo box" and "label" controls, but the text returned is empty.
    Can anyone help?

    I have new information in regards to this issue. A contact from Sun did get to me in email and relayed that that "label" objects store their text in the "name" data member of the AccessibleContext structure. This was a big help.
    But I'm still stuck trying to get information from "combo box" and other controls, like "push button". The contact said, the Java Access Bridge does not provide all the information because it is already implemented by other interfaces like AccessibleComponent, AccessibleAction, or AccessibleSelection. The contact did not allude to whether these opther interfaces can be used along side the Java Access Bridge or not. So, I'm left a step closer to the goal, but still stuck without the full solution.
    Can one take the Java Access Bridge functions, like say those used in the Ferret sample, and close the gap to get text back from "combo box", "push button", and other controls by using some other API in conjunction?

  • How do I get the text to flow throughout more then one page.

    Hello,
    I am currently using LiveCycke Designer to create a scholarship for my company. I created fields for the form and I would like to insert a text to describe the scholarship. When I insert the text, it doesn't flow onto the next page. I've tried creating a subform and clicking "flowed" and "allow page breaks within content". I also clicked auto-fit for the height, but it just makes a line. For the text box, I've clicked "Expand to fit on the height". It is also a dynamic XML Form. Is there anything else I should be doing?
    I could always send the file to someone to see if they can figure it out.
    Thank you,
    Natalie

    Thank you so much !
    but the link doesn't seem to work. It says that the URL is not in the correct format for an Acrobat.com document link.
    Natalie
    Date: Wed, 12 May 2010 07:53:12 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do I get the text to flow throughout more then one page.
    Here is the corrected form..Even you you set the Subform type to "Flowed" to the subform where the Text box resides, you did not set the Page1 to Flowed (which is the key)..But when I make the Page1 type to "Flowed", all your fields above the Scholrship text boxes' Subform will go one below another.. To fix this, first I have select all the fields and wrap them into a subform and then set the Page1 to Flowed..
    https://acrobat.com/#d=XQ1yfV8fCk85M7sRLD*-gg
    Thanks
    Srini
    >

  • I recently bought a new macbook pro and set it up using the migration assistant and my mac mini.  I can't get the text message forwarding feature to work with both computers.

    I recently bought a new macbook pro and set it up using the migration assistant from my mac mini.  I can't get the text message forwarding feature to work with both computers.  It keeps saying that I only have 2 devices setup, my iPad and my macbook pro.  When I mess with the setting on my mac mini, it goes from saying that that is one of the devices to my macbook pro being the 2nd device.  I think that something happened as a result of my using the migration assistant and now it thinks that my macbook pro and my mac mini are one and the same computer.  Any ideas?

    Thanks, Sig.
    The old computer is a 2.6 Ghz Intel Core 2 Duo
    The new one is a 2.3 GHz intel core i7
    In going over this, thanks to "tallking it out" with you, I did discover the Text Edit problem.  Because I've still been unable to get the new computer text size (fonts or whatever) to match the old computer, I did not notice that the curser is now different--the line midway down the curser has to be placed on the line I am working upon, otherwise the edits go elsewhere on the page.  Now, with a bit of difficulty, I am able to get Text Edit to work correctly.
    If you have any ideas as to why my menu bar and Text Edit type are still so slow, I'd love to have them. 
    (I went through the process you suggested earlier, re my Trackpad preferences, and found no improvement.)

  • In popup step how do I get the "text on the button" in the report rather than button index?

    (1)
    How do I configure the POPUP step in "SEQ MAIN.seq" to execute the second
    step (IS OUT PUT IS 20?) in "SEQ 1.seq" when "IS OUT PUT IS 20?" button
    hit and execute the third step (IS OUT PUT IS 30?) in "SEQ 1.seq" when "IS
    OUT PUT IS 30?" button hit.
    (2)
    In popup step how do I get the "text on the button" in the report rather than button index?
    File attached
    Attachments:
    test_stand.zip ‏32 KB

    The handle to the Step.Button1Label gets you the data, but there are several ways to get it into the actual report.
    The easiest is to use the reporttext.
    In a post expression, you can use something like
    Step.Result.ReportText = Evaluate("Step.Button" + Str(Step.Result.ButtonHit) +"Label")
    and then the default report generation will include it in the report. Otherwise, you need to get the text into the Resultlist by various means (check the user manual, or the TestStand II customisation course) and handle the report generation yourself inside of the appropriate sequence in the process model.
    Just my 2cents
    S.
    // it takes almost no time to rate an answer
    Attachments:
    IncludeButtonTextInReport2_0.seq ‏18 KB

  • Is it possible to get the position of a charcter from a string ?

    Hi !
    Is it possible to get the position of a charcter from a string ?
    Example:
    @VAR contains the following text "ABCDEFGHIJKLM"
    I'am seaching for FGH, it start on pos. 6 en ends on pos 8.
    How can I get these numbers 6 and 8 ?
    So, I can use them in the MID(text,start,len) function.
    Thanks!

    Hi Sooraj,
    I'll explain more in detail:
    From a web-service I get a variable called @Spec.
    This variable contains the following:
    "MOTORTYPE[CR]D-QW1234[LF]PART[CR]1234-FRD-X[LF]"
    or
    "MOTORTYPE[CR]ABC[LF]PART[CR]E-435[LF]"
    I need the values behind MOTORTYPE[CR] and behind PART[CR]
    But you’ll see that the positions of these values are different each time.
    If there is a way to get the (start) position of "MOTORTYPE[CR]" or "PART[CR]" and the (end) position of the first "[LF]" behind that,
    then I could use the MID() function to get the correct values.
    The values will be displayed in a table view (between other fields).
    An ABAP-call/function won’t work . . . how should I invoke this within a table column/field object ? (system action ?)

  • How to get the Text name to pass in the  parameter header in save_text

    Hi,
      I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how  to get the text name in order to pass the parameter header in save_text.
      I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no  to get the link and pass it in the text_name.
      can anyone help me out?
    krishnan

    Hi,
    Your query is.
    I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates
    In above number
    300 - Client
    1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
    00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
    BR,
    Vijay

  • How to get the current logged in username from windows and put it into an AS var

    Hello,
    I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
    Thanks in advance
    Michael

    Just for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
    In the html page that publishes with the .swf file under the <head> section:-
    <script language="JavaScript" type="text/javascript">
    function findUserName() {
         var wshell=new ActiveXObject ("wscript.shell");
         var username=wshell.ExpandEnvironmentStrings("%username%");
         return username;
    </script>
    The ActionScript:-
    import flash.external.ExternalInterface;
    var username:String = ExternalInterface.call ("findUserName");
    trace (username); // a quick test to see it in output

  • How to get the text of a message class

    Hi,
    I have a message class and added few message(with attributes) to that class.
    Now i want to read the text of the message based on the attributes and
    the message no.
    Example:
    Message 19 is - Where is &1. Where is &1. Where is &1. Where is &1.
    Information that i have :
        ls_msg-msgty = 'S' .
        ls_msg-msgid = 'AP_JATT_TDC_MSG_CL'.
        ls_msg-msgno = 19 .
        ls_msg-msgv1 = 'A'.
        ls_msg-msgv1 = 'B'.
        ls_msg-msgv1 = 'C'.
        ls_msg-msgv1 = 'D'.
    From the info that i have i want the text
    Where is A. Where is B. Where is C. Where is D.
    Is there any function modules which will provide me these details?
    Regards,
    Bikash.

    HI
    You can get the Text based on the Message attributes using the FMs
    FORMAT_MESSAGE
    MESSAGE_TEXT_BUILD.
    Use any one of them..
    It will work for u...
    <b>reward if Helpful</b>

Maybe you are looking for

  • Administração de lista de preço por item

    Pessoal, Alguém sabe me explicar a funcionalidade do campo "Lista de preços" na tela de cadastro do item? Ao indicar uma lista de preço e atualizar o SAP não grava. Ele sempre retorna a Lista de preços 1 e não sugere o preço da lista desejada nos doc

  • ISE 1.2 notifications

    Dears ,           is there anyway to send notifications about authentication failures to be sent by mail?

  • How to load hierrarchies using dtp  using flat file  in bw  ineed clear ste

    how to load hierrarchies using dtp  using flat file  in bw  ineed clear steps

  • MacBook Pro 2012 retina frequently logging out

    hi, i'm on a MacBookPro 2012 retina, running 10.7.4. Every once in a while i experience my machine logging me out without any reason. I also can't find a pattern in these occurences. And it's not just switching to the Login-window, but really logging

  • "Overlapping ResultSets" from one Statement Object

    I'm using Hypersonic database and retrieving data using JDBC. I create a single Statement object which I use to return multiple ResultSets. e.g. conn = DriverManager.getConnection(url.getText(), "sa", "p"); stmt = conn.createStatement(ResultSet.TYPE_