SetEditable

I have a class project that the user is to only input 10 numbers. I thought it would be cool to after the 10 numbers where entered to change the Editable field to false. When I did that I get an errors after the 10th number entered. How can I stop the errors or am I should I do something different instead of the setEditable(false)?
This is my code
// Purpose - Use an array to hold numbers entered and display only ones that are not duplicates.
// Java Graphics package
import java.awt.*;
import java.awt.event.*;
// Java extension packages
import javax.swing.*;
public class Assignment7_13 extends JApplet implements ActionListener {
int numarray [] = new int[19];      // holds arrary from input
String display = "";
boolean firsttime = true ;
int cntarray = 0;
// Labels for user interface
JLabel numlabel;
JTextField numfield;
JTextArea output;
// init method
public void init()
Container c = getContentPane();
c.setLayout(new FlowLayout());
numlabel = new JLabel("Enter integer from 10 - 100");
c.add(numlabel);
numfield = new JTextField(5);
c.add(numfield);
numfield.addActionListener(this);
// Setup textarea for output
output = new JTextArea(2,20);
c.add(output);
} // end int method
// process input
public void actionPerformed(ActionEvent e)
     int numinput = 0;
     int found = 0;
     if (cntarray <=10){
          numinput = Integer.parseInt(numfield.getText());
          if (numinput > 9 && numinput <101){
               found = linearSearch(numinput);
               if (found == -1 ){
                    numarray[cntarray] = numinput;
                    cntarray++;
                    display += Integer.toString(numinput) + " " ;
                    output.setText(display);
               } // end of if
          }// end if
     } // end if
     numfield.setText("");
     if (cntarray >= 10)
     numfield.setEditable(false);
} // end actionPerformed method
// Search array for specified key value
public int linearSearch( int key )
// loop through array elements
for ( int counter = 0; counter < numarray.length; counter++ )
// if array element equals key value, return location
if ( numarray[ counter ] == key )
return counter;
return -1; // key not found
} // end class Assignment7_13

Hi,
You have an error in checking the boundary.
The line:
if (cntarray<=10) {should be
if (cntarray<10) {Regards,
S&oslash;ren

Similar Messages

  • How to insert new Item in JCombox through setEditable?

    Hey guys,
    Is there somebody who can help me on how to insert new Item in the JComboBox through setEditable?
    JComboBox box  = new JComboBox();
    box.addItem("");box.addItem("a");
    box.addItem("b");
    box.setEditable(true);
    When I run it and selected the index 0 which the one which color red, I want to edit it and when I press enter key it will add a new item, but preserving this " box.addItem(""); , what I want is to add like this one, box.addItem("The new text entered"); "
    Can you help me with this one... Thanks

    hello,
    the following demo may help,
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.DefaultComboBoxModel;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    * comobo.java
    * Version 1.0
    * Date Jan 3, 2006
    * Copyright spatika
    public class comobo extends JFrame implements ActionListener{
         JComboBox jc = new JComboBox();
         DefaultComboBoxModel lm = new DefaultComboBoxModel();
         JButton jb = new JButton("add");
         public comobo(){
              lm.addElement("");
              lm.addElement("1");
              lm.addElement("2");
              lm.addElement("3");
              jc.setModel(lm);
              jc.setEditable(true);
              jb.addActionListener(this);
              getContentPane().add(jb,BorderLayout.NORTH);
              getContentPane().add(jc,BorderLayout.SOUTH);
              pack();
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
         public void actionPerformed(ActionEvent i){
              Object text = jc.getSelectedItem();
              jc.setSelectedItem(null);
              lm.addElement(text);
         public static void main(String artgs[]){
              new comobo();
    }thanks
    daya

  • JTextComponent - setEditable background color

    I have a subclass of JTextField. I am doing manipulations of the background color (red when validation failed). When the program sets the text field to be not editable I want the default disabled background color (transparent?) to be displayed.
    However, in some cases I am getting a background of white when it is disabled.
    What is setEditable doing to change the background from white to grey? If I have the background color set to RED how do I change it so that grey will be shown?
    Thanks,
    John

    I am trying to understand what setEditable does WRT the background color / transpanency. In the below code, when you press the button the first time, the background of the textfield becomes grey. If you press it again it becomes white. Is this because setEditable doesn't do anything if the field is already editable?
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class BackgroundTester extends JFrame {
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;
         private JPanel jPanel = null;
         private JTextField jTextField = null;
         private JButton jButton = null;
         private Color origBackColor = null;
          * This method initializes jPanel     
          * @return javax.swing.JPanel     
         private JPanel getJPanel() {
              if (jPanel == null) {
                   GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
                   gridBagConstraints2.gridx = 0;
                   gridBagConstraints2.gridy = 2;
                   GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
                   gridBagConstraints1.fill = GridBagConstraints.VERTICAL;
                   gridBagConstraints1.gridy = 1;
                   gridBagConstraints1.weightx = 1.0;
                   gridBagConstraints1.gridx = 0;
                   jPanel = new JPanel();
                   jPanel.setLayout(new GridBagLayout());
                   jPanel.add(getJTextField(), gridBagConstraints1);
                   jPanel.add(getJButton(), gridBagConstraints2);
              return jPanel;
          * This method initializes jTextField     
          * @return javax.swing.JTextField     
         private JTextField getJTextField() {
              if (jTextField == null) {
                   jTextField = new JTextField();
                   jTextField.setColumns(10);
              return jTextField;
          * This method initializes jButton     
          * @return javax.swing.JButton     
         private JButton getJButton() {
              if (jButton == null) {
                   jButton = new JButton();
                   jButton.setText("Set Disabled");
                   jButton.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             jTextField.setBackground(origBackColor);
                             jTextField.setEditable(false);
              return jButton;
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        BackgroundTester thisClass = new BackgroundTester();
                        thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        thisClass.setVisible(true);
          * This is the default constructor
         public BackgroundTester() {
              super();
              initialize();
              origBackColor = jTextField.getBackground();
              jTextField.setBackground(Color.RED);
          * This method initializes this
          * @return void
         private void initialize() {
              this.setSize(300, 200);
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              this.setContentPane(getJContentPane());
              this.setTitle("JFrame");
          * This method initializes jContentPane
          * @return javax.swing.JPanel
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(new BorderLayout());
                   jContentPane.add(getJPanel(), BorderLayout.CENTER);
              return jContentPane;
    }

  • SetEditable(false)

    Hai..
    I have a TextField called tf1
    based on the setEditable(false) method i have to do some code like this
    Is it possible to do like this ? or is there any other option to validate like this
    I am new to java
    please help me.
    Thanks in advance
    Yours
    Rajesh
    if (tf1==setEditable(false))
    System.out.println("Textfield is not Editable");
    else
    System.out.println("Textfield is Editable");
    }

    Rajesh
    Hi,
    The setEditable() method does not return a boolean. setEditable()
    is for setting a TextField editable.
    tf1.setEditable(true);
    isEditable() returns a boolean.
    tf1.isEditable() returns true if tf1 is editable, flase if tf1 is not editable.
    Deepak

  • How to make setEditable() work for Applet

    I have a program using a flag to make it work both
    in JFrame and JApplet. I have a couple of JTextField
    variables and I use setEditable() to set their attributes.
    When I run it under JFframe, I have no problem to
    edit these JTextField within panels. But when running under
    appletviewer, I can not edit them at all. What could be
    wrong? Thank you.

    You must have added some more code...if you want my help, post the new code or a link to the new code and I or some other ppl can see what might have gone wrong.
    V.V.

  • JTable JComboBox setEditable(true) does what?

    The JTable column uses JComboBox. What is expected of combo.setEditable(true)? Here is the relevant code.
    Thanks
    for (int k = 0; k < m_data.getColumnCount (); k++)
            TableCellRenderer renderer = null;
            TableCellEditor editor = null;
            if (k==0) /* sysname column */
                    renderer=new DefaultTableCellRenderer();
                    JComboBox combo= new JComboBox(sys_names);
                    combo.setRequestFocusEnabled(false);
                    combo.setBackground(Color.yellow);
                    combo.setEditable(true);
                    combo.getEditor().getEditorComponent().setBackground(Color.blue)
                    editor=new DefaultCellEditor(combo);
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    That fits my limited experience. I'm currently only providing non-editable combos as the focus handling and traversal gets messy with editable ones. This may be due tosome other code I've put in to alter the default JTable behaviour, but I havn't had time to look into it yet.

  • Inserting Icons in JTextPane with setEditable=false

    Aloha!
    I'm working on this for years now, but i haven't found an acceptable solution yet.
    The problem: I have a JTextPane, where the user shall not be able to edit anything by clicking onto the JTextPane. So I have to setEditable=false. Now I want to insert an icon with insertIcon and therefore i have to setEditable = true. But for short time it's now possible for the user to click onto the screen and change the caretPosition, which must be prevented at all costs (because I'm working with the expected caretPosition of course)! This only happens when I try the brute force testing method, but it happens sometimes...
    So can someone give me a better solution than:
    setEditable = true;
    insertIcon(blahblah);
    setEditable = false;
    Thanks a lot for your attention,
    Holm

    To use HTML, you must use javax.swing.text.html.HTMLDocument instead of StyledDocument,
    Instead of StyleConstants, you must use javax.swing.text.html.HTML$Tag and javax.swing.text.html.HTML$Attribute.
    And you can use an HTMLEditorKit instead of DefaultEditorKit.
    this is an example of initialization:
    javax.swing.text.html.HTMLEditorKit htmlEditorKit = new javax.swing.text.html.HTMLEditorKit();
    javax.swing.text.html.HTMLDocument htmlDoc = (javax.swing.text.html.HTMLDocument)htmlEditorKit.createDefaultDocument();
    yourJTextPane.setEditorKit(htmlEditorKit);
    yourJTextPane.setDocument(htmlDoc);
    yourJTextPane.setEditable(true);
    yourJTextPane.setContentType("text/html");and you can use it by yourJTextPane.setText(HtmlCodeString)
    HTMLDocument and HTMLEditorKit allow you main modifications.
    thanks for duke dollars :)

  • Why doesn't calling setEditable(false) disable cursoring

    I want to have JFormattedTextField format my date fields for me. It does a good job of it, so why wouldn't I?
    I have a need to display a non-editable date for reference purposes. Unfortunately I discovered that the cursoring is still active when setEditable(false) is called. In order to prevent this, I have had to subclass DateFormatter in order to override getActions() to return null if I don't want incrementing. There are a number of problems with this:
    1) setEditable on JFormattedTextField should have been enough. If I don't want it editable, then I don't want cursoring. I would have thought that was obvious.
    2) Notwithstanding that, the correct method to override for incrementing is really getSupportsIncrement(), but this has no modifier, so is in the 'friendly' status, which means it can only be overridden in the package.
    3) While I can override getActions, this signature leaves itself open to have other actions than "increment" and "decrement" returned . That is, it works now, but if sun adds more actions to the list of actions returned by getActions(), then my override is broken.
    Is there a bug in there somewhere?
    Thanks, Andrew

    1) setEditable on JFormattedTextField should have
    been enough. If I don't want it editable, then I
    don't want cursoring. I would have thought that was
    obvious.Nope not really. What if the user wants to copy some text using the keyboard?

  • Visually express setEditable(false)

    Hello,
    On the GUI I write, if a user clicks an a radio button, a text field must not be editable anymore. It works with setEditable(false) but it has no graphical effect.
    So Is there a way to put the text field and its associate label in gray?
    I searched the API and various doc, but found nothing.
    Thanks for help
    Thierry

    Like setBackGround and setForeGround.

  • SetEditable is not working with combobox

    Hi,
    I am working with table and using combo box in cell of table, in certain condition I have to make combo as editable and non editable.
    I have written class which extends DefaultCellEditor
    @Override
    public Component getTableCellEditorComponent(JTable table, Object value, boolean flag, int row, int column)
    comboBox.getModel()).setSelectedItem(value.toString());
    comboBox.setEditable(true);
    if i set comboBox.setEditable(true). cell become editable but i am not able to select item from combo..
    when i do set comboBox.setEditable(false) cell become non editable and i can select value from combo but not able to enter any value.
    i want both the operations. Editable cell in which user can enter any value and also can select value from combo.
    Any Idea???? please share with me, this is blocking issue for me. Thanks in advance.
    Prashant Gour
    Message was edited by:
    Prashant_SDN

    thanks
    that is working idea of key listener. now i am able to select item form combo and can enter value too. but now problem is that by default combo looks non editable and become editable after pressing key .
    so that is looked user friendly.
    have you any suggestions.

  • JTextFeild.setEditable funny behaviour

    Hey Guys I hope someone can help me as I'm completely stuck to whether this is a bug or whether I'm just missing something. Given the following code:
    private void setComponentState( int state )
    switch(state)
    case 1:
    btnSearch.setEnabled( true ); //JButton
    btnReplace.setEnabled( false ); //JButton
    txtBarcodeReplc.setEditable( false ); //JTextFeild
    break;
    case 2:
    btnSearch.setEnabled( false ); //JButton
    btnReplace.setEnabled( true ); //JButton
    txtBarcodeReplc.setEditable( true ); //JTextFeild
    break;
    The problem I'm having is that everything works fine until the 3rd or sometimes the 4th time I call this method with a state=2 param. At this point the txtBarcodeReplc control refuses to enable itself. It changes color as it should and when the properties of the control are queried, the control thinks it's enabled, it's just that you cannot type anything or select inside the control. Interestingly enough, if I remove the calls to the other 2 jbutton controls so that the only thing this method does is reset my JTextFeild control, then it works perfectly fine. I'm curerntly using 1.3.1_09.
    Hope someone has some idea's to how to solve this as I'm completely stumped

    Apologies - the problem I was getting at is that it is unsafe to make calls on Swing components from any thread other than the Swing thread. This is unlikely when you are new to Java.
    As for your problem - you can search the bug database. Does http://developer.java.sun.com/developer/bugParade/bugs/4680302.html look like your problem? If so then the latest version looks to be your only option, or try putting the text field in front (in tab order) of the buttons.

  • TableView setEditable is not working

    Hello, the method setEditable(boolean value) in TabeView is not working.
    I read the documentation and I'm supposed to use de enter key, but it does not work. I also read in this forum, and I found that a bug was reported, but that forum thread was issued almost a year ago. So I was wondering if it is my javafx version that is giving me the problem.
    Thanks in advance.

    Hello James, thanks for your answer.
    I have used that same code, and it does not work for me. I even tried invoking setEditable on the TableColumns references.
    And also I have updated JDK to the last version. 1.7.0_21.
    Look:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package tableviewsample;
    import javafx.application.Application;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Insets;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.TextField;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.Font;
    import javafx.stage.Stage;
    * @author Eugenio
    public class TableViewSample extends Application {
        private TableView table = new TableView();
        @Override
        public void start(Stage stage) {
            Scene scene = new Scene(new Group());
            stage.setTitle("Table View Sample");
            stage.setWidth(400);
            stage.setHeight(500);
            final Label label = new Label("Address Book");
            label.setFont(new Font("Arial", 20));
            TableColumn firstNameCol = new TableColumn("First Name");
            TableColumn lastNameCol = new TableColumn("Last Name");
            TableColumn emailCol = new TableColumn("Email");
            emailCol.setMinWidth(200);
            firstNameCol.setEditable(true);
            lastNameCol.setEditable(true);
            emailCol.setEditable(true);
            table.setEditable(true);
            table.getColumns().addAll(firstNameCol, lastNameCol, emailCol);
            final ObservableList<Person> data = FXCollections.observableArrayList(
                    new Person("Jacob", "Smith", "[email protected]"),
                    new Person("Isabella", "Johnson", "[email protected]"),
                    new Person("Ethan", "Williams", "[email protected]"),
                    new Person("Emma", "Jones", "[email protected]"),
                    new Person("Michael", "Brown", "[email protected]"));
            firstNameCol.setCellValueFactory(new PropertyValueFactory<Person, String>("firstName"));
            lastNameCol.setCellValueFactory(new PropertyValueFactory<Person, String>("lastName"));
            emailCol.setCellValueFactory(new PropertyValueFactory<Person, String>("email"));
            table.setItems(data);
            final TextField addFirstName = new TextField();
            addFirstName.setPromptText("First Name");
            addFirstName.setMaxWidth(firstNameCol.getPrefWidth());
            final TextField addLastName = new TextField();
            addLastName.setMaxWidth(lastNameCol.getPrefWidth());
            addLastName.setPromptText("Last Name");
            final TextField addEmail = new TextField();
            addEmail.setMaxWidth(emailCol.getPrefWidth());
            addEmail.setPromptText("Email");
            final Button addButton = new Button("Add");
            addButton.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent e) {
                    data.add(new Person(
                            addFirstName.getText(),
                            addLastName.getText(),
                            addEmail.getText()));
                    addFirstName.clear();
                    addLastName.clear();
                    addEmail.clear();
            final HBox hb = new HBox();
            hb.getChildren().addAll(addFirstName, addLastName, addEmail, addButton);
            hb.setSpacing(3);
            final VBox vbox = new VBox();
            vbox.setSpacing(5);
            vbox.setPadding(new Insets(10, 0, 0, 10));
            vbox.getChildren().addAll(label, table, hb);
            ((Group) scene.getRoot()).getChildren().addAll(vbox);
            stage.setScene(scene);
            stage.show();
         * The main() method is ignored in correctly deployed JavaFX application.
         * main() serves only as fallback in case the application can not be
         * launched through deployment artifacts, e.g., in IDEs with limited FX
         * support. NetBeans ignores main().
         * @param args the command line arguments
        public static void main(String[] args) {
            launch(args);
    }

  • How update or modified an Object within an jComboBox.setEditable(true)

    Hello,
    I would like to modified the name of an object which is displayed within a jComboBox which is setEditable(true). As we can do within a jTable with the setValueAt method.
    Here is a sample of my code:
    public class MyFrame extends JFrame {
    Object[] listeVoiture = new Object[2];
    listeVoiture [0] = new Voiture("Clio", "458 AVB 38");
    listeVoiture [1] = new Voiture("Megane", "4567 ZE 69");
    MyComboBoxModel voitureComboBoxModel = new MyComboBoxModel(listeVoiture);
    JComboBox jComboBoxListeVoiture = new JComboBox(voitureComboBoxModel);
    jComboBoxListeVoiture.setEditable(true);
    public class Voiture {
    Private String modele;
    Private String numPlaque;
    public Voiture(String mod, String plaq){
    modele= mod;
    numplaq=plaq;
    public String toString(){
    return modele;
    public void setModele(String mod){
    modele=mod;
    public class MyComboBoxModel extends DefaultComboBoxModel {
    public MyComboBoxModel(Object[] items) {
    super(items);
    public void setSelectedItem(Object anObject) {
    Voiture voit = (Voiture)this.getSelectedItem();
    voit .setModele(anObject.toString());
    super.setSelectedItem(app);
    Thank you for your advises, Romain.

    You can do a remove/insert... (why doesn't DefaultComboBoxModel have a set method?)
    Kind regards,
      Levi

  • How to use setEditable(groupComponentId,columnComponentId,index,editable)

    Hi
    I am new at Oracle BPM. I am having trouble designing a Presentation. I have a group and I need to set some fields to not Editable. In other Presentation in which i don´t have groups I've used setEditable(componentId,editable).
    Is it possible to use it for a group whitin a presentation ??
    Thanks

    I have a simillar question/issue, I want to hide/show item/object in a row in a group/array.
    I was trying to do
    the name of the array object in presentation is ergArray
    the checkBox i am trying to hide/show is chkTest
    I am looping through the data array, tried different coponent ids as you can see in the loop, All of them give same error.
    for (int i = 0; i < grpObject.length ; i++) {
    if (grpObject.someAttrib== 'N' || grpObject[i].someAttrib== null) {
    this.setVisible(componentId : "grp$ergArray$chkTest$"+i, visible : false, collapsed : true);
    this.setVisible(componentId : "ergArray$chkTest$"+i, visible : false, collapsed : true);
    this.setVisible(componentId : "chkTest$"+i, visible : false, collapsed : true);
    this.setVisible(componentId : "chkTest"+i, visible : false, collapsed : true);
    this.setVisible(componentId : "chkTest_"+i, visible : false, collapsed : true);
    It throws the error
         Invalid component ID (inside BPM Object's method: 'setVisible'). The presentation has no component with ID 'ergArray$chkTest$1'. Check the design of [PresentationComponents.Presentation1].
    Any help is highly appreciated.
    Thanks a lot.
    Edited by: user5173209 on Feb 2, 2009 11:56 AM -- Sorry Ignore the previous question.

  • SetEditable on a Group

    All,
    I have a requirement where based on one attribute of the group, I have to disable some specific attributes in the group
    Lets assume my group has 5 rows of data with 4 columns each
    colm1, colm2, colm3, colm4
    lets say that 2 rows have colu2 as "INITIATED"
    now what i want is if colm2 is INITIATED i want to disable colm1 and colm4 for that row.
    I have defined a test method inside my object which holds this group. I call this method from the Initialization Method in the presentation.
    in my test method I do the following
    for each var in this.groupName do
         if var.colm2 == "INITIATE" then
              setEditable this
              using componentId = var.colm1,
              editable = false
              setEditable this
              using componentId = var.colm4,
              editable = false
         end
    end
    I am getting the following error
    Invalid component ID (inside BPM Object's method: 'setEditable'). The presentation has no component with ID ''. Check the design of [TestObject].
    Invalid component ID (inside BPM Object's method: 'setEditable'). The presentation has no component with ID ''. Check the design of TestObject]
    Invalid component ID (inside BPM Object's method: 'setEditable'). The presentation has no component with ID ''. Check the design of [TestObject]

    You can set and individual row's column inside a Group as editable or not editable using this logic:
    setEditable this
        using groupComponentId = "groupName",
              columnComponentId = "yourCheckBox",
              index = someZeroBasedIntegerArg,
              editable = falseYour current method call is missing the group name argument and is using the attribute's name (e.g. myObj.column1) instead of the field's name (e.g. "yourCheckBox") inside the double quotes. The same thing applies to the group argument to this method's call.
    This method would be be called from the logic below.
    This would be in a method inside the BPM Object and not inside the Group. You'd want to pass it the value of the zero based row in the group you want to enable or disable. This means you'd need an Integer incoming argument variable for your method (the "someZeroBasedIntegerArg" variable in the above logic).
    You'd call this method and pass the someZeroBasedIntegerArg variable using a method inside your group. This method would typically be called by a a field's "on change invoke" property and would need to have logic like this to get the row that was picked:
    // in a method inside the Group’s BPM Object
    lineSelected as Int
    lineSelected = groupName.indexOf(this)
    // make field noneditable based on some criteria you have in mind
    makeFieldNonEditable(lineSelected)Dan

Maybe you are looking for

  • Business system from SLD not visible in Integration Directory

    Hi, As on the project I do not have access to the SLD, another team created new business systems there. However, when I try in the Integration Builder(Configuration) to assign the newly created systems, I cannot see them on the "Select business syste

  • Chapter Jump problems

    When my dvd production is ready and when I watch it in the simulator, there is no fluent jump from one chapter to another chapter. And the same goes from track to track. The first frame of the new chapter is freezing for about a second. When I burn t

  • I recently installed adobeX1last night but i cant get it to open????

    i installed adobe X1 last night but i cant get it to open????

  • Reader XI download

    The morning, I received the Reader XI update.  When it was done, it said that there was a corrupt file and that it will not take.  I unstalled it and downloaded Reader 10.1.4 and the XI update still comes up with the corrupt file.  Now I cannot print

  • Adobe Premier pro cc Problem Importing

    I recently upgraded from cc to cc2014 and i have a problem importing .vob files. The software cannot import the files saying it is unable to import or the files are corrupt. I however can be able to import in Adobe cs6 and the previous cc version.