Per il JFileChooser:
Per le JDialog...beh...ME LE HAI FATTE TU!!public void actionPerformed(ActionEvent e)
{
String sorgenti = node.get("sorgenti", "");
if (e.getSource() == BtnSelezione)
//Gestisco la pressione del pulsante "Seleziona" della finestra principale
{
//Imposto il FileChooser.
if (fc == null)
{
fc = new JFileChooser();
/*ecc*/![]()
class SO extends Thread
{
JDialog d;
public SO(JDialog d)
{
this.d = d;
}
public void run()
{
sendOrder ordine = new sendOrder(usernameLog, PhotoViewerArea.this);
resultSendOrder = ordine.getResult();
idordine = ordine.getidOrdine();
d.dispose();
}
}
String msg_attesa = "Trasferimento files in corso, attendere prego...";
if (wait_dialog == null)
{
wait_dialog = new WaitDialog(PhotoViewerArea.this);
}
wait_dialog.setMessage(msg_attesa, "center");
SO so = new SO(wait_dialog);
so.start();
wait_dialog.show();