Is there any difference , selecting particular string from left to right

hi
we have a problem for selecting a string ...
we selecting a string from JEditorPane ..
useing JEditorPane.getselectedText();
After selecting text we adding some tags to selected text
it working fine when we are selecting from right to left .
when we are selecting text left to right it's not working .but
we geting selected text in both times(right to left, left to right) ..
pls help very urgent

I can only guess... But if it is true that you mean by 'selecting right to left' that the selection started at the right and ended on the left. Perhaps you are storing values from JEditorPane.getSelectionStart() and JEditorPane.getSelectionEnd(). If this is true, it could mean the failure you have in your code, because the number for getSelectionStart() is higher then getSelectionEnd() if you started from right and lower when you started from left. That could cause your problem.
You could fix this for example by this:
if (MyEditorPane.getSelectionEnd()<getSelectionStart())
change values.
or vice versa, hope that helps...

Similar Messages

  • Is There Any Difference Between OS Installed From Disc vs A Clone Copy?

    Does it make any difference to the computer? Is installing a system from a disc onto your HD any different than if its copied from a cloned backup?
    IOW, does one possibly run better, or is less problem prone, than the other?

    Thanks.
    I ask because I did a completely new install of SL and all the apple apps I have. Then I made a clone with Superduper.
    Then I went and did another application install which takes about 11 hours to do and turned out very unstable (no thanks to the maufacturer)
    So, I want to go back to my previous clone (although I should check and see if those suite of apps have uninstallers) and I just wanted to know if a clone copied back is just as blessed as a direct install

  • Is there any difference in importing movies to iMovie direct from memory card or first importing the movie to the hard drive?

    Is there any difference in method:
    1) importing movies directly from memory card (class 10) to iMovie
    2) copying the content of the memory card to my hard drive and from there I import it to iMovie
    I mean, is there any quality issues? The latter method is really much faster.

    AndersD_Vasa wrote:
    … I mean, is there any quality issues?
    No.
    The copy of the card is a 'bit-identical clone' - no difference to the 'original'.
    Plus a superb method to back-up originals....
    I copy all my original recordings first onto some hard-drive - SDcards are much to 'fragile' in my experience....

  • If I want to buy the iPad Air from US although I'm from Hong Kong, is there any difference between buying in Apple Store and in BestBuy ?

    If I want to buy the iPad Air from US although I'm from Hong Kong, is there any difference between buying in Apple Store and in BestBuy ?
    E.g. I buy it in BestBuy, I still can take the iPad Air to the genius bar if there are problems for the iPad?
    Thanks!

    Yes, as long as you buy a new device from an Apple Authorized reseller (which BestBuy is) then you have the normal Apple one year warranty with it.  Apple will honor that warranty in any of their stores, and anyone with any Apple device is welcome in any Apple retail store with questions or seeking help.

  • Is there any difference between an unlocked Iphone sold in australia and the USA and if i bought one from the USA what would I have to do to use it.

    Is there any difference between an unlocked Iphone sold in australia and the USA and if I bought one from the USA what would I have to do to use it.

    An unlocked phone is an unlocked phone.  It's sold without a SIM card.  You have to get a SIM card from the carrier you want to use, with an account set up, insert the SIM and activate the phone in iTunes.
    Unlocked phones sold by the USA online Apple store can only be shipped to a US address and paid for by a US credit card
    The only difference between an officially unlocked iPhone sold in the US and Australia is the warranty.  The warranty is valid only in the country of sale.  If you buy the phone in the US and return to Australia, if it breaks you have to ship it to a US resident who will get it to Apple and return it to you.  It can't be shipped direct in either direction.

  • HT1476 Charging an iPhone is there any difference from charging in a car and charging from a wall outlet?

    Charging an iPhone is there any difference from charging in a car and charging from a wall outlet?

    As long as both chargers meet the required specs, no.

  • Is there any update regarding Apple maps from Apple...?

    is there any update regarding Apple maps from Apple...? I live in sydney. I Know there are lots of issues with Apple maps but i reported more than 3 issues and i could see there is no resolution for those issues ?

    Apple does not broadcast anything.   The audio encoding options selected for content is controlled by the services the content comes from.  Apple just distributes content they are provided with.  I am not 100% sure but I believe the current ATV only supports 5.1 so it is pretty likely 7.1 could not be supported with out a new ATV device update, and they have not updated ATV in about four years now.   Starting to wonder if they are going to.   They used to own this market and now have pretty much lost it.   You might check Amazon Fire.   I think it might support 7.1.   I finally gave up on waiting on Apple and bought one and am mostly happy with it.

  • Are there any differences?

    Are there any differences? on Ipod Video bought in USA and Europe? or are they just the same?
    Ive heard that some people have problem with ipods in europe with the pal system when they bought it in USA.
    Regards Kim

    The only difference I would think there would be between iPods sold here or in Europe is the default option for video out display. So, if you buy your iPod in Europe, and you want to display something from your iPod on a TV in the US, you would just have to change and option. Here is an article that goes over that a bit:
    http://docs.info.apple.com/article.html?artnum=300250

  • Is there any difference in oracle database and forms database

    i want to know is there any difference in oracle database and forms 6i database
    ,if i import some file through oracle database then same data will exist in forms database or not
    thanks

    Oracle Forms is a Rapid Application Development (RAD) tool not a database. With Forms, you connect to an Oracle database to query and display data from the database as well as insert new or update existing data. Consequently, if exists in the database - you should be able to display it in a Form.
    Craig...

  • Is there any difference

    Is there any difference in committing in a FORALL loop and from a FOR loop.????

    Peeyush wrote:
    sir i was reading the articles in asktom.com and when I was going through a document one person mentioned that there are difference in commit in for and forall statements but I am not able to figure it out that's why I wanted to know where the difference actually lies in commit statements in for and forall..And the answer is that you CANNOT commit in a FORALL statement. As alreayd pointed out a FORALL statement is literally a single bulk DML statement. It doesn't have a loop structure for you to put a commit inside of. You can only commit after the FORALL has happened. You can however commit inside a FOR loop, but generally speaking that would be considered bad practice. You should commit when the business logic says that it's a valid point to commit the business transaction, otherwise you could end up leaving your database in an inconsistent data state if you've committed part of a logical transaction.

  • Is there any difference in SAP 4.7 and ECC 5.0

    Dear,
    Is there any difference in SAP 4.7 and ECC 5.0...
    Thanx & Regards,
    Mohammad Nabi

    Hi,
    Check this out
    Hi I'm providing the ECC 6.0 functionality if you knows the
    4.7EE the difference is as follows:
    ECC 6.0 New GL Functionality
    1.Activate the New General Ledger Accounting by a single
    click on the clock icon
    2.You will reach to change view "activation of New GL A/cg"
    detail screen and tick the checkbox and save.
    3. After activation of New General Ledger Accounting, you
    exit the IMG screen when you re-enter, you find that a new
    node is added Financial Accounting (New)
    4.After activation of New General Ledger Accounting; a new
    sub node appears in the IMG structure.
    This sub node is Define Segment
    The menu path is:
    SAP Customizing IMG ---> Enterprise Structure -
    >
    Definition --> Financial Accounting --> Define Segment
    In this IMG activity, you define your segments.
    If you then define your profit centers, you can enter an
    associated segment in the master record of a profit center.
    The segment is then derived from the assigned profit center
    during posting.
    5. Activation has created a new field in Profit Center
    Master Record: the SEGMENT
    6.Leading and Non- Leading Ledgers
    In General Ledger Accounting, you can use several Ledgers
    in parallel. This allows you to produce financial
    statements according to different accounting principles. A
    ledger uses several dimensions from the totals table it is
    based upon. When defining Ledgers, one must be defined as
    the Leading Ledger. The Leading Ledger is based on the same
    accounting principles as that of the consolidated financial
    statements. It is integrated with all subsidiary ledgers
    and is updated in all company codes. This means that it is
    automatically assigned to all company codes. In each
    company code, the Leading Ledger receives exactly the same
    settings that apply to that company code : the currencies,
    the fiscal year variant and posting period variant .
    You must designate one of your ledgers as the Leading
    Ledger. It is not possible to designate more than one
    ledger as the leading ledger.
    The menu path is:
    SAP Customizing IMG -
    > Financial Accounting (New) -
    >
    Financial Accounting Basic Settings (New) -
    > Ledgers ---
    -> Ledger -
    > Define Ledgers for General Ledger
    Accounting
    Clicking on the checkbox identifies one of your ledgers as
    the Leading Ledger.
    7. Activation of Non Leading Ledgers
    Non Leading Ledgers are parallel ledgers to the Leading
    Ledger . They can be based on local accounting principle,
    for example. You have to activate a non- Leading Ledger for
    individual company codes. Non- Leading Ledgers can have
    different fiscal year variants and posting period variants
    per company code to the Leading Ledger of this company
    code.
    The menu path is :
    SAP Customizing IMG -
    > Financial Accounting ( New ) -
    > Financial Accounting Basic Settings (New) -
    > Ledgers -
    ---> Ledger -
    > Define and Activate Non --Leading
    Ledgers
    8.Assign scenarios to ledgers
    A Scenario combines Customizing settings from different
    business views. Each business view specifies which posting
    data is transferred from different application components
    in General Ledger Accounting, such as cost Center update or
    Profit Center update .You assign the desired scenarios to
    your ledgers. For each ledger, you define which fields are
    filled with posting data from other application components.
    SAP delivers a number of scenarios in the standard system.
    It is not possible to create additional scenarios.
    The menu path is:
    SAP Customizing IMG -
    > Financial Accounting (New) -
    > Financial Accounting Basic Settings (New) -
    > Ledgers -
    --->Fields -
    > Display Scenarios for General Ledger
    Accounting.
    9. Cost of sales accounting
    Cost of sales accounting is a way to create a profit and
    loss statement (P&L) for a company by comparing the
    revenues to the costs or expenses incurred to obtain these
    revenues.
    The expenses are mainly divided by functional area such as:
    Manufacturing
    Administration
    Sales
    Research and Development
    We can activate Cost of Sales Accounting by the following
    menu path :
    SAP Customizing IMG -
    > Financial Accounting ( New ) -
    -> Financial Accounting Basic Settings (New) -
    >
    Ledgers ->Ledger---> Activate Cost of Sales Accounting
    Offsetting Account Report ECC 5.0
    Offsetting account report for vendors in ECC 5.0 is
    possible after implementing the OSS Note 1034354
    Reward if helpful.
    Regards
    Ravi

  • Are there any differences to an iPod touch bought in the USA that in the UK, Are there any differences to an iPod touch bought in the USA that in the UK

    If i was to buy an iPod touch in the USA are there any differences to one bought in the UK?

    I'm not sure that's correct Illaass.
    Unless the volume restriction (on EU iPods) has recently also been introduced worldwide, then an iPod bought anywhere inside the EU (European Union) - which includes the UK, has the maximum volume limited, compared to an iPod bought outside the EU, such as the USA.
    Note that I'm not referring to the Volume Limit feature in the Settings/Music menu (which both a USA and UK iPod Touch have), but the absolute maximum possible output of the iPod.
    Our glorious leaders at "EU headquarters" decided some years ago to protect our delicate little ears from harm by capping the output of EU sold iPods and since then - well, you can guess the rest, it's boring.
    To some people, this difference is very important, so drhill may want to take this into consideration. The "limit" of an EU model cannot be over-ridden, although if buying one in the USA (as drhill indicates he/she may do), you can of course limit the volume to the lower EU level using the Settings/Music>Volume Limit feature.

  • Is there any difference between an HP Photosmart 7510 and 7520?

    Is there any difference between the HP Photosmart 7510 printer and the 7520?
    I have tried asking HP. They were not able to help. Presales advice for domestic customers appears to be virtually non existent in the UK.
    All  I know is that Argos deal with Ingram Micro to get the 7520.
    Is the 7520 just a marketing ploy - selling the same product for a different price? 

    Yes there is a difference. They are not the same; however, they are based on the same platform (engine).   The 7520 is the newer model which just replaced the 7510. 
    The main differences is the 7520 includes a hardware fax  built-in whereas the 7510 used the efax utility in order to send faxes.  This essentially allows you to fax directly from one fax machine to another without using a server based method.
    Other features on the 7520 include addition of a Scan to email feature as well as the addition of a USB 2.0 port on the front of the printer.
    You can find the complete 7520 product specs on the hp website: 
    http://shopping.hp.com/en_US/home-office/-/products/Printers/HP-Photosmart/CZ045A?HP-Photosmart-7520...
    Though I work for HP, My posts express MY opinion, and not those of HP.

  • Is there any difference between "jsp:useBean" and "scriptlet" ?

    A few days ago, I asked similar question. But I didn't get the answer I wanted.
    I want to know the differnce between <jsp:useBean../> and <% .. %>(scriptlet).
    I tested in three environments(Oracle Jserv, OC4J, and Apache Tomcat).
    In Oracle Jserv and OC4J, a problem occured. But, Apache Tomcat does not occur a problem.
    For example,
    1) TestClass.java (Bean)
    public class TestClass {
    private String txt;
    public class TestClass {
    txt = "Test"; ----- (g
    public String getTxt() {
    return txt;
    2) test.jsp
    <html><body>
    <% TestClass test = new TestClass(); %> ---(h
    <%= test.getTxt() %>
    </body></html>
    Assume that I visit "http://localhost:8888/test.jsp".
    In Tomcat, if I change "Test"(number(g) to "Test1" and compile the browser shows the change.
    But Oracle Jserv and OC4J does not do that. They also show the old String.
    So, I changed <% TestClass test = new TestClass(); %>(number(h) to <jsp:useBean id="test" class="TestClass" />. That is, I changed "Scriptlet" to "JSP useBean Tag".
    Then, Oracle Jserv and OC4J also show the changes.
    To conclude, is there any difference between "JSP useBean Tag" and "Scriptlet"?
    Can't I use a scriptlet (to make a class) in Oracle Servlet Engine?
    Thanks.

    It could be as simple as the JSP not recompiling between java recompiles - ie, it compiles in the link to the old class.
    Try changing the JSP file (add and delete a space) after you change the java code, and then see what happens.
    Jonny
    null

  • Is there any difference between a US and a UK iPad Mini?

    I am able to get an iPad Mini with Retina (32GB) from an American Air base in the UK (my fatehr was in the Air Force) and it's slightly cheaper than getting a UK iPad Mini with Retina (32GB). Is there any difference (apart from the charger in the box) between the two?

    BearMan705 wrote:
    the origional iPad so I could just use her charger (not sure if it's compatible)
    The original ipad uses a different connector than those of the 4th generation and later.

Maybe you are looking for

  • Sharing iphoto library on network drive

    Hello, I'd like to use the same iPhoto library on two Macs. Therefore, I intend to use my time capsule as a network drive. I learned from other posts that I can easily move my iPhoto library to the network share. Using two laptop on the same photo li

  • ReportCrash using CPU due to mdworker crashing

    I have seen this reported several times, with different resolutions over the years. I am posting this here as a new discussion to help anyone who has the same problem which seems to be a more recent version of the problem with Mountain Lion, and some

  • LOGO not going when sending the report as Email attachement

    Hi We are calling reports in two ways (both as html format) to be sent as Email. The report includes company logo at the top 1.Running report in cache through Web.Show_document and copy it by using copy_report_object_output and displaying it using We

  • Is there a TRIM document management portlet ?

    Hello, Are there any portlets for the TRIM document management application ?

  • Can be fixed valuation type field in PO.

    Every time we create a PO for a perticular material  at a perticular plant, we have to enter in the valuation type each time. Can this be fixed?