Trying to get a JEditorPane to highlight the full width of a displayed line

I have displayed the wep page in JEditorPane . Now I'm trying to get a JEditorPane to highlight the full width of a displayed line. All the examples I've tried only highlight the textual content. For example if I have content such as this:
+ Here is some text +
+ some more text +
within a JEditorPane represented by the box above, then highlighting the first row highlights only the 'Here is some text' (represented between [ and ] below).
[ Here is some text ]
[some more text ]
I would like it to highlight the full width of the JEditorPane like the following:( ie Inspecting the Html element in firebug ....)
l Here is some text l
l some more text l
l_________________________l
Is there a way to do this?
Edited by: arunnprakash on Mar 27, 2009 7:59 AM

Take a look here:
[http://tips4java.wordpress.com/2008/10/29/line-painter/]
[http://www.java-forums.org/awt-swing/10862-how-select-highlight-entire-row-jtextpane.html]
db

Similar Messages

  • Trying to get my ring back at the full 30 sec.

    what's up people heres my problem. I bought a new ring tone last night and it was working fine but i realized that it was only ringing for 20 sec. instead of the full30 sec. that i paid for so i tried to fix it and it did not work. Now when some one calls me it rings on their end but not on mine. Please someone help me get my ring back at the full 30 sec. i paid for thanks for all your help in advance!

    Right click the orange Firefox button to open the toolbar context menu or use (F10) View > Toolbars.
    * Click the Menu Bar entry and place a check-mark to make the Menu Bar visible all the time (Windows and Linux).
    * Click "Tabs on Top" to remove the check mark and place the Tab Bar at its original position just above the browser window.
    * https://support.mozilla.com/kb/why-are-tabs-top
    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.
    See http://kb.mozillazine.org/Toolbar_customization

  • How can I get a header image to span full width of page?

    Hi All
    I have tried just about every thing to get this image to span the full width of the page, its fine in design mode but when I view it in preview its centred with white space either side. 

    Hi Brad
    Thanks for your reply,  I have treied that also with similar results. 

  • Does running scanpst ever fully correct or fix the pst? Ran it 416 times so far trying to get it to fully clean the file.

    Does running scanpst ever fully correct or fix the pst? Ran it 416 times so far trying to get it to fully clean the file.
    I've ran this scanpst within Win7 outlook 2010 for 3 days. The scanpst began taking about 4 minutes to finish and still showed that there were errors in the file. After 416 runs through the scanpst, the file is taking about 15 to 30 seconds. It's greatly
    improved but this is ridiculous. Why isn't there something from tech support to fully fix the file without starting a new profile and starting over? There's just too much info needed to be saved. If it's simply transferred over to the new profile then it works
    for a short time then the corrupt files wreck the new profile. I've really searched for this answer and gotten no where even on youtube. Some of the issues are mostly hanging outbox or rejected login 0x80042109, 0x800421A, 0x800CCC92 and 0x800CCC1A. Please
    assist in stopping the madness.
    Thanks, ICRonline

    There's just too much info needed to be saved. If it's simply transferred over to the new profile then it works for a short time then the corrupt files wreck the new profile.
    This isn't an attempt to provide any kind of definitive answer but your description begs a number of questions...
    #1 - What kind of email account is this particular PST file associated with - POP3 or IMAP?
    #2 - If IMAP - am assuming that the PST file in question is related to the one which contains the <Inbox> folder> correct?. Simply deleting (renaming) this file will result in a new one being automatically recreated with the contents of whatever
    exists on the server (assuming you have no created any kind of <local only> unsubscribed folders in the tree) - which then begs the question as to whether or not the root of the problem exists within the data stored on the server
    #3 - If POP3 - what is the format of the PST file - ANSI or Unicode? If ANSI - what is the size of the file? ANSI files max out at 2gb
    To determine the format - right click on the root of the PST file --> properties --> click <Advanced> button --> if the <Format> field description contains <97-2002> - it's an ANSI based PST file. (Regardless of anything else - if
    this is the case - should be converted to a UNICODE file)
    #4 - Where is the PST file being stored - on a local drive or a network drive? If network - not supported and highly prone to causing corruption.
    #5 - Purely from a logical perspective - the fact that things appear to work properly for the "first few days" after a new profile is created indicates that there is something consistently occurring on some kind of 'timed basis" triggering
    your issues. If that's the case, even if ScanPST did fully clear all issues - just a matter of time before the same thing happens again (whatever "that thing" may happen to be) - ergo, in this scenario, highly unlikely that ScanPST is the answer
    since what really needs to be done is to find the root cause of what is triggering the problem.
    #6 - It would also be pretty safe that this is not a generic issue impacting everyone using OL'2010 - regardless of OS so your environment is one deserving a lot of close scrutiny.
    Karl Timmermans [Outlook MVP] "Outlook Contact Import/Export/Data Mgmt" http://www.contactgenie.com

  • Trying to get PS-Elements 13 licensed; the only "numbers" I have are the ones on the back of the box

    trying to get PS-Elements 13 licensed; the only "numbers" I have are the ones on the back of the box

    Got it...had to rip the packaging apart ..who would have thunk !!!ThanksIndy
          From: Little_Pale_Face <[email protected]>
    To: Indy Mangat <[email protected]>
    Sent: Monday, March 9, 2015 8:22 AM
    Subject:  trying to get PS-Elements 13 licensed; the only "numbers" I have are the ones on the back of the box
    trying to get PS-Elements 13 licensed; the only "numbers" I have are the ones on the back of the box
    created by Little_Pale_Face in Photoshop General Discussion - View the full discussionIs there not a plain white box inside the outer box - the serial number is usually on that. Serial number is 24 digits starting 1057 Brian If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7268188#7268188 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7268188#7268188 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Photoshop General Discussion by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • I am trying to get Photoshop CC subscription but the system rejects my request due to my country (Panama), what should I do to get the membership?

    I am trying to get Photoshop CC subscription but the system rejects my request due to my country (Panama), what should I do to get the membership?

    generally you need 1.90gb
    what you can do is back up your phone to your computer before doing the update, just as a precaution.

  • How to highlight the whole row of a particular line item of sale

    How to highlight the whole row of a particular line item of sales order depending on condition?
    Please help its urgent..
    Looking forward your reply.
    Moderator message: please do more research before asking, show what you have done yourself when asking, do not flag posts as "urgent".
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Aug 9, 2011 9:30 AM

    Any ideas on what would cause this NOT to work? I added this row right after the table is created and populated and it is still not highlighted when I enter the form. The snippet of code that does this is:
    MyTableModel modelS = (MyTableModel)dataModel.get("S");
    jTable1 = new JTable(modelS);
    jTable1.setRowSelectionInterval(0,0);MyTableModel is this:
    class MyTableModel extends DefaultTableModel {
      public MyTableModel(Object[] columnNames, int numRows) {
        super(columnNames, numRows);
      public boolean isCellEditable(int row, int column) {
        if (TableKey == 'S') {
          if (column == 6) {
            return false;
        if (TableKey == 'O') {
          if (column == 0 || column == 4 || column == 5) {
            return false;
        if (TableKey == 'P') {
          return false;
      return true;
    }Can anyone help? Thanks.
    Allyson

  • Hi Guys,  I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out

    Hi Guys,
    I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out as this web-site has been payed for by my client.
    Alex

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • I have connected my new Macbook Air to my existing Samsung large external monitor with a VGA adaptor but I can't get the full mac desktop to display. No icons but then websites are coming up. Help!

    I have connected my new Macbook Air to my existing Samsung large external monitor with a VGA adaptor but I can't get the full mac desktop to display. No icons but then websites are coming up. Help!  Further info:  I am a complete newbie to Mac.  Had three macs prior to 2000 then four PCs.  Just come back and struggling a bit with the unfamiliarity. On my old PC laptop I could simply switch from the laptop screen to the large external monitor (and back)  with the F4 function key.  While I can get the background image from my MBA to display, that's it.  Until I noticed on the far left of the external monitor, the very edge of one of the web pages I was on.  So Idragged it over to display in the centre.  But that's all that's there.  And now I have gone out of those web pages but they are still displaying on the monitor.  There is some wierd disconnect.  I'm sure it is just a setting thing.  Will keep searching for answer but any advice welcome!

    Your dsplay is getting extended onto the external monitor. Chcnage the setting to duplicate it or only display on the external monitor and you should be fine,
    Let me know if this worked for you.

  • Using GridBagLayout to fill the full width of a JFrame, ...

    I have two quick questions regarding GridBagLayout.
    1st, I would like the fill the full width of a JFrame with a JPanel. I have tried:
    JFrame frame = new JFrame();
    //Set width and height of frame
    JPanel panel = createFilledPanel();
    panelConstraints.gridx = 0;
    panelConstraints.gridy = 0;
    panelConstraints.fill = GridBagConstraints.HORIZONTAL;But this fails to stretch the panel to the full width of the frame.
    2nd, I would like to align the elements in a panel to the farthest left they can go. I have tried:
    element.anchor = GridBagConstraints.LINE_START;But this aligns all the elements I do this to, to the same starting position horizontally, but not all the way left.
    I would appreciate help with either or both of these questions!

    weightx or weighty : Easy way to understand is priority amongs components and if this componets get setting
    with weightx = 1.0 then this components 's width and height values are respected to be kept over others.
    It just says that, putting the weight on this components over others. kept all others attributes of this componets first
    over other components.
    I hope my jebrish explanation help -

  • IWDGroup - making it the full width of the screen

    Hi everyone, I am using the IWDGroup element to enclose several other elements, e.g. Table, textview, labels, etc.
    I will be listing several groups on one screen, in order to make them uniform, I'd like to make it by default, stretch to atleast the full width of the screen.  I've tried setting the setStretchHorizontal to be true, however, still this does not work.  Please help.
    Thanks in advance,
    Michael P

    Hi Armin,
    Yes, I have tried setting the width=100%, using the CSS principle as it had suggested.  I'm starting to perhaps think that this is a bug.
    You have always been very helpful in the past, do you have any other suggestions?
    Kind Regards,

  • How can I find the full width at half-maximum?

    Hello,
    I have run into a problem that I hope you can help me with: I need to find the Full Width at Half-Maximum.
    I have an array of pixel intensities and have found the peaks and valleys using Peak Detector.vi, but I can not figure out a way to find the full width at half-maximum (the width of the 'hill' at one-half of its maximum point).
    Any help you may provide would be greatly appreciated.
    Jared Leisner
    - Using LabVIEW 6.1/Vision 6.0

    Jared,
    I had the same problem. One of the solutions I used was to use the was to
    use "threshold 1D array.vi" from the array palette. You can use this to
    iteratively get the uphill edge of the peak. To get the down hill edge, you
    have to invert the array and then use the same VI. Then subract the uphil
    position from the down hill position and your done.
    You do however need to be careful depending on your image content. If the
    image is noisy, then the "Peak Detector.vi" will have problems finding the
    "real peak".
    Steven Bloomberg
    CISTech
    "Jared Leisner" wrote in message
    news:[email protected]..
    > Hello,
    >
    > I have run into a problem that I hope you can help me with: I need
    > to find the Full Width at
    Half-Maximum.
    > I have an array of pixel intensities and have found the peaks and
    > valleys using Peak Detector.vi, but I can not figure out a way to find
    > the full width at half-maximum (the width of the 'hill' at one-half of
    > its maximum point).
    > Any help you may provide would be greatly appreciated.
    >
    > Jared Leisner
    > - Using LabVIEW 6.1/Vision 6.0

  • How can I measure the full width half max pulse-width of a gaussian function?

    Hi I am measuring a laser pulse using a Tektronix scope and feeding that data into my labview (v 7.1) based data system on a Mac OS X computer. I want to measure the full width pulse at half the maximum peak. The included measurement VIs that come with labview and the tek scope dont seem to do the job (even though the scope itself can do the measurement). I've attached my example VI. If anyone has any suggestions that would be great.
    Thanks,
    Paul
    Attachments:
    test scope.vi ‏255 KB

    If you can display a trace on the screen, you can get the full width at half maximum. LabVIEW gives you several options:
    Use the Pulse Parameters VI to determine the width directly. This will be a width based solely on the data with no assumption as to an underlying model.
    Use the Levenberg Marquardt VI to fit a gaussian to your curve, then calculate the full width at half maximum from the coefficients. Levenberg Marquardt is a least-squares/gaussian algorithm, so is somewhat noise sensitive.
    Use one of the minimizer functions (e.g. Downhill Simplex) to construct your own fit using a different assumed error distribution. If you are unsure how to do this, check out a copy of Numerical Recipes in C by Press et. al. and read the section on data fitting.
    Do your own data based calculation. Find the peak with Peak Detector. This will give you the magnitude, but you may want to verify it with a polynomial fit (parabola is usually good enough) across the top of the peak to avoid noise problems. Then find the positions of the half-maxima on either side of the peak. The Interpolate 1D Array will probably prove useful for this.
    Choose your method depending on your pain threshold and how accurate and robust you need the result to be. Good luck!
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • TS1687 I am trying to get a paid app for the first time but it tells me I need to enter additional security infirmation.  I enter the 3 secret questions etc then click done but nothing happens.

    Hi guys I've just got my first iTunes card and am trying to get a paid app but after I enter the password it says that I have to enter additional security information do I entered my 3 secret questions and answers, my rescue email and birth year then I click done but nothing happens.  Can anyone help?

    Hi massmercury,
    I want to apologize for your experience here with the service center. I am moving forward to have your case escalated for further review. Please see my private message.  I will be your point of contact until our Customer Advocate team reaches out to you. 
    Best regards,
    Bgriffin2
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • I can't get my applications to open to full screen. The apps are opening at about 75% and I cant figure out how to get them to open to the full screen.

    I cant get my applications to open to full screen. The apps are opening up to about 75% and i cant get them to extend to full screen.

    Which applications are you talking about? 
    Example: Browser application - At the bottom right corner of a browser window you will see a small square with 3 diagnal lines.  Place your cursor in that corner to stretch out your window to full screen.  The next time you open your browser app, the window will be full screen.

Maybe you are looking for

  • Get all children under root

    I want to know whats the easiest way to get all children under root. Say, if the depth is 100, how can I get the all the children from depth 1 to depth 100? Does java has an API? Thanks.

  • How do i transfer my backup to another iphone ???

    how do i restore my new iphone and recieve my backed up info

  • 3 Monitors don't work.

    Hello, I'm having a problem like everyone else but they seem to get there's working. I have 3 monitors for my gaming PC with a AMD HD7950 GPU with 4 ports 1x DVI 1x HDMI 2x mDP I have all 3 monitors on HDMI going into my monitors and 1x HDMI into GPU

  • Itunes can't locate files on my computer after recovery

    My computer had to be restarted as if from the day I bought it. My files were backed up on a flash drive and I can't seem to locate them in the recovery folder. I tried opening my purchased music, and got an error message saying that the file couldn'

  • Can't select newly created css styles

    Help! After I have created a new css style, there is no way that I can apply it. The new style appears on the right-hand-side under Design - CSS Styles, but I can't select it in the Properties - Styles drop box neither if I select the text - right cl