Question regarding  Non editable JText Fields...

Hi,
I have a class called Main.In that class I have created a JPanel with 3 labels and 3 JText Fields.
I am able to call that Main class in another class called Display.
But when the text fields are being displayed in the Display class the text fields should not be editable.
Is there any way to do this?
Gita

Use the setEditable(...) method.

Similar Messages

  • Non Editable NETPR field in me21n, me22n

    Hi
    I have a requirement where in PO I need to make NETPR (Net Price) field editable or non editable based on KONNR (Outline agreement number).
    For this BAdI 'me_process_po_cust' has to be used and method 'fieldselection_item'.
    In this method we have got an internal table 'ch_fieldselection' that actually allows to change the field properties.
    The issue is I am not getting NETPR value in it in anyform (MMMFD code is used inside it).
    Can anybody help me out how to push value of NETPR (MMMFD value 62) in this internal table so that I can do operations on this field as desired.
    Thanks in Advance
    Zafar

    Hi,
    If my understanding is correct, you can manipulate the NETPR field using method,
    ls_mepoitem-NETPR = 'xxxxxx'.
    im_item->set_data( ls_mepoitem ).
    If you want to enable or disable the field, you can use
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = '079'.
    <fs>-fieldstatus = '*'. " Display
    Regards,
    Sudhakar Rayala
    Edited by: SudhakarRayala on Feb 14, 2010 8:53 PM

  • Editable / Non editable input field CELL (individually) on ALV dynamically

    Hi again,
    I need more help with an issue.
    I have an ALV table with three columns that is necessary put values into input field cell editors, but these cells should be editable or not depending of business logic. I've got make editable or non in entire ROW LEVEL (method set_read_only_fieldname( 'READ_ONLY' )., but ¿how can I set editable or non at individual cells?
    Any idea to do that?
    Regards
    Edited by: vanbelal on Mar 24, 2010 3:33 PM

    Can you paste any example source code?
    I don't know how can I bind enabled property dynamically to individual CELL, I'm setting properties to whole column.
    lt_columns = lr_column_settings->get_columns( ).
      LOOP AT lt_columns INTO ls_columns.
             if ls_columns-id = 'COLUMN1' or 'COLUMN2' or 'COLUMN3'.
              CREATE OBJECT lr_input_field
                EXPORTING
                  value_fieldname = ls_columns-id.
              ls_columns-r_column->set_cell_editor( lr_input_field ).
    Should I put business logic here? how can I set enabled or not on CELL, at this point I'm processing whole column!!
              lr_input_field->set_enabled( abap_true ).
            endif.
      ENDLOOP.
    Edited by: vanbelal on Mar 24, 2010 4:12 PM

  • Newbie questions regarding HD editing

    I've used Premiere Pro since the 1.5 days, but now I have CS 4 (4.1) and I want to edit HD video.
    I have a Sony HDR-SR12 camcorder that I have set to record using AVC HD 16M (FH) with X.V. Color.
    My questions are:
    1) Is there a preset for CS4 that will control my camera, as there is for my old DCR-TRV240? I can't find one built-in the program.
    2) When I first enter CS4 to start a new project and it asks me for the Sequence Presets, which one should I use for the given camera and video format I listed above? Under the AVCHD menu there are submenues for 1080i, 1080p and 720i. Then there are further choices for 1080i25 (50i) with and without Anamorphic, 1080i30 (60i) with and without Anamorphic, the same holds true for the 1080p 24,25 and 30 presets!
    I am totally confused as to which preset to choose to get the best quality Blu-Ray (for myself) and standard DVD (for relatives without Blu-Ray capability) output.
    3) Is it safe to assume that when I output the edited video to standard DVD the viewers of this disc will see the black bars above and below the picture? Do I need to take anything else into consideration when burning to both formats with the same source material?
    Sorry for the ridiculously basic questions, but I don't know where else to ask.
    Thanks for any light you can shed on these issues.

    I have a Sony HDR-SR12 camcorder that I have set to record using AVC HD 16M (FH) with X.V. Color.
    The first place to start would be the camera's manual. It should break down these settings to the exact specs. that the settings will yield. This info is probably most easily accessed from that manual, as the Sony site is likely to not go into enough detail to help someone, unless they know your camera and exactly what the "16M (F)" translates to. That info will go a long way towards setting the Preset for your Sequence.
    As for Device Control, in the Capture module, you should have that, provided the OS recognizes the camera, when connected via FW. If you are not connecting via FW, then you will likely have to Copy/Transfer the data, probably with supplied Sony software, and then Import from your computer's HDD, into PrPro.
    There is a current thread where Dan Isaacs discusses the HD to SD and then to DVD-Video. That would make good reading.
    The "black bars" will be determined by whether the user's TV is only 4:3, and/or how their player handles 16:9 footage. You will have 16:9 footage, so it gets down to the user's equipment and the setup of that equipment.
    Good luck,
    Hunt

  • Follow up question regarding templates - editing modules

    Hi lads
    I am using the church template site to re-build the following site www.mountmellickdevelopment.com and I was just wondering, in the modules that u created in the church template.. How do i go about editing the header module say to make the height bigger plus the people on the board of management want to see what the header looks like with the following words ether side of the logo "Mountmellick" on left and "Deveelopment" on the right, here is the trial site address Home
      I've looked through the stylesheets and the different CSS but can't seem to find the right code.. etc
    Fergal

    adame wrote:
    rallocs: 563
    pending sector: 55
    etc.
    Your drive is probably toast. Compare your SmartData stats with mine:
    Retracts: 844
    *Reallocs: 12*
    *Pending Sectors: 0*
    PowerOn Hours: 2037
    Starts/Stops: 830
    Temp: Current 29c
    Temp: Min 10c
    Temp: Max 50C
    I've only 12 remapped sectors and none pending. From the Wikipedia S.M.A.R.T. article:
    *Reallocated Sectors Count*
    Count of reallocated sectors. When the hard drive finds a read/write/verification error, it marks this sector as "reallocated" and transfers data to a special reserved area (spare area). This process is also known as remapping, and "reallocated" sectors are called remaps. This is why, on modern hard disks, "bad blocks" cannot be found while testing the surface – all bad blocks are hidden in reallocated sectors. However, as the number of reallocated sectors increases, the read/write speed tends to decrease. The raw value normally represents a count of the number of bad sectors that have been found and remapped. Thus, the higher the attribute value, the more sectors the drive has had to reallocate.
    *Pending sector count*
    Number of "unstable" sectors (waiting to be remapped, because of read errors). If an unstable sector is subsequently written or read successfully, this value is decreased and the sector is not remapped. Read errors on a sector will not remap the sector (since it might be readable later); instead, the drive firmware remembers that the sector needs to be remapped, and remaps it the next time it's written.
    I'm sure you'll find the counts go up if you try to do a surface scanning disk check. Sorry it's not better news but at least you know where the problem lies. Assuming your iPod is out of warranty it's probably time to get your iPod refurbished with a new drive or to buy a new iPod.
    tt2

  • SQl question regarding non-existent rows

    I have this sql statement
    select im_status, im_language, count(*)
         from icm_main
         where im_language in ('de','ko','ja','en','es')
         and im_status in ('approved','live','composing')
         group by im_language, im_status
    It works great for rows in teh database. But I don't have any 'DE', 'approved' items. How can I get that query to show me 0 for the count(*)?
    Thanks

    Simple example:
    SQL> select ename, deptno from emp where
      2  ename in ('SMITH','ALLEN','WARD','BONYE');
    ENAME          DEPTNO
    ALLEN              30
    SMITH              20
    WARD               30
    SQL> select p.ename, p.deptno, count(e.ename)
      2  from emp e right join
      3  (
      4   select ename, deptno
      5   from (
      6   select 'SMITH' ename from dual
      7   union all
      8   select 'ALLEN' from dual
      9   union all
    10   select 'WARD' from dual
    11   union all
    12   select 'BONYE' from dual
    13   ) a,
    14   (select 10 deptno from dual
    15    union all
    16    select 20 from dual
    17    union all
    18    select 30 from dual
    19    union all
    20    select 40 from dual
    21   ) b
    22  ) p
    23  on (p.ename = e.ename and p.deptno = e.deptno)
    24  group by p.ename, p.deptno
    25  /
    ENAME     DEPTNO COUNT(E.ENAME)
    WARD          10              0
    WARD          20              0
    WARD          30              1
    WARD          40              0
    ALLEN         10              0
    ALLEN         20              0
    ALLEN         30              1
    ALLEN         40              0
    BONYE         10              0
    BONYE         20              0
    BONYE         30              0
    BONYE         40              0
    SMITH         10              0
    SMITH         20              1
    SMITH         30              0
    SMITH         40              0
    16 rows selected.Rgds.

  • Disabling fields(Make the field as non-editable)  in webdynpro ALV

    HI All,
    I have a requirement in the ABAP webdynpro where I have to disable(Make the field as non-editable) the field(or that ALV cell alone)  in the ALV after the user has inputed in that field.
    Is it possible, if yes, could you please give me some sample code , or links to which I can refer to.
    Thanks for your help.
    Regards,
    Subash M

    Hi,
    Use the following approach :
    1. Create an ALV and create an inputfield cell editor for the column that you want to make editable/disable.Refer this tutorial for creating an [Editable ALV|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
    2. Now under the same node create an attribute EDITABLE type boolean and bind this to the readonly property of the input field. Include the following code while creating Input field for binding.
    lr_input_field->set_read_only_fieldname( 'EDITABLE' ).
    3. Now implement the onDataCheck event or OnCellAction event and pass abap_true to this attibute to make the cell readonly/disable.Refer this tutorial for [Events in ALV|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
    Hope this helps.
    Regards,
    Radhika.

  • Unable to edit certain fields in order type RE comparing with OR

    Dear friend,
    When I am creating return order with order type 'RE', I find out there are certain fields that are not editable. However, this issue doesnt happen with standard order(order type 'OR'). please refer to the following snapshot:
    where you can see fields such as 'intercom', 'payment term' is eidtiable in order type or, but not in RE. Anybody could tell me why? and what configuration control this screen layout? how to edit this? thanks!
    Best Regards
    T.P

    Hi Peng,
    do you face this only for you ID/few users or for every user these 2 fields are not editable ? you have to check this by asking your colleagues/users .
    If it is problem with few users then they have done some authorization check here only for few users.
    if it is for all, then as mentioned by Venugopal, some enhancement is done for this to make non editable these fields.
    What to you want, do you want to make it editable fields or do you just want to know why it has done ?
    Regards
    Sundar

  • 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.

  • In PO -Me21N Material PO text field non editable

    Dear All ,
                  We have specific requirment in PO (ME21N). In Item level ther is free text field "Item Texts". In Item texts we have 4 text fields
    (1) Item Text
    (2) Info Record PO text
    (3) Material Po text
    (4) Deivery Text
    As per our configuration in "Material PO text"  Material long description picking from Material master .We want to make this text field Non Editable.
    In SAP there is facility to configure non editable  Texts , But it will non editable all text fields.
    How we can non editable only Material Po text .
    Thanks in Advance.
    Regards
    Abhishek Tiwari

    Dear Chetan,
                          I think you have not understood my complete question. First thing i dont want to non editable Short text field.
    In my problem  i In Item level ther is free text field "Item Texts". In Item texts we have 4 text fields
    (1) Item Text
    (2) Info Record PO text
    (3) Material Po text
    (4) Deivery Text
    In above text fields ,I want to non editable only "Material PO Text" only....
    Regards
    Abhishek Tiwari

  • ALV Grid fields from editable to non-editable mode

    Hi,
    I am displaying my data through ALV Grid. In my grid the non-key fields are in editable mode.
    When I edit any of the editable fields and place the cursor on other field the field which I have edited should become disable(non-editable). Again if I want to edit the same field which is now in non-editable mode should again change to editable mode when the cursor is placed on it.
    Thanks & Regards,
    Adithya M.

    Hi Adithya,
    I am confused by your statement "place the cursor on other field the field which I have edited should become disable" -- are you stating that this is the requirement or what is currently happening with your program.  The way the edit fields should work by default is they are editable at all times unless you tell it otherwise. 
    If you are saying your requirement is to change the field to disabled once the field is edited (runtime change), first you want to handle the event on data changed then within your method of handling on data changed, you can disable the field from being edited by using cell styles and changing the value to disabled. 
    If you look at program BCALV_GRID_EDIT,
    You will find code where it disables the field for edit using Cell Style -- this will give you an idea how Cell Style controls editable fields and display fields:
            ls_cell-style  = cl_gui_alv_grid=>mc_style_enabled.
            ls_cell-maxlen = 4.
            ls_cell-fieldname = 'CARRNAME'.
            append ls_cell to gt_sflight-cell.
    This specific code will set the field disabled when the program is first exectued, in your case if you need to do this at run time, after someone edits the field, you need to implement handling the event on data changed, in the same program you will find:
    method handle_data_changed.                 
       perform data_changed using er_data_changed.
    endmethod.                     
    It is within this method that you can disable a field for editing.
    However, once it is disabled you will not get back into the handle_data_changed method.  I'm not sure I understand your statement "Again if I want to edit the same field which is now in non-editable mode should again change to editable mode when the cursor is placed on it."  Why would you want the user to be able to edit something, then show it disabled, then let them click on it and edit it again?  Why not just leave it in edit mode?  Maybe if I understand the requirement better, I can answer this portion of the question. 
    If this is based on security or changing from edit to display for the entire grid, you can run the same program mentioned above and click on the Change/Display button in the top left to see how it enables and disables the entire grid for editing.
    Cheers,
    Bonnie

  • Make quantity field of Free goods as non-editable.

    Hie!
    I have free goods scheme of 9 + 1 .If quantity of main material is 10 then it will split into 9 + 1 where 1 is free of cost.
    While making the sales order the free goods quantity field is editable. So the users are able to change the free goods quantity. I want to make this field as non-editable.
    Please suggest how to do this.
    Thankyou.

    Hi Pallavi
    If you change the manual qty which is automatically determined by the system then there will be a message thrown by the system
    Suppse in your case if 9+1 you change the qty manually to 2 from 1 there is a message V1 no 737 thrown by the system
    You need to change the message class thro ABAP development only not possible thro customization
    Not only this in delivery also it is possible to change the free qty and this also has to be controlled by the ABAPer only
    Regards
    Raja

  • Make the 'ASSIGNMENT FIELD' of particular financial Doc type non-editable

    Hi Experts,
    We have an done an Z development, where we are populating critical data in the 'ASSIGNMENT FIELD OF gl account' of a newly created  financial document type (ZD).This document is created through BAPI.
    Now our requirment is to make this 'Assignment field' non-editable .
    Thanks & Regards,
    Vishal

    Go to OB32
    Select Account type and select table with field name ZUONR and double click
    Uncheck the check box Field can be changed
    Srinivas

  • Table control : Need to change Single field as non editable

    Hi Experts,
                    Plz help me out. In a table control there r 7 fields and only one field is editable. When i change the status of a record as delete in tat table control, only the deleted record (all fields)should become non-editable. Is it possible? Pls suggest.
    Regards,
    J. Sriram.

    Hi,
    In PBO of your screen
    you should be using a step loop like this :
    CONTROLS control1 TYPE TABLEVIEW USING SCREEN 100.
    LOOP AT itab WITH CONTROL control1.
    ENDLOOP.
    Where the control1 is the tableview control defined in your program
    and placed on your screen.
    Put a second loop on screen inside this loop ant set the related attribute :
    LOOP AT itab WITH CONTROL control1.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'COLUMN1'.
    SCREEN-INPUT = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDLOOP.
    So you can set cells editable or non-editable
    and you can filter it which record & which field..

  • How to made Qty field as non editable in MIRO

    Hi SAP Gurus,
    While Post a Goods Receipt (MIRO) for Receive the Material from Job
    Worker, the Qty of Raw Material which needs to Issue or consume from
    Stock will propose as per PO BOM. The Qty field of Raw Material is in
    Editable Mode. Business wants that Qty Field to be Non-editable and not
    to allow user to Change the Proposed Qty. As per PO BOM and based on
    Material Received from Job Worker, Raw Material has to Issue or Consume
    from Stock. If any Under Consumption or Over Consumption will be
    adjusted thru MB04.
    Pls let me know is there any setting to make Raw Material Qty field as
    non editable.
    Thanks & Regards
    Sathish
    Ph:9940518715

    Hi,
    There is no field selection in MIRO.
    USE SHD0 and create a screen variant
    Thanks & regards,
    Kiran

Maybe you are looking for

  • Event Export not working correctly.

    I have a simple library, I actually use aperture, but was looking at iPhoto for a client project. I imported 3 folders from the desktop, and it created separate events; which is great. when i export the events as a web page and i open in safari, i on

  • Regex for a URL

    How do I write a regex for the following URL. I am trying to write a regex rule in Oracle WebCache. /myserver.domain.com:7779/mapviewer/mcserver?format=PNG&mapcache=mvdemo.demo_map&mx=198&my=247&request=gettile&zoomlevel=3 Thanks,

  • Numbers transfer files problem

    I am trying to transfer files from my Mac to an IPAD Mini. The files appear on the itunes shared files numbers window, but they will not transfer to the IPAD Mini. I have tried the sync button numerous times. I am running OS X 10.8.2 and IPAD Mini 6.

  • Moving object in JFrame

    Hello, I am starting to look into how to work with graphics in Java for the first time. So what I am trying to achieve is a simple circle moving across a frame. Here is the code that I thought would do the trick. package com.game.begin; import java.a

  • Appleworks Spreadsheet mystery

    HELP!!!!!!!! I have set up a simple spreadsheet, but in one column, cannot paste in a 12 digit number. Whenever I try to do so, it is automatically changed into a formula. Example: pasting in 250224478222 results in: 2.5022447822e+11. I CANNOT get ri