1
votes

i am working on a mask. It has three text-fields and a button that triggers a method.

How can set the text-fields on readOnly/not editable using the method triggered by the button in Java?

AWT, Swing, SWT, client-side html, GWT, ...? - Johannes Kuhn
In am using Java. - Tim
We already know that you're "using Java", but you are still not telling or showing which GUI library. Please tell and show the details including pertinent code. No sense in asking folks to guess at key information. Show the code that you've tried, show the results from the research that you've done on this, ask a better question if possible. - Hovercraft Full Of Eels
Java has many libraries which can be used to build graphical interface. Note that Swing was introduced after AWT. There is also JavaFX. Also we can use Java to generate websites. Please use edit option and specify which library/framework your question is about ("in Java" doesn't tell us much). - Pshemo
Also don't get scared by fact that your question was closed. If you improve its clarity people can also vote to reopen it, and even retract their downvotes. But I would advise improving it as fast as you can to use fact that there are still some people reading this question. - Pshemo