Here you can find the source of setEditable(JTextComponent... components)
public static void setEditable(JTextComponent... components)
//package com.java2s; //License from project: Open Source License import javax.swing.text.JTextComponent; public class Main { public static void setEditable(JTextComponent... components) { for (JTextComponent component : components) { component.setEditable(true); }/*from ww w. jav a 2 s . c om*/ } }