K
K
Kokos Belyi2022-04-20 15:56:09
Java
Kokos Belyi, 2022-04-20 15:56:09

Java graphical application reference?

Hello everyone, I am writing a course project on the topic of a Google services directory, an approximate design in the photo, but that's not the point. The question is how, when you click on the buttons with the names of Google services, display information about the Google service according to the prepared text. I ask you to help those who know, because the idea of ​​\u200b\u200bwhat Java is and what it is eaten with is 0. Initially, I wanted to write in # WPF, but I didn’t need a ride in Java ( PS (I write in IntelliJ IDEA + JavaFx)
626002b81b956494823965.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Katya Ivanova, 2022-04-20
@Kats555

Where jbutton is your button (Google Mail).

jbutton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                    JOptionPane.showMessageDialog((Component)
                                    null,
                            "Твой текст",
                            "Google Пошта",
                            JOptionPane.INFORMATION_MESSAGE);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question