JOptionPane - Java Basics

JOptionPane - Java Basics

TheTigerTutorials

13 лет назад

288,697 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

park geonyong
park geonyong - 01.10.2021 09:09

really THANK YOU SO MUCH SIR, I could finish ma project! From 2021

Ответить
Jay
Jay - 20.07.2021 21:23

Thank you!

Ответить
Fouzan Hasan
Fouzan Hasan - 03.11.2020 21:36

THANKS BRO :)

Ответить
Bee hive
Bee hive - 28.09.2020 08:20

my code is not workig I wanted to add more sentences but its doenst work

Ответить
Fernando Hood
Fernando Hood - 01.03.2020 00:22

You told us how to use it. What really is an option pane?

Ответить
Zaid Ahmed
Zaid Ahmed - 06.02.2020 09:49

helpfull

Ответить
Malcolm
Malcolm - 02.09.2019 22:40

WHATS WRONG WITH THISSSSS






import javax.swing.JOptionPane;

public class main
{
public static void main(string [] args);
{
int g = -1;
while (g < 0)
{
string input = JOptionPane.showImputDialog ("Cant go back now haha :).");
if(input.length () > 0)
{
g++;
System.out.printin ("dang.")
}else
System.out.printin ("thats right your trapped")
}
}
}

Ответить
FarhanBD
FarhanBD - 04.07.2019 09:14

Doesn't work for me


here's my code






package cally;
import javax.swing.JOptionPane;

public class Cally{
public static void main(String[] args) {
int ugh = 0;
while(ugh == 0) {
String name = JOptionPane.showInputDialog("Please enter your name: ");
ugh++;
if(name.length() > 0) {
JOptionPane.showInputDialog("Hello " + "Farhan" + "!");
}else{
System.out.println("OMG ENTER YOUR NAME!!");
}
}
}
}

Ответить
Bbrriixxiiee
Bbrriixxiiee - 16.06.2019 15:54

BASICS and you use the while for a simple input output for Joptionpane??

Ответить
陳阿根
陳阿根 - 24.04.2019 18:43

Very useful! Thank you very much!

Ответить
ki kito
ki kito - 17.04.2019 14:49

thanks for the nice vidio just i have question withe any editor u are work beacuse he dont want to work for me with eclipse editor the class joptionpane with all the dialog box . i hope u can help me

Ответить
Vijay Kumar
Vijay Kumar - 26.01.2019 17:11

thankyiu very nice

Ответить
What Next
What Next - 08.01.2018 11:10

Which app is this for java??

Ответить
Rutvij Kulkarni
Rutvij Kulkarni - 02.12.2017 23:48

Hey could you tell me how I can change the size of a JOptionPane. Thanks.

Ответить
Qwertie asdf
Qwertie asdf - 08.09.2017 23:25

I can't import javax.swing.JOptionPane

Ответить
BagaskaraA
BagaskaraA - 10.08.2017 13:44

wtf is this

Ответить
solt
solt - 23.07.2017 07:29

its saying else is invalid

Ответить
Mukunda Das
Mukunda Das - 11.07.2017 15:44

How do I get the X and Y values of my current cursor position and display it on the DialogueBox?

Ответить
NatMesh
NatMesh - 15.03.2017 05:10

dassss my dawwwwwg

Ответить
Jakub Osinski
Jakub Osinski - 11.12.2016 04:53

In showOptionDialog, once I get the input by user clicking on the boxes, how do I then use that input?

Ответить