How do I keep account of line and column number within JTextArea?

How do I keep account of line and column number within JTextArea?
Thanks.

hi kamlesh,
to get the number of columns in a JTextArea u have the function
getColumns() which gives u the number of columns in the text area.
To get the number of rows present u have the function
getRowCount() which returns an int that specifies the number of rows in the text area.
Hope this helps
Cheers :)
Nagaraj

Similar Messages

  • How to get string (specified by line and column) from txt file with labview

    Hi everyone
    How to get string (specified by line and column) from txt file with labview
    thx 
    Solved!
    Go to Solution.

    As far as I know, a text file has no columns.  Please be more specific.  Do you mean something like the 5th word on line 4, where words are separated by a space, and lines are separated by a newline character?  You could the Read from Spreadsheet String function and set the delimiter to a space.  This will produce a 2D array of strings.  Then use index array and give the line number and column number.
    - tbob
    Inventor of the WORM Global

  • I need to sync my iPhone to new user id on the same mac.  How do I keep my iPhone contacts and music library?  I tried to sync and iTunes wanted to erase both.

    I need to sync my iPhone to new user id on the same mac.  How do I keep my iPhone contacts and music library?  I tried to sync and iTunes wanted to erase both.

    When you say a new user ID, are you referring to your Apple ID that you use to make purchases in the iTunes Store, etc? Or are you talking about a new user account on the same Mac?
    iTunes alternatives
    http://www.wideanglesoftware.com/touchcopy/index.php
    http://www.ecamm.com/mac/phoneview/
    http://www.copytrans.net/

  • How do u keep you iPad Air and you iphone5  appointments link together after the first setup so u can enter the appointment on one it will go to the other one?

    How do u keep you iPad Air and you iphone5  appointments link together after the first setup so u can enter the appointment on one it will go to the other one.

    Use iCloud to keep them in sync.
    Do you have an iCloud account?

  • My macbook wont allow me to use the same hotmail address as i used on my other computers. How can I keep the same email and log into it on a macbook?

    my macbook wont allow me to use the same hotmail address as i used on my other computers. How can I keep the same email and log into it on a macbook?

    That indicates a hardware failure. Read here:
    http://support.apple.com/kb/ts1559
    If nothing works, you most likely have a hardware failure. Make an appointment at an Apple store to confirm.

  • How I can keep my MBP nice and speedy?

    I finally jumped out of my Windows and into a Mac. I have used a Macbook at work for 3 years with very little trouble. I am an educator who lost my job right after I invested in a Macbook Pro and it seems to FREEZE UP frequently. I have seen the "spinning rainbow wheel of death" more times than I can recall. I have had the machine exactly 1 month.
    Someone mentioned to me that it may be my Office 2008; the scripts don't seem to play nicely. I am at a loss. I invested in this because I wanted less drama than my "Dell from ****."
    Does anyone have any suggestions for how I can keep my MBP nice and speedy?
    Is there a limit to how many applications I should have on the dock?
    Should I keep everything off of the desktop?
    I am also a web developer and I have been using:
    adobe CS4 web suite.
    Captivate
    Second Life
    Firefox (With many plug-ins)
    MAMP Pro
    ITUNES
    Office 2008
    Imovie
    Frequently.
    I don't turn it off everyday.
    My system is as follows:
    Model Name: MacBook Pro
    Model Identifier: MacBookPro6,2
    Processor Name: Intel Core i5
    Processor Speed: 2.53 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache (per core): 256 KB
    L3 Cache: 3 MB
    Memory: 4 GB
    Processor Interconnect Speed: 4.8 GT/s
    Maybe I can get some pointers to minimize this drama, so before I start screaming at Apple, I thought that I would check with my peers in this wonderful online community.
    I am open to technical advice and personal philosophy.
    Thank you for your help in advance!
    jd

    Get Onyx. It has some automated scripts that keep your mac's performance really good.
    Personally, I'd try using Onyx, if that doesn't help, just put your Ma OSX Install DVD inside, boot from it and install the OS again. All files and settings will be left intact (don't forget to update your system after installing it).
    Make sure you have the latest Office version installed, as earlier versions are known to disable some system tasks, therefore making OSX unstable.

  • How do I keep multiple windows open and switch back and forth?

    How do I keep multiple windows open and switch back and forth?

    billyg27,
    if you hold down a Command key and press the Tab key, it will show a set of icons representing your currently opened programs. Press Tab until you arrive at the program you’d like to switch to, and then release the Command key.

  • Draw lines and columns button was disabled

    hi friends,
    in my smartform template draw lines and columns button was disabled which results select pattern button also disabled. now i am unable to change any lines, can any one help me how to enable this button to change.
    thanks and regards,
    venkat suman.

    Hi
    I come to the same problem and google lead me here.
    Not the problem of Display/Change mode or authorization.
    I fix this problem as below:
    1) create a new smartform and create a template
    2) click the "Settings" button
    3) in tab General, check the "Draw Lines and Columns", click OK
    4) exit without saving
    5) now I can use the "Draw Lines and Columns" button
    but here when I click the Settings button again, the "Draw Lines and Columns" is unchecked.
    Hope this can help
    May some mentor give an explanation.

  • Draw lines and columns button is disbaled inde template

    Hi all,
    Im developing a custom smartform with a template.
    Now in the template,Draw lines and columns button is disbaled .How do i enable it.Also all the "SELCT PATTER" buttons are also disabled.

    Go to settings->table painter->select the required ones.

  • TA38622 how do you delete a contact name and phone number from this?  i have deleted it from my regular contacts, but it remains in a text memory when i begin to type the beginning of a name

    How do I delete a contact name and phone number from my texting memory?  I have deleted this contact from my regular contact information; however when I text and begin to text a contact beginning with the 1st letter of the name I had deleted, it brings up the old, deleted contact information in my texting history only.

    You would have to restore as new.

  • How to find index name with primarykey and column on a table?

    Hi,
    how to find index name with primarykey and column on a table?
    please help me.
    Thankyou.

      1  select ac.table_name, ac.index_name, aic.column_name
      2  from user_constraints ac, user_ind_columns aic
      3  where ac.constraint_type = 'P'
      4   and  ac.index_name = aic.index_name
      5* order by 1,2,3
    SQL> /
    TABLE_NAME                 INDEX_NAME                COLUMN_NAME
    ACTION_TABLE                 SYS_C0011033                NESTED_TABLE_ID
    ACTION_TABLE                 SYS_C0011033                SYS_NC_ARRAY_INDEX$
    CATEGORIES_TAB                 SYS_C0011038                CATEGORY_ID
    CUSTOMERS                 CUSTOMERS_PK                CUSTOMER_ID
    INVENTORIES                 INVENTORY_IX                PRODUCT_ID
    INVENTORIES                 INVENTORY_IX                WAREHOUSE_ID
    LINEITEM_TABLE                 SYS_C0011034                NESTED_TABLE_ID
    LINEITEM_TABLE                 SYS_C0011034                SYS_NC_ARRAY_INDEX$
    ORDERS                      ORDER_PK                 ORDER_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                LINE_ITEM_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                ORDER_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                LANGUAGE_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                PRODUCT_ID
    PRODUCT_INFORMATION            PRODUCT_INFORMATION_PK           PRODUCT_ID
    PROMOTIONS                 PROMO_ID_PK                PROMO_ID
    WAREHOUSES                 WAREHOUSES_PK                WAREHOUSE_ID
    16 rows selected.

  • Displaying the Row and Column number in the report

    I am trying to show row and column number in the report (not just web preview). I am using Hyperion Reports Version 7.2.5.168

    use a formula column/row. use RANK function in that. (e.g. Rank([A], asc) will sort the rows based on column A values in ascending order)
    you can use this rank in your heading.
    But frankly this is not so easy. You have to do it in a very intelligent way, so that rank gives you column number/row number any how.
    Have a try and let see if you find a appropriate solution.
    Regards,
    Rahul

  • Goto row and column in a JTextArea

    Does anybody here know the correct procedure to get to a specific row and column in a JTextArea? I want to be able to do something like this:
    replace(char c, int row, int column) - where the original character at row,column will be replaced with c.
    I know that in C++, there is a windows console library that lets u do this, but there isn't one in java so I'm trying to get around it using a JTextArea.
    Thank you.
    Any Help/Comments/Ideas will be greatly appreciated.
    -Patrick

    JTextArea has a replaceRange method.
    John

  • How do I keep track of stats and subscriptions of my podcast? Mine was just added today.

    My podcast, The Big Seance Podcast, was just added to iTunes today. Other than keeping track of stats through my host (Libsyn), how can I keep track of subscriptions, ratings, and downloads through itunes? Thanks!

    Hi Patrick,
    You will not get any stats from Apple / iTunes.  You need to get that info from your libsyn account.
    If you want to see the number of people consuming via iTunes or the Podcasts App (AppleCoreMedia) - you will need to have the advanced stats - App 400 or greater level account in Libsyn.
    That is the only way to get the info you are looking for.
    Regards,
    Rob W

  • How to change a account assignment in and cost distrubution on cost center

    Hi Expert
    Can any one let me know how to change the account assignment and cost distribution on the cost center.
    When I am going to change it I could see it is grayed out . Why it is so .Is there any configuration for this in view that
    no body can change the account assignment.
    Regards
    NTT

    Hi
    As per me system will  not allow to change you account assignment in Po
    for additional info check following link
    [Change of Account Assignment in PO while adopting released PR.;
    Regards
    kailas Ugale

Maybe you are looking for

  • Sending an email to multiple recipients

    I'm trying to send to an email to to a few hundred addresses (a gig announcement- I'm a musician), and Apple Mail won't let me. The addresses are in a group in the Address Book. I use to do this on my G5, but this computer won't allow it, even though

  • Problem in converting text to image.

    Hi I am trying to convert a text to image. The code for the same is pasted below. The problem is how do I change the background color. No matter what color I give with Graphics2D object, the background is always black. I want a white background. publ

  • Cannot remove a DHCP entry

    A single record keeps returning to my DHCP server. If I delete or edit it it automatically returns as it was. I have deleted the bootp.plist to no avail the record returns. Where is this data stored so I can remove it

  • Create table from DTD

    Does anyone know of a simple way to generate a table (either a SQL build script or an actual table) from a DTD file? I have developers in my shop capturing XML documents and storing them in a CLOB field in a table. I want to be able to parse this CLO

  • Portal Favorites "Move" Command

    Hi, When a user is organizing their favorites and select option "Move" they get a dialog that presents the folders in the "Entry Points" Folder.  I'd like to override this move dialog so they only have visibility to their own favorites folder. Can an