I am working on a java program, what I want to implement is once the window loads, the set of text in a JTextPane to change. I have the below code that creates the JTextPane;
JTextPane txtpnReady = new JTextPane();
txtpnReady.setText("Ready");
txtpnReady.setEditable(false);
txtpnReady.setBounds(181, 39, 169, 20);
contentPane.add(txtpnReady);
I am unsure of how to add a timer that will change the text of this JTextPane, after 2 seconds, I need it to say Ready once the program loads, then after 2 seconds Steady and then after 2 seconds, Go.
Thanks.