EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
9th Edition
ISBN: 9781337671385
Author: FARRELL
Publisher: CENGAGE LEARNING - CONSIGNMENT
bartleby

Videos

Question
Book Icon
Chapter 1, Problem 11PE
Program Plan Intro

Comments in Java

Program Plan:

  • Import the JavaFx swing package to display the dialog box.
  • Define the class “CommentsDialog”.
  • Define the main method.
    • Display the given statement in a dialog box.
    • Show the given statement in Line comment, Block comment and Javadoc comments.

Blurred answer
Students have asked these similar questions
Exercise 3: Write a Java program which creates two frames, each containing one button. When you execute the program only one JFrame will appear and when you click on its button it will disappear and the other JFrame will appear. If you click on the button of the second frame it will make it disappear and let the first frame appear. And so on...
This is using Java. I will apprecitte detalied comments, so I understand better the exercise/code.
Please help me with my assignment for computer science as I had all the dialog box pop up for me except for "Whew"  what am I doing wrong?  I am including with this message the coding block for the assignment.   import java.awt.event.*;import javax.swing.*;public class MouseWhisperer extends JFrame implements MouseListener {MouseWhisperer() {super("COME CLOSER");setSize(300,100);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);addMouseListener(this);setVisible(true);}public void mouseClicked(MouseEvent e) { setTitle("OUCH"); }public void mousePressed(MouseEvent e) { setTitle("LET GO"); }public void mouseReleased(MouseEvent e) { setTitle("WHEW"); }public void mouseEntered(MouseEvent e) { setTitle("I SEE YOU"); }public void mouseExited(MouseEvent e) { setTitle("COME CLOSER"); }public static void main(String[] args) { new MouseWhisperer(); }}   Please advice.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    EBK JAVA PROGRAMMING
    Computer Science
    ISBN:9781337671385
    Author:FARRELL
    Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
The Top Down Approach to Software Development; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=v9M8LA2uM48;License: Standard YouTube License, CC-BY