net.java.sip.communicator.util.swing
Class GenericFileDialog
java.lang.Object
net.java.sip.communicator.util.swing.GenericFileDialog
public class GenericFileDialog
- extends Object
This class is the entry point for creating a file dialog regarding to the OS.
If the current operating system is Apple Mac OS X, we create an AWT
FileDialog (user interface is more practical under Mac OS than a
JFileChooser), else, a Swing JFileChooser.
- Author:
- Valentin Martinet
|
Method Summary |
static SipCommFileChooser |
create(Frame parent,
String title,
int fileOperation)
Creates a file dialog (AWT's FileDialog or Swing's JFileChooser)
regarding to user's operating system. |
static SipCommFileChooser |
create(Frame parent,
String title,
int fileOperation,
String path)
Creates a file dialog (AWT FileDialog or Swing JFileChooser) regarding to
user's operating system. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericFileDialog
public GenericFileDialog()
create
public static SipCommFileChooser create(Frame parent,
String title,
int fileOperation)
- Creates a file dialog (AWT's FileDialog or Swing's JFileChooser)
regarding to user's operating system.
- Parameters:
parent - the parent Frame/JFrame of this dialogtitle - dialog's titlefileOperation -
- Returns:
- a SipCommFileChooser instance
create
public static SipCommFileChooser create(Frame parent,
String title,
int fileOperation,
String path)
- Creates a file dialog (AWT FileDialog or Swing JFileChooser) regarding to
user's operating system.
- Parameters:
parent - the parent Frame/JFrame of this dialogtitle - dialog's titlefileOperation - path - start path of this dialog
- Returns:
- SipCommFileChooser an implementation of SipCommFileChooser
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.