How can I put line number into JTextPane?

Most editors has ability that shows line numbers begining of each lines.
The line number doesn't effect any content in the editor, however.
I'm using JTextPane for editor, and I want to show line number for each line.
How can I do this?

have a look at
http://forum.java.sun.com/thread.jsp?forum=57&thread=258176
?

Similar Messages

  • How can i validate input number into a Field of  type char in oracle form?

    hi.....
    can any one help me.....please...!!!?!!
    How can i validate input number into a Field of type char in oracle form?

    i have tried doing that, but still the field except numbersthere was an error in that code. it should have been
    var_num:=to_number(var_char);however, it appears that you want the entry NOT to be a number. if this is the case then try
    begin
      if to_number(:block.item) = 0 then null; end if;
      message('The entry cannot be numeric');
      raise form_trigger_failure
    exception
      when value_error then
       /* this is where you put the code you want to be run when the
          entry is non-numeric */
    end;

  • How can i put one scene into JPanel of the swing?

    how can i put one scene into JPanel of the swing?

    980571 wrote:
    ty for the information but i have a problen with JFXpanel when i try to into a panel it doesnt display insideSorry to hear that. If you want assistance with the code, feel free to post the relevant parts of it. Make sure to use \ tags when you do.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can I put my bookmarks into the sequence I want, alphabetical or otherwise?

    How can I put my bookmarks into the sequence I want, alphabetical or otherwise?

    http://kb.mozillazine.org/Sorting_bookmarks_alphabetically <br />
    http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox

  • How can I put a number like m.dddddd+Exx

    I don't know how can I put a number like m.dddddd+Exx or m.ddddddE-xx using DecimalFormat
    or NumberFormat

    Here's a quote from the API documentation for DecimalFormat:
    Scientific Notation
    Numbers in scientific notation are expressed as the product of a mantissa and a power of ten, for example, 1234 can be expressed as 1.234 x 10^3. The mantissa is often in the range 1.0 <= x < 10.0, but it need not be. DecimalFormat can be instructed to format and parse scientific notation only via a pattern; there is currently no factory method that creates a scientific notation format. In a pattern, the exponent character immediately followed by one or more digit characters indicates scientific notation. Example: "0.###E0" formats the number 1234 as "1.234E3".
    (End quote.) More explanation follows this in the documentation.

  • How can i put de number 2 over km 2?  Comment mettre le 2 surélevé pour km carré?

    How can i put de number 2 over km 2?  Comment mettre le 2 surélevé pour km carré?

    Hi Bellu77,
    Using the Character Viewer you can add a ² to make km² in Mountain Lion:
    OS X Mountain Lion: Enter special characters and symbols
    http://support.apple.com/kb/PH10758
    By default, the Digits list is not listed in Character Viewer, but that article includes instructions on showing other lists including Digits:
    Customize the Character Viewer
    If you don’t see the character or symbol that you want to use, try customizing the Character Viewer.
    Choose Customize List from the Action pop-up menu (looks like a gear) in the top-left corner of the Character Viewer.
    Select the categories that you want to appear in the Character Viewer, and then click Done.
    Cheers!
    - Ari

  • How can i put below  table into internalt table

    how can i put below  table into internalt table and want to add both internal table into 3rd internal table.
    SELECT  * FROM J_1IEXCHDR  WHERE STATUS = 'P'.
    WRITE: / J_1IEXCHDR-LIFNR,
              J_1IEXCHDR-DOCNO,
              J_1IEXCHDR-EXYEAR,
              J_1IEXCHDR-BUDAT.
    SELECT * FROM J_1IEXCDTL  WHERE TRNTYP = J_1IEXCHDR-TRNTYP
                              AND DOCYR  = J_1IEXCHDR-DOCYR
                              AND DOCNO  = J_1IEXCHDR-DOCNO.
       WRITE: / J_1IEXCDTL-EXBAS,
                J_1IEXCDTL-EXBED,
                J_1IEXCDTL-RDOC1,
                J_1IEXCDTL-ECS.
    ENDSELECT.
    ENDSELECT.
    please help
    thanks in adavaced.

    hi laxman,
    use for all entries and get the required data.
    SELECT * FROM J_1IEXCHDR into table itab1 WHERE STATUS = 'P'.
    if not itab1[] is initial.
    SELECT * FROM J_1IEXCDTL into table itab2 for all entries in itab1 WHERE TRNTYP = itab1-TRNTYP
    AND DOCYR = itab1-DOCYR
    AND DOCNO = itab1-DOCNO.
    endif.
    so itab2 will have the common records...This will solve ur problem..
    also u can do other method declare an final internal table with the common fields of the two internal table.
    then after getting data in itab1 and itab2.
    loop at itab1.
    move-corresponding itab1 to itab3.
    read table itab2 with key <give the fields> = ......
    if sy-subrc eq 0.
    move-corresponding itab2 to itab3.
    endif.
    append itab3.
    endloop.
    Regards,
    nagaraj

  • Hi I've got a I phone 5 c how can I put my number for I message instead ov email

    HI I have a I phone5 c how can I put number for I message instead of e mail

    It is there - at the bottom below the section - you can be reached by iMessage at.
    The iPhone's cell phone number is automatically registered with iMessage along with your Apple ID email address.

  • How can I put my system into StandBy Mode?

    Hi
    I am not able to put my system into stanby mode.
    How can I do that?

    Hi
    As Ivan said you can use these two options.
    Furthermore I would recommend checking the settings in the Toshiba power saver (if is installed)
    Possibly you have to activate this option before using.

  • How can I put the signature into the data file.

    Hi all,
    I want to put the signature into the data file, mean the data file will be on the top and the signature will be at the buttom.how can i do that?
    Thanks.
    example:-
    dataFile.txt
    Name=...
    Address=...
    Signature=6A07C70E....123FEAB(Hex)

    Thanks for your reply.
    First, i have a keypair (public key and private key).
    I use the private key to initialize the Signature and
    use the Signature to sign a data file ( dataFile.txt) .
    So when i need to comfirm the data file not being modify
    I have to verify the data file with the Signature and the public key.
    I hardcoded the public key in my program so my client (receiver of data)
    need only the Signature file and the data file (2 files).
    So how can i combine the Signature file and the data file into 1 file?

  • How can i put a file into blob(using sun.jdbc.odbc.JdbcOdbcDriver)

    Hi
    i tried to put a file into blob , but got a problem.....
    My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
    a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
    //Statement stmt2=null;
    //Resultset rs2;
    //opa1 is the blob data
    void saveBlobTableToDisk(Connection con) {
    try {
    stmt2=con.createStatement();
    sqlStr2="SELECT * FROM emp3 where id=1004";
    rs2=stmt2.executeQuery(sqlStr2);
    while (rs2.next()) {
    Blob aBlob=rs2.getBlob("opa1");
    i got the exception :
    " null
    java.lang.UnsupportedOperationException
         at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
         at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
         at test3.Frame1.<init>(Frame1.java:26)
         at test3.Application1.<init>(Application1.java:5)
         at test3.Application1.main(Application1.java:8) "
    and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
    Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
    I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
    Or i must install oracle jdbc driver ?
    Thanks.

    My guess here is that Sun's JDBC-ODBC bridge doesn't handle the BLOB datatype. Most ODBC drivers don't support that datatype, so I wouldn't expect the bridge to.
    Is there a reason that you can't use the Oracle driver?
    Justin

  • How can i put a file into blob using jdbc !?

    Hi
    i tried to put a file into blob , but got a problem.....
    My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
    a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
    //Statement stmt2=null;
    //Resultset rs2;
    //opa1 is the blob data
    void saveBlobTableToDisk(Connection con) {
    try {
    stmt2=con.createStatement();
    sqlStr2="SELECT * FROM emp3 where id=1004";
    rs2=stmt2.executeQuery(sqlStr2);
    while (rs2.next()) {
    Blob aBlob=rs2.getBlob("opa1");
    i got the exception :
    " null
    java.lang.UnsupportedOperationException
         at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
         at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
         at test3.Frame1.<init>(Frame1.java:26)
         at test3.Application1.<init>(Application1.java:5)
         at test3.Application1.main(Application1.java:8) "
    and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
    Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
    I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
    Or i must install oracle jdbc driver ?
    Thanks.
    D.T.

    My guess here is that Sun's JDBC-ODBC bridge doesn't handle the BLOB datatype. Most ODBC drivers don't support that datatype, so I wouldn't expect the bridge to.
    Is there a reason that you can't use the Oracle driver?
    Justin

  • How can i put my Apps into digital publishing gallery?

    I published my app since 19-09-2011 but I can not found my app in Digital publishing gallery (http://blogs.adobe.com/digitalpublishinggallery/all-apps)
    I try to use the form on the right to search but search results is 0.
    How can I find my app in this page?
    Any suggestions?

    Did you set the status of your app in Viewer Builder?

  • Hi How can I put my number confidential when I call people

    I have a private practice in counselling
    When I have my iphone 4 I use to be able to put my number confidential for when I call my client whit my iPhone4. I just buy a iPhone 5s now and I realise this setting seem not existe anymore.

    Settings -> Phone -> Show My Caller ID

  • How can someone put their number under someone else's name in an iphone without touching the phone

    Ok, so last week on saturday my wife called and asked me why I facetimed her.  Well I never facetimed her and didn't have an accidental call to her at all.  I didn't think anything of it.  Well later that day she called me again very upset saying there someone facetiming me from your number and it was someone elses picture on the other end.  So we called sprint and they reser our  network setting and said call apple support.  Called apple support they said change all passwords and sign up for that duel security option.  Well no one asked us to have her look in her phone and see if there's another number in her phone under my contact info.  So I asked her to look and what do you know there's another number under my contact in my wife's phone.  Now theres no way she accidentally added in a number to my contact.   We know the face and name of the Asian Indian man who called us because sprint told us his name and we've seen his face because he facetimed and my wife saw his face.  We don't known him at all.  The weird part is that the number hes calling from is the same area code that we live in.  So that makes it extra creepy.  We figured he hacked in some how and was sitting somewhere in Asia....  I hope this all makes some since to someone who can tell us how my wife's iPhone 5s contact list was changed by a man who is phone stalking her???

    It can't be tracked by serial number, if can only potentially be tracked via Find My iPad - if that has been disabled, as you say in your post, then you won't be able to try and locate it.
    You've reported it to the police ? If your iTunes account info has been changed then you should contact Support in your country so that you can try and get it back : Apple ID: Contacting Apple for help with Apple ID account security
    You should also change your email account passwords, and any passwords that you'd stored on websites/emails/notes etc.

Maybe you are looking for

  • Doubt in XML payload validation in PI 7.1

    Dear All, I understand that the PI message payload can be validated against a XSD/XML structure.. but i do not understand its advantage as the payload will by default be validated against our source data type.. then why do we need it to get validated

  • Product ID for Free Folios

    We have a free app with a free subscription all set up and working properly, with one issue published so far. We are ready to publish the second issue. The app itself has a Product ID, and our Free Subscription in-app purchase as a different Product

  • Checks on GL account

    The GL account does not show the actual CK #, nor does the Bank Rec module.  Is there an option so this shows in each of these modules/reporting?

  • How to set the date date type to work

    This may be a silly question, but I can't seem to get the Date data type to work for a date account member. When I go into the Planning app and choose an account that I want to set as a date entry account, the web form doesn't seem to show that the d

  • Fit screen in subview or zoom in/out not saved ?

    Hi, I made some subviews with 3 ou 4 big tables, and clicked on "fit screen" button, or "zoom out", then saving everything, but after when I reopen it, nothing seems to have been saved ? Is this an issue, bug , or something to do to keep the "good" o