Samet Kilictas’s Blog

Tag: JOptionPane

Example Code #2 – JOptionPane JCombobox

by Samet Kilictas on Dec.21, 2008, under Java, Programming

This code shows how to add ComboBox property to JOptionPane.showInputDialog. And the class is able to take an input from this combobox

import javax.swing.JOptionPane;

public class Options {

	public Options() {

		String smallList[] = {"Sunday", "Monday", "Tuesday", "Wednesday",
				"Thrusday", "Friday", "Saturday" };

(continue reading…)

VN:F [1.0.6_327]
Rating: 5.0/10 (2 votes cast)
Leave a Comment :, , , more...

Example Code #1 – JOptionPane and ArrayList

by Samet Kilictas on Dec.20, 2008, under Java, Programming

Here this class takes some values using JOptionPane.showInputDialog and shows them to the user using foreach loop

import java.util.ArrayList;
import javax.swing.JOptionPane;

public class Confirm {

ArrayList fruits = new ArrayList();

Confirm(){
String value = "";
while (true){
value = JOptionPane.showInputDialog("Which fruit to Add?");

(continue reading…)

VN:F [1.0.6_327]
Rating: 5.5/10 (2 votes cast)
Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...