You can't edit text in a JTextField if you call setEditable(false)
. You can't even tab onto it if you call setFocusable(false)
on it as well.
Edit
You ask:
where do i set it? as i just tried JTextField qText = new JTextField(setEditable(false)); but its not working.. or do i have to make a new method and then call the method?
Your qText field should be a private instance field. Then you can call the methods in your Quiz class's constructor.