Finding offset in document being shown in JEditorPane

Hello all,
I need urgent help. I hope you reply.
How to find the current offset in text document which is being shown in JEditorPane ?
I want to write Page Up and Page Down code and for that knowing 'where
the caret is ' is essential.
HOW TO FIND WHICH PART OF DOCUMENT IS BEING SHOWN ?
Any help will be highly appreciated,
thank you
samjoshi26.

getCaretPosition();

Similar Messages

  • HTML file is not being shown properly in the JEditorPane

    Hi,
    I am using JEditorPane to display an HTML file from the local disk. This HTML file contains the html tables. Now when this file is getting displayed in the JEditorPane, one top row grid is not being displayed in the editor pane. content of the row is there...but the column grid is missing. All other rows and columns are being shown but the first row-column grid which contains the heading for column.
    Also when I m printing the content of this JEditorPane using Java Print API then no grid is being printed on the paper. content is coming properly but no table grids. when i have taken the print out of the original html file from the browser then table grids are being printed out properly.
    Please do help me out in showing the HTML file in the JEditorPane properly and printing the same.
    Many Thanks,
    gshankar

    Hi,
    JEditorPane renders HTML with many limitations.
    You can use JDIC for the same. refer: jdic.dev.java.net
    But JDIC does not work on windows 98.
    Anand

  • TS1424 I have just opened iTunes and only the music that I have purchased from the iTunes store is being shown: I can't find any of the music that I have imported from a file. Help?

    I have just opened iTunes and only the music that I have purchased from the iTunes store is being shown: I can't find any of the music that I have imported from a file. Help?

    See this post.
    tt2

  • PDF Export Options not being Shown

    Need to export to pdf again. Last export was for only 6 pages, as a test. Now want to export the entire document. However, only 6 pages are created in the export. No options to revise the pages, are presented.
    The iD app is acting strangely, in that many other options are not being shown. Also, on loading a document, there are notes about hyphenation and missing LILO. Beginning to believe I need to reinstall.
    Pleae advise best course of action at this point.

    before you reinstall, see if trashing the prefs helps. See Replace Your Preferences

  • In My Shared View the inbox tabs like My Tasks , Initiated Tasks are not being shown

    In My Shared View the inbox tabs like My Tasks , Initiated Tasks are not being shown :
    How to display the tabs in shared views also.
    I just wanted to created one shared view that will look like Inbox but filter data for State = 'Completed'

    Please update me if you can find any way to achieve this in BPM workspace

  • No save file option being shown

    Hi all
    We use Oracle Apex 3.1...
    in a Report while Downloading the File from the Report Out put,
    the File is getting opened on the same Brower? instead of asking an Option to Save at location
    only .doc files are being shown a save file option and for rest of files like pdf, bmp txt they are all opening in the same browser page
    Number / Date Format
    DOWNLOAD:PSA_KNOWLEDGE_TREE:DOCUMENT:ID::MIMETYPE:FILE_NAME:::&FILE_NAME.
    ANy idea Please

    Hi,
    Try format
    DOWNLOAD:PSA_KNOWLEDGE_TREE:DOCUMENT:ID::MIMETYPE:FILE_NAME:::attachment:&FILE_NAME.Br, Jari
    Edited by: jarola on Oct 29, 2009 9:12 AM

  • Only 147 photos are being shown on my photo stream with the new photos version

    I've taken around 600 new photos the last two weeks. But on my photo stream album are only 147 photos being shown.
    How can I fix this problem? I've tried to turn and off photo stream. But nothing changed.
    I use photos Version 1.0 (209.52.0) on a mac os 10.10.3
    Thanks

    Hello Huggi23,
    I'm sorry to hear you are having these issues with your photos. If you are having issues with consistency in your Photo Stream across your devices, you may find the troubleshooting steps outlined in the following article helpful:
    Get help using My Photo Stream - Apple Support
    Sincerely,
    - Brenden

  • Planned Order for a Product not being shown

    Hi Experts!!
    I am an ABAPer and I am new to SAP APO. We are now working on /SAPAPO/PPT1. When clicked on some quantity, all the planned orders existing for that product are being shown with respective quantities. Now, I am trying to create a new planned order for a product through FM BAPI_MOSRVAPS_SAVEMULTI3 by splitting the quantity among the receipts. I have gone through several posts and have written the logic. But the newly created planned order is not being shown in /SAPAPO/PPT1. I can't find it anywhere. Am I doing something wrong here?
    Here I explain it with an example. I have an aggregated entry for the month of June with quantity 3000, which is already split under receipts 1234 and 1235 as 1000 and 2000 EA respectively. Now, I need to split it as 1000 EA for each planned order and hence am creating a new plord. I am using same FM for changing plords as well with quantities as 1000. So, now both the receipts are being shown with quantity 1000 and the aggregated value as 2000... and the newly created one is missing. But I need the new one to be displayed and the aggregated should be 3000. Why is this happening? Am I missing something?
    I already have posted a query that is related to this total requirement. Change Receipt Quantity for Planned Order in LiveCache . This has the first part of the total requirement. Just provided for extra info, but not related to this issue however.
    Please help me out. Your help is highly appreciated. Thanks a lot!!

    Hi Srinivas,
    With prior experience, i am sure that the BAPI SAVEMULTI3 can be used for Creation & Change.
    I dont think,the FM's which you are using, are recommended by SAP. So , try to use BAPI most of the time,as it ensure data consistency.
    As you told, order is not flown to ECC, but visible in APO, i would suggest you to check the importing parameters of the bapi, like EVENT CONTROL ( should be '1' ).
    and COMMIT_CONTROL(should be 'E').
    Also, check your queues after execution of bapi. you should find your change pointer in the inbound queue of R/3 System. Do let me know if you still stuck.
    Thanks,
    Santosh KB.

  • Unable to find this Oracle document ID 1277924.1

    Hi All,
    Unable to find the below document provided by Oracle Support
    WebCenter Page Hangs with Web Page Layout Components Referring to JSF Pages (Doc ID 1277924.1)
    Any help will be appreciated.
    Thanks,
    Somnath

    Unable to find the below document provided by Oracle SupportMe neither. Just tell support to provide you more information.

  • How to find out which documents have been indexed?

    Hi,
    How can we find out which documents have been indexed by intermedia - I get a lot of errors when i look in ctx_user_index_errors - but how can I relate or find which error row means which row or document in the table on which the index is created??
    Thanks
    Dhwanil Shah

    You can enable the log to see what's going. That will tell you the exact number of documets that failed.

  • Finding goods receipt document and serial number of a material

    Hello,
    The issue is that I look for an easier way of finding serial numbers which are entered while posting goods receipt of the goods. Then the material is put away into a storage bin. Each sales order position has a project element which is assigned to a sales order position (not to a serial number). When warehouse employee needs to pick the goods in the outbound delivery, he has to type in serial numbers. In MB51, it is possible to search for the GR material document but it can be quite difficult to find it too.
    Does anyone have an idea how to find the GR document of a sales order position? Do I need to build up a query with tables containing information about GR, outbound delivery and project element ?
    Thanks a lot.
    Esra

    hi
    good
    yes you can use this table
    EQUI->
    Material Number->MATNR
    Plant ->WERK
    Storage Location->LAGER
    Manufacturer Serial Number ->SERGE
    Thanks
    mrutyun^

  • Document being distributed no changes not possible and btadminh could not be locked

    Hi All,
    I am getting ERROR: "document being distributed no changes not possible" & WARNING:"BTadminH could not be locked" in CRM WEBUI while trying to edit the order.
    I checked all the BDOCs and smq1, smq2 ,smw01 here are no queues stuck here.
    I also run distribution check FM, whenever i run it will be unlocked and able to edit. but this is not the solution for me because this error and warning getting to every new order (transaction) .
    thanks,
    Vinnu.

    Hi,
    Check the initial status settings, there should not be any distribution lock maintained.
    Award point if it is helpful
    Regards,
    D Singh

  • Content Server - get content of document being checked in

    Hi,
    Is is possible to get the content of the document being checked-in via Java? Assuming I want to have a component which performs some action on the document being checked in, before this document is checked in. Is there some way to read the content of the document?

    Hi Jiri,
    Thanks again for pointing me in the right direction. From what I understand I just need to get the path to the document and then open it via Java. I believe sth like this does the trick:
    String docPath = binder.get("primaryFile:path");
    From my understanding there is this "vault" folder which holds the content server's files, revisions, temp files etc... Using the above code should work ok, but I understood that the CS can be told to save its files into some data base instead of the "vault" folder, in which case the above code won't be useful...
    I assume in this case reading the document is done in some other way...
    So, should I conclude that there is no general/abstract way of reading the document being checked-in which doesn't take into consideration the underlying structure which keeps the CS's files(vault or DB)?
    Thanks,
    V

  • How to find out Inquiry  document number in sales quotation

    Hi all
    my client have requirement that while creating quotation with reference to inquiry number the system should copy inquiry number in sales quotation it should be save into any particulates field so base on that  he can configure  output determination can any one help me how to find out Inquiry  document number in sales quotation and what are the config step i need to do
    Thanks and regards
    rajesh

    Hi raj
    Firstly  , In Sales header data you can see the preceding document feild but i am not sure in which tab .
    Secondly, As far as document flow is concerned go to VA22 and then you will get the document number of the quotation and at the top you will get one small icon which is document flow , but i am, not sure with the shortcut but just check with  Shift +F2. then you can see the flow
    Regards
    Srinath

  • I'm being shown an error pop-up message periodically saying "There was a problem connecting to the server. URLs with the type 'file:' are not supported." I have a brand new MacBook Pro, and at no time am I actually having trouble connecting to the server.

    I'm being shown an error pop-up message periodically saying "There was a problem connecting to the server. URLs with the type 'file:' are not supported." I have a brand new MacBook Pro, and at no time am I actually having trouble connecting to the server, but this message continues to pop-up several times a day at random intervals. Is there something I'm doing wrong? Or is my computer just having a glitch? Other than that, and a mildly sticking caps lock button, it's working perfectly.
    Thank you!

    Alright it didn't solve it. Any other suggestions?
    I haven't suggested a solution yet. I want to know whether you still get the messages while Time Machine is disabled. Do you? If so, try any or all of the solutions proposed in this thread:
    There was a Problem connecting to the...: Apple Support Communities

Maybe you are looking for

  • How do I create a Username Validator for a web service.

    I'm trying to figure out how to create a Username validator. I've followed the WSIT documentation and created their calculator service. The service works when I leave security turned off, so I know I'm good up to this point. I right click on the Web

  • Sony PMW-EX1 and FCS  2 - any issues?

    After being hooked by the Creative Cow on the Sony PMW EX1, and then doing some more research on the Prosumer camcorder, I'm really interested in this unit. Cost appears to be about the same as the Panasonic AG-HVX200 $5800 or so. But what I like mos

  • Lean WM -Fixed Bin Creation

    Hi, We are planning to use lean WM for our business with fixed bins.Do we need to create storage sections in order to be able to create the fixed bins in the warehouse?if not how do we create the fixed bin .Where do we assign the fixed bins in the ma

  • APEX_PUBLIC_USER password expired and now APEX denies access to /pls/apex/f

    Hi. I have a problem with expired passwords. We are using APEX 2.2.0 with Oracle 10g. This morning the APEX_PUBLIC_USER and HTMLDB_PUBLIC_USER accounts passwords expired. We have a really weird setup. Our DBA team owns these accounts and our web serv

  • Simple question...I hope

    Earlier I posted a question, and this is sort of a follow-up or more fundamental question... Can you simply print from a PC/Win2000 to a printer that is connected via usb to a Mac (the PC and MAC are wirelessly networked)? Or, does the printer need t