How to make a JTextComponent not editable, not focusable but Highlightable?

Hi,
When i set a JTextField not focusable, it wont allow me to do the highlight and do the copy and paste thing.
can some one give me an example of how to add a highlighter in a JTextCompnent when it's not focusable.
thanks in advanced.

I'm having the same issue. Can you make it focusable, but not traversable so it doesn't get picked up when tabbing?

Similar Messages

  • How to make "payment terms" not modifiable in sales order

    Hello every 1,
    please help, i want to know:
    how to make "payment terms" not modifiable in a sales order , as we know it comes directly from CMR and client wants "PAYMENT TERMS" to be not modifiable.
    Look forward for your response.
    Thanks in Advance,
    Deepak

    You need to use SHD0 or userexit chnages, like always determine from customer master, if user changes, give message like not modifiable  or ask abaper to make non modifable field

  • How to make dyn/admin not to prompt for username and password?

    Hello all
    How to make dyn/admin not to prompt for username and password? I am writing a selenium job to automate cache invalidation to load test a production issue we are facing. Selenium is opening a fresh firefox session and prompting for username and password every time. I am also trying to modify my script such that it will use the same session again and not prompt for username and password. But I thought of asking this question in the group.
    Your inputs will help a lot.
    Thanks,
    Sundar

    Hi,
    You can set enabled property of /atg/dynamo/servlet/adminpipeline/AuthenticationServlet/ to false. It will not prompt for authentication.
    Gopi

  • How to make iTunes Match not convert my files ALACs in 256 kbps (VBR)? How to get iTunes to convert CDs to Apple loselss?

    How to make iTunes Match not convert my files ALACs in 256 kbps (VBR)? How to get iTunes convert CDs in Apple loselss? The difference between 256 (VBR) and Apple Losless is very clear...

    Dear Michael, good day!
    1. As per your instruction, I turned off iTM.
    Small discrepancy – where are two screens with iTM switch:
    -Settings > iTunes & App Store. 
    -Settings > Music
    I switched OFF in both.
    NB: I turned device to English for convenience.
    2. My next step was Setting > General > Usage – tapped {Music};
    {All music} screen appeared; I swiped it and taped Delete. 
    3. I performed “hard reset” …………………………………..
    4. Switched back On iTM
    5. Taped Music app on Home screen
    iTM has started –  (it took 18 minutes  to completed, 60 mbps Wi-Fi speed )
    Regret to inform… All the same:
    Erase and reset to factory default? Or I did smf wrong?

  • How to make a JScrollPane not getting Focus?

    How to make a JScrollPane not getting Focus?
    When i tab out from a textfield inside a scroll pane focus is going to ScrollPane .And if i press tab once more then only focus is going to other textField which is outside the scrollpane.
    For me when i press tab from a text field inside a scrollPane ,i should go to textfield out side the scroll pane.
    satish

    Hi,
    I've the same problem, that I have to double click on tab
    to step from a textfield with a scrollpane to the next textfield in my panel.
    I tried to implement a FocusListener on my JScrollPane, but without success.
    Can you tell me in detail how to implement this listener ?
    Kind regards
    Andy Kanzlers

  • How to make Mvt allowed indicator editable in CJ20N transection ?

    Dear Experts,
    How to make Mvt allowed indicator editable in CJ20N transaction ,I want to control material issue by reservations,waiting for your suggestions.
    Thanks

    What is the object status? if the status is Started, you might have problems becouse that status does not permit cost assignments.
    As the previous reply, at the moment of the release, you will have this field editable.
    Best Regards.

  • How to make a select list editable or searchable like the combobox

    Does anybody know, How to make a select list editable or searchable like the combobox? Do we need a plugin here, where I can get it.

    Hi Nilesh,
    If this is what you are looking for http://apex.oracle.com/pls/apex/f?p=32395:3:1202144397644679
    get the combobox plug-in
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/searchable-combobox.html
    I have not tried this though. Found it while searching for some other plug-ins.
    Regards,
    -Senthil

  • HOW TO MAKE TABLE CONTROL NON EDITABLE

    hi all
    how to make table control non editable
    Thanks & Regards
    harsha

    Hi,
    Try this code in the PBO inside the module in the LOOP...ENDLOOP.
       IF SY-TCODE EQ 'ZEMPLDISPLAY'.
        LOOP AT SCREEN.
         if screen-name eq 'column1' or screen-name eq 'column2'.  "Give the names of the columns in the table control
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        endif.
        ENDLOOP.
      ENDIF.
    Or you can go the Layout of the table control in Change mode and for every column's attributes, make it 'Output' only field. Check  'Output only' field.

  • How can I send pictures not embedded, but as an attachment? THX

    How can I send pictures not embedded, but as an attachment? THX

    I had the same problem. I closed  the message, tried again selecting the correct imessage contact number and it worked.
    I'm guessing I first selected a non-imessage phone number and it got stuck in a gray/can't send mode (bug).

  • How to make all the rows editable in webdynpro alv output

    Hi,
    How to make all the rows editable in webdynpro alv output.
    Thanks
    Rakshar

    Hi Rakshar,
    Check this wiki:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynprofor+ABAP
    Regards

  • How to make a JFrame not shown in taskbar

    i want to make a frame not shown in taskbar (similiar to jdialog) when clicking a button how can i make it.

    The main containers are JFrame, JDialog, JWindow.
    JFrame shows up on the Task Bar, JDialog and JWindow don't.
    You can't change the basic behaviour in Java code. Maybe you could using JINI, but I not nothing about that.

  • How to make A JButton not look disabled when it is  setEnabled(false);

    how do i make a jbutton not look disabled when i setEnabled(false) because when u disabled abutton it changes and takes away the frame of the button it self..is there a way to make it make a sound when its disabled and not take the frame away...example look at windows calculator when u have an answer for example 2 + 2 when the answer is displayed if u try to click the backspacebutton at this point it makes a sound..is this possible in java thanks

    Why did you repost this question??????
    You where given an answer in the other posting. You have not explained why the solution won't work and you haven't provided any further information about your question.
    You also haven't listened to the other advice, you just reposted the question word for word.

  • How to make some rows not selectable in AdvancedDataGrid

    Hi there,
    I have an advanced data grid which allows to select multiple rows. I need to make certain rows not selectable dependent on the row data. How can this be done?
    Help is greatly appreciated. Thanks in advance.
    --Charmaine

    Hi, You can view same demo here
    Thanks and Best regards,
    Pallavi Joshi | [email protected] | www.infocepts.com

  • How to make a button not clickable???

    i wanna make a button not clickable, once it is clicked... help me to do this
    Thanks
    Rubin

    you can either call setEnabled(false) or remove the listenerFor sake of GUI ergonomics, I'd suggest the first solution.
    If you implement the second solution, you'll have the user clicking on the button again and again and asking himself why nothing happens.

  • How to make a label not to blink in cwgraph plot area

    I use CWGraph control in measurement studio 6.0. In my program, there is a interrupt, that draws a curve using PlotXvsY(xData,yData) and then display a label using TextOut() (VC  function) in plot area .When running my program, the label blinked on the screen because every time drawing a curve earses the previous label. How to keep the label not to be earsed.Thank you.

    Hi,
    May be you can do like, create a timer, and in when timer expired trigger,
    toggle the label's color
    may be the below sample code -- when-timer-expired trigger
    If Get_Item_Property( 'text_item4', FOREGROUND_COLOR )
          != Get_Item_Property( 'text_item4', BACKGROUND_COLOR ) Then
          Set_Item_Property( 'text_item4', FOREGROUND_COLOR, Get_Item_Property( 'text_item4', BACKGROUND_COLOR ) ) ;
    Else
          Set_Item_Property( 'text_item4', FOREGROUND_COLOR, 'r0g0b0' ) ;
    End if ;This i've done for textitem, same logic you can use for labels

Maybe you are looking for

  • Adicionar condiciones imposto ICMS ao esquema de cálculo europeo (IVA)

    Bon día, Para criar a localização é preciso lançar na SCAT P40XXXX_CU_BR, P99CUST_SD_BR.  Os CAT criam em automático um esquema de cálculo concreto para Brasil que sirva como base para criar o esquema de cálculo do cliente? Salvo impedimento técnico,

  • Macbook to Sony Bravia (mini displayport to hdmi)

    Hi, I have a minidisplay port to hdmi cable and a new macbook and a new sony bravia (model kdl-32ex600). But I don't get a signal and my mac doesn't recognize the tv. Does anyone know the solution?

  • Document Reversal

    Hi, We made a mistake by posting wrong entry in Jan 2010. And we are trying to reverse the entry in current period. But the system is throwing the error as Posting period is not ope. Can you please suggest how to resolve this. Thanks. Regards, S.Suma

  • How to create XML string from BPM Business Object?

    Hello, I have a business object in my BPM project and I need to transform it in a XML string: From: Business Object: Customer Properties:          Name, Age To: "<Customer><Name>Robert</Name><Age>17</Age></Customer>" How can I do this? Thanks.

  • Reader 9.4.5

    I am using Adobe Acrobat Reader 9.4.5 (tried X but was too slow). Here are some issues, in case anyone from development team is looking for improvement options. If there is solutions for any of this already, I am interested to learn more about it. 1.