About 13,200,000 results
Open links in new tab
  1. Display information in Java GUI - Stack Overflow

    Feb 22, 2011 · String message = "The title of the book is :" + title +", " +. "and the Author of the Book is :" + author +". It was published in" + year + "by " + publisher +. "and retails at" + cost; …

  2. java - Printing strings with a GUI - Stack Overflow

    Dec 20, 2018 · String input=speakerfield.getText(); robot.setJoke(input); String Response= Joketeller.getResponse(); Marcofield.setText(Response); } } } And here's my Joketeller class: …

  3. How do I print messages to the screen in my Java GUI?

    Nov 1, 2011 · You should put a JTextField or a JLabel into your program. These two components display text that the user can read. I suggest using a JTextField, mostly because I love using …

  4. Java Swing | JTextArea - GeeksforGeeks

    May 10, 2018 · JTextArea (String s, int row, int column) : constructs a new text area with a given number of rows and columns and a given initial text. Commonly used methods : append …

  5. How to Use Text Areas (The Java™ Tutorials > Creating a GUI ... - Oracle

    Many of the Tutorial's examples use uneditable text areas to display program output. Here is a picture of an example called TextDemo that enables you to type text using a text field (at the …

  6. Message Dialogs in Java (GUI) - GeeksforGeeks

    Oct 26, 2021 · We call the static showMessageDialog () method of the JOptionPane class to create a message dialog. We provide the dialog’s parent, message text, title, and message …

    Missing:

    • String

    Must include:

  7. How to Use Labels (The Java™ Tutorials > Creating a GUI With …

    If you need to create a component that displays a string, an image, or both, you can do so by using or extending JLabel. If the component is interactive and has a certain state, use a button …

  8. Lesson 3- How to input a String using TextField and display ... - YouTube

    Nov 2, 2017 · This video shows a simple Java GUI Program to input a string from TextField and display it in a label.

  9. Java Swing Hello World Tutorial for Beginners Using Text Editor

    Jul 5, 2019 · To work with Swing, we need to import the following packages: import javax.swing.*; import java.awt.*; import java.awt.event.*; The package javax.swing contains the GUI …

  10. Display text and graphics in Java on JFrame - Java Tutorial

    Jul 31, 2017 · This tutorial explains how to display text and graphics on JFrmae for example, lines, circle and rectangle. Java provides us an easy way to draw text and graphics using GUI. …

  11. Some results have been removed
Refresh