Non-editable Color for TextInput

Hi,
Is it possible to set up, in a CSS, the backgroundColor of a
readonly text input?
So whenever it's set to readonly (editable=false) its
background will automatically
change to the color set up in the CSS.
I want to do something like this:
TextInput{
theme-color:haloGreen;
color:#005FA9;
readonly-color:0xF5F5F5; // or "non-editable-color"
Cheers,
Jarrod...

you must completely fill in the background in a non-opaque color.
I doubt the 'non-opaque color' part might be a typoI think it is a typo, otherwise, like you, I don't know what they are trying to say.
Just using setOpaque(true), does NOT make a component opaque. It simply tells the the RepaintManger not to search the ancestor tree to find an opaque component. This makes painting more efficient if it doesn't need to search all the way up to the content pane of the window. By setting the opaque property you are guaranteeing that the component will paint its own background in an opaque color.
For example a JPanel is opaque and its paintComponent() method will invoke the fillRect(...) method to paint the background whatever color is specified by the setBackground() method.
So if you do panel.setBackground(Color,RED) this is valid.
However, if you do panel.setBackground( new Color(255, 0, 0, 128) ); this is invalid because you have set a background with an alpha value that results in a transparent color. In this case you will generally see artifacts in the background of the panel. If you want to do this, then you must also use setOpaque(false), so that the background of the ancestor component is painted first.
Edited by: camickr on Jul 8, 2008 11:18 AM
Fixed an incorrect reference from "non-opaque" to "opaque".

Similar Messages

  • Setting Non-Editable property for selected Rows in jTable

    Hi,
    I want particular rows to be set non-editable within a jTable. For example. If I have seven rows as follows:
    1
    2 - (Non-editable)
    3
    4
    5 - (Non-editable)
    6
    7
    I want to set non-Editable property to the second & Fifth Rows(say) alone. Other Rows, I may edit.
    How can I do this?
    Thanks in adv.

    TableModel has method
    boolean isCellEditable(int rowIndex,
    int columnIndex)
    so you need to make your table model return false for these rows.

  • Non-editable mode for customer master data in VA01 and VA02

    Hi all,
    User requirement is they don't want to give permission to change customer master data (payer & ship-to ). I didn't find any user exit to do screen non-editable.
    Can any one help me in this..
    Regards,
    Sudhakara

    Hi Sudhakar Reddy,
    For this transaction code user exits available :
    SDTRM001  Reschedule schedule lines without a new ATP check
    V45A0001  Determine alternative materials for product selection
    V45A0002  Predefine sold-to party in sales document
    V45A0003  Collector for customer function modulpool MV45A
    V45A0004  Copy packing proposal
    V45E0001  Update the purchase order from the sales order
    V45E0002  Data transfer in procurement elements (PRreq., assembly
    V45L0001  SD component supplier processing (customer enhancements
    V45P0001  SD customer function for cross-company code sales
    V45S0001  Update sales document from configuration
    V45S0003  MRP-relevance for incomplete configuration
    V45S0004  Effectivity type in sales order
    V45W0001  SD Service Management: Forward Contract Data to Item
    V46H0001  SD Customer functions for resource-related billing
    V60F0001  SD Billing plan (customer enhancement) diff. to billing
    For ur requirement whixh exit is suitable plz check it out. other wise put breakpoint for userexit and check it out.
    Rewards somr points.
    Rgds,
    P.Nag

  • Edit colors for all pages in a multipage PDF

    Hi,
    I have a PDF with 189 pages. Each page is an scanned image. Unfortunately, all the pages are too dark and I would like to increase the contrast of each and all of them. Is there any way to do this to the whole PDF, or do I have to do it page by page (select the image in the page with the TouchUp Object tool, right click, select Edit Image, which will open it in Photoshop, where I edit the image and save it)?
    Thanks

    You may be able to do that with JavaScript (check the scripting forum for help there). Otherwise, I think I remember such in the preflight options. At least worth a check.

  • How to convert editable pdf into non-editable version for printing option only without setting up passwards?

    I am using IOS system with pdf preview functions. I try to convert editable pdf file into read only for others to print without access to edit the file.
    The only way I can do now is to convert to jpeg for each page and convert back to pdf then combine all pages together. It takes a lot of time in this case.
    Can anyone tell me how to do the conversion without setting up passwards for protection?
    Thank you very much!

    First of all, don't use all CAPS as it means shouting.
    Second, your question is completely off-topic for this forum which discusses Microsoft Office Outlook.
    Third, this is a peer-to-peer forum, don't count on anyone calling you. If you want dedicated support from Microsoft, contact Microsoft Support directly.
    Anyway, you can insert the picture in to OneNote and then have OneNote convert it into text. This usually isn't very accurate for scans though.
    A better solution would be to use a application which is dedicated to OCR. There are various out there. I suggest you try their demo versions to find out which works best with your handwriting.
    Robert Sparnaaij
    [MVP-Outlook]
    Outlook guides and more: HowTo-Outlook.com
    Outlook Quick Tips: MSOutlook.info

  • How can we change the field confirmed work of SAP PPM from edit to not edit mode ? I need it into non edit mode for time recording with ChaRM

    Hello everyone,
    Do someone meet this issue ? Do you know if it has a link with customization of ppm or customization of ITSM ?
    Many thanks in advance for your replies !

    It seems that I've solved this issue. To get it work:
    1. Select checkbox Time Recording and Travel Expenses via CATS for project type. Path: SPRO —> SAP Customizing Implementation Guide —> SAP Portfolio and Project Management —> Project Management —> Structure => Define Project Types
    2. Run/schedule a synchronization with the report DPR_CATS_CPR_TRANSF (Transfer of CATS Itemizations to Project Management Application).
    Time Recording from a Request for Change to a PPM ProjectTask - Working with Projects - SAP Library
    Regards,
    Alex

  • Does Adobe provide a PHP library for dynamically generating a non-editable PDF on a website?

    As the title says, I am wondering if Adobe provides a PHP library for dynamically generating a non-editable PDF for my company website.  Any information on this would be greatly appreciated!

    By non-editable I assume you simply mean "with password security set" and understand the serious limitations of this.
    While Adobe doesn't offer PHP it offers several server options
    - LiveCycle PDF Generator. Java API and watched folder. Convert file types to PDF. Security can be set, but perhaps only globally.
    - Adobe PDF LIbrary. For experienced C/C++ programmers. Licensed by DataLogics.

  • How to make VIP flag in transaction code fpp2 as non editable

    Hi everyone,
    Please guide me about:
    How to make VIP flag in T Code FPP2 as non editable only for some particular users?
    Is there any authorization object exists for this flag in FPP2 transaction?
    Actually there are many users who have authorization of transaction fpp2. But we want only some particular users should have authorization of making changes to this flag.
    Please guide with your valuable replies.
    Thanks and Regards

    Hi...MP Vashishth
    try to creat an Authorization Management ...  in customizing...
    Cross-Application Components --> SAP Business Partner --> Business Partner --> Basic Settings --> Authorization Management
    Creat an Grup..and others steps...!
    and when finish clic on Generate and Assin Authorization !!!
    I Hope it Help !
    regards
    Andre Frugulhetti
    Edited by: Andre Frugulhetti on Sep 22, 2009 9:38 PM
    Edited by: Andre Frugulhetti on Sep 22, 2009 9:39 PM

  • ME22N - Make MEPO1211-EEIND non editable

    Hello Experts!
    I have the requirement to make non editable the field EEIND in ME22N.
    The Screen is 1211 in program SALMEGUI,
    I've seen others thread but didnt work for me ( becouse other thread was about addin fields )
    Any idea of an Enhacement or Exit to this problem?
    Thanks!

    Hello friends,
    I'm trying to make the field Collective number ( ekko-submi ) non editable only for a specific document type, using the logic above.
    I change the badi ME_PROCESS_PO_CUST method FIELDSELECTION_HEADER with the code below. My problem is this method is not called in program LMEPOBADIU07 (FM MEPOBADI_FS_HEADER), becouse the insert command fails in the following code. Anybody already know this problem?
       LOOP AT ch_fieldselection ASSIGNING <fs1> WHERE metafield GE mmmfd_cust_01.
         INSERT <fs1> INTO TABLE lt_fieldselection.
       ENDLOOP.
       IF sy-subrc IS INITIAL.
         CALL METHOD l_instance_cust->fieldselection_header
    The values in mmfd_cust_01 is '  90000000' (with 2 spaces in left side) and ch_fieldselection is
    METAFIELD     FIELDSTATUS
             9 |.                                                            
            11 |+                                                            
            12 |.                                                            
            13 |+                                                            
            14 |.                                                            
            27 |.                                                            
            29 |.                                                            
           303 |.                                                            
           304 |.                                                            
           305 |.                                                            
           306 |.                                                           
           307 |.                                                            
    Code writen in BADI:
    METHOD if_ex_me_process_po_cust~fieldselection_header .
      DATA: l_persistent TYPE mmpur_bool,
            l_changeable TYPE mmpur_bool,
            mmmfd_coll_no TYPE mmpur_metafield VALUE 016,
            mmmfd_doc_typ TYPE mmpur_metafield VALUE 201,
            l_header TYPE mepoheader.
      FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    * if the item is already on the database,
    * we disallow to change field badi_bsgru
      l_persistent = im_header->is_persistent( ).
      l_changeable = im_header->is_changeable( ).
      l_header = im_header->get_data( ).
      IF l_changeable IS NOT INITIAL AND l_header-bsart EQ 'FI'.  "(me22n) AND OTHER CONDITIONS
        READ TABLE ch_fieldselection ASSIGNING <fs>
            WITH TABLE KEY metafield =  mmmfd_coll_no.
        <fs>-fieldstatus = '*'. " view
      ENDIF.
    ENDMETHOD.

  • Non-Dreamweaver templates for Contribute

    Are there any guidelines anywhere for creating the equivalent
    of Contribute editable/non-editable templates for sections of HTML
    pages which were not created by Dreamweaver; for example,
    guidelines on the use of <!-- begineditable--> etc.?

    Ian,
    The Dreamweaver template system works from the standpoint of
    a "deny all, allow some" mentality.
    Initially a Dreamweaver template file allows no editing to
    any sections. When modifying the template in Dreamweaver or any
    other text editor, the addition of the begin/end editable pairs
    enables the editing of any content existing within the tag pair.
    If you want to create a template for use with Contribute
    outside of Dreamweaver just create the file with any editable
    sections you desire then change the file extension to .dwt and
    place it in the "Templates" directory on your CPS managed
    webserver. Any files in the "Templates" directory that end with
    ".dwt" will be loaded on the next startup of the Contribute client.
    By default the Publisher and Writer roles allow access to all
    templates in the "Templates" directory via the Contribute client.
    Also, make sure that the "whatever" text mentioned by Murray
    is unique to each individual editable region.
    Please note that the Contribute/Dreamweaver template
    interaction is *not* a run-time template system. Dreamweaver
    templates are design-time templates. If you have sections of the
    template that change later then those changes will need to be
    applied on a page-by-page basis to each page using a given
    template. This functionality is automatically handled within the
    Macromedia workflow by using Dreamweaver to download the entire
    site then having it update all pages that are based on a given
    template.
    The piece of the code that denotes which template is assigned
    to a given page is as follows:
    <!-- InstanceBegin template="/Templates/level2.dwt"
    codeOutsideHTMLIsLocked="false" -->
    with an acompanying closing tag of:
    <!-- InstanceEnd -->
    The "InstanceBegin" tag should follow the opening html tag
    and the "InstanceEnd" tag should precede the closing html tag.
    The important piece of the "InstanceBegin" tag is the value
    of the "template" attribute. This needs to be the path to the
    specific template file relative to the webroot on the server.
    Hope this helps.

  • How to make non editable field after requestor created the shoping cart

    Hi,
    i need to make non editable field (Price field) after requester created the shooping cart.The field should be  non editable only for requster .
    this i need to make when workflow triggers when the buyer sends  back the shopping cart to requester.
    one solution which i found:depend on the status of the shoping cart
    but i dont know whether it is correct way.
    if not please suggest me the solution.

    Hi,
    You can implement the BADI" BBP_UI_CONTROL_BADI".
    You can check for the role of the user who has logged in(e.g. for user REQUESTER,there will be a distinct role to idnetify that the user is a requester) and then acc set the display properties for the field PRICE.
    For sample code pls refer the foll links:
    Sample code for BBP_UI_CONTROL_BADI
    Re: Hiding Shopping Cart Fields in SRM 3.0
    Re: How to Hide the attributes from template BBPSC01?
    Re: How to validating total value in shopping cart
    Re: Price filed in Shopping cart should be in display mode
    BR,
    Disha.

  • Non editable document

    I'm new to Pages but have begun to create some business documents with it and generally very pleased with its features. One thing I want to do is create a form for people to complete online. I need sections to be 'live' for people to type in but without altering the formatting of the whole document. Is this possible? the document needs to be non editable except for those pre designated sections..
    Gary

    I have tried using Acrobat Pro to create a form, but it doesn't allow the form filler to save the filled-out form. It only allows them to send the data as Acrobat XFDF data file -- which the form creator then compiled them in his/her original form.
    The scene is, however, untrue for Acrobat Pro running on Windows. If you're using Acrobat Pro on Windows, it includes Adobe LiveCycle Designer, which is a full-fledged package for form creation. Another alternative (for Windows users) is to use Microsoft Infopath, which (I heard) is good and versatile on form creation and data collection, but have never really try it out.
    Having said these, this is indeed an Apple Discussions, and...

  • Changing JList non-editable Font color of the selected items

    Hi All,
    I want to change the font color of non-editable JList's selected items which is not clearly visible to user. And I need to change the font color only the selected item in this scenerio.
    Could you please clarify me?
    <img src="file:///C:/DOCUME~1/sgnanasi/LOCALS~1/Temp/moz-screenshot-4.png" alt="" />

    [email protected] wrote:
    ..I want to change the font color of non-editable JList's selected items which is not clearly visible to user. And I need to change the font color only the selected item in this scenerio.Set a custom [cell renderer|http://java.sun.com/javase/6/docs/api/javax/swing/ListCellRenderer.html] *(<- link)* for the JList.

  • How do i change the backgound color for the "file edit view history bookmark tools help" bar in Firefox 29.0

    how do i change the backgound color for the "file edit view history bookmark tools help" bar in Firefox 29.0

    You can add a solid color theme to change the color of the top of the browser window, which includes the Menu Bar.
    https://addons.mozilla.org/en-US/firefox/themes/solid

  • Looking for Pre-Rendered Editing / Color Grading Workflow suggestions.

    Looking for Pre-Rendered Editing / Color Grading Workflow suggestions.
    All my material is rendered via RenderMan, our resolution is 1280x544, and our format is generally .exr in 32 bit space.
    Our editor has been converting over to 32-bit tiffs, and using Apple Intermediate Codec for editing, mostly for speed concerns.
    We need to re-vamp our workflow so that we can edit our footage, and then do color grading of the edit head to tail to smooth the look between scenes. We want to do this in Color, being fed by Final Cut Pro's timeline.
    We want to keep our bit depth as high as possible when coming into Color.
    My question is, does anyone here have any workflow suggestions for doing what I am talking about.
    I wasn't sure if we should just export and EDL from FCP and try to get Color to load our single frames from that. Or if there is a special Quicktime wrapper we should be using, or converting our 32-bit .exr files into some other format more readily available for using in Color?
    Any thoughts would be great, thanks in advance!

    You're not going to get anywhere beyond 10-bit. That's it.
    Try encoding to 10-bit LOG dpx if you need upscale RGB.
    jPo

Maybe you are looking for

  • Unable to install Acrobat XI Pro

    I recently suffered a catastrophic computer problem requiring that I install a fresh copy of Windows 8 and then reinstall all my software. I subscribe to CS and used the download manager to install the applications I use. All but one - Acrobat XI Pro

  • People are getting my email instead of contact name?

    Not sure if there is a way around it or not, but whenever I start up a conversation through text on my iPad and I haven't previously had a conversation going for it to show up on my iPad, people get my email address instead of my number which would b

  • Impact of Oracle Grid on TimesTen

    Hi, One of our client is using TimesTen (11.2.1.8.0) in memory cache with Oracle(11.2.0.1.0 ) as the underlying database. They want to configure Oracle Grid to monitor the Oracle Database in the production environment. Logically there should be no im

  • When ODI calls a web service ,exception is thrown in the console

    Excetions are like below: My envirionment :ODI11g+AXIS2 1.2 com.sunopsis.wsinvocation.SnpsWSInvocationException: javax.xml.ws.soap.SOAPFaultException: {empservice/WSOdiEmpSrc/schema}OdiEmpSrc was expected, {http://emp.com/xsd}getOdiEmpSrc encountered

  • Go to server hangs

    I frequently connect to my client's server using the Go command in the finder. Server will come up, and I can access the first level of files - but when I proceed any deeper, I get the spinning beachball forever. My question: how can I cancel/escape