using swing to send a "pop up"
Well, this is what I use for client side menus... it's one of the MANY ways to utilize swing to better your client. Using it is also very easy.
Add this to client, or if you want you can make a different class to handle all swing related coding.
Code:
import javax.swing.*;
Thats pretty much all you need to get started with your basic swing coding. Its an incredible java package and I suggest you read up even more ways to use it such as JFrames, JMenus and much more. I read the java tutorial on this and my client now looks and performs much much better.
Anyways, on to the main part. Add this to the method you want to use to call the "pop up". For example, a client commands void.
JOptionPane.showMessageDialog(this, "Line one...\nLine two...\nLine three", "TITLE", JOptionPane.INFORMATION_MESSAGE);
Sorry I didn't use code tags, but its much easier to explain using colors.
Okay, now the explanations, color coded style! Ya!
All of these you do not need to edit.
This is the body of the pop up. Type your message in here, and to start a new line type "\n" without the quotes.
This is the title of the pop up.
There ya go, that's how to use swing to send "pop ups" (or MessageDialogs)
Credits: Me and good old java tutorials for teaching me