Hello, I've been trying recently to find out how to print out text into the screen like from keyboard, that is printing into active window, just like from keyboard port. Is there a premade package/method for that or how do I use the keyboard port?
shookees
0
Newbie Poster
Recommended Answers
Jump to PostYou could make a window by using JFrame from javax.swing.
JFrame window = new JFrame("This is my windows title")
You could use a JTextField so the user can input into the text field.
…JTextField UserInput = new JTextField("Text to go inside the textfield, optional")
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.