crazydeo 0 Newbie Poster

Hi, I'm a newbie at Java programming and was wondering how to align some text fields using the tab option aside from simply placing empty space to align for example:


JOptionPane.showMessageDialog(null, "Type of Coffee Ordered :" + " "+ nameString + '\n' +"Number of Pounds Ordered :" + " " + poundsOfCoffeeOrdered + '\n' + '\n' ;

I know that while using the scanner option I can tab by simply using '\t'
Is there an equivalent to this in JOptionPane.

Thank you soooo much in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.