Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Maneesh Godbole wrote:Why are you toying with custom painting?
This is the bit I need help onManeesh Godbole wrote:Add the text area to a container, add the container to the applet.
To display the moves, use JTextArea#append
When you want to show/hide invoke JTextArea.setVisible(boolean visible)
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Mich Robinson wrote:because it worked for what I was doing.
Mich Robinson wrote:This is the bit I need help on
err ... thanksManeesh Godbole wrote:Recommended reading ...
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ranganathan Kaliyur Mannar wrote:I went there and played a game. Fantastic! I had fun!
Ranganathan Kaliyur Mannar wrote:Where/what is the issue you are facing?
Ranganathan Kaliyur Mannar wrote:are you using AWT?
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Mich Robinson wrote:Afraid I'm clueless about this aspect of Java.
Paul Clapham wrote:Really. Read the tutorials. They come with code, so take the code and mess around with it. Change it around and see what happens. Keep going until you get comfortable with it, then go on to the next tutorial.
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Mich Robinson wrote:Taking the example link given previously - the code snippets don't work together.
Paul, I'm not trying to learn swing or awt - I just want to display some text in an applet that a user can copy and I came here to try and get some help. I already help others out on your sister forum "Java game development" and I assumed each sub forum would offer the same level of help.Paul Clapham wrote:Start at the beginning of the Swing tutorial trail.
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
About users wanting to copy the history, I think you can just provide a simple 'Copy History' button somewhere - when user clicks on it, you write code to copy the moves directly to the clipboard:
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Mich Robinson wrote:To use the above code do I need to have a swing text field on screen? I only ask because I don't have any swing stuff in place at the moment.
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Consider Paul's rocket mass heater. |