本文整理匯總了Java中com.googlecode.vfsjfilechooser2.accessories.bookmarks.BookmarksDialog類的典型用法代碼示例。如果您正苦於以下問題:Java BookmarksDialog類的具體用法?Java BookmarksDialog怎麽用?Java BookmarksDialog使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BookmarksDialog類屬於com.googlecode.vfsjfilechooser2.accessories.bookmarks包,在下文中一共展示了BookmarksDialog類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: initComponents
import com.googlecode.vfsjfilechooser2.accessories.bookmarks.BookmarksDialog; //導入依賴的package包/類
private void initComponents()
{
buttonsPanel = new JPanel();
buttonsPanel.setLayout(new GridLayout(0, 1, 3, 3));
Action action;
action = new ManageBookmarksAction(VFSResources.getMessage(
"VFSJFileChooser.bookmarksLabelText"), getIcon("book.png"));
bookmarksButton = new JButton(action);
bookmarksButton.setHorizontalAlignment(SwingConstants.LEFT);
action = new ConnectionWizardAction(VFSResources.getMessage(
"VFSJFileChooser.connectionButtonText"),
getIcon("connect.png"));
connectionsButton = new JButton(action);
connectionsButton.setHorizontalAlignment(SwingConstants.LEFT);
action = new LocalFilesAction(VFSResources.getMessage(
"VFSJFileChooser.localFilesButtonText"),
getIcon("drive.png"));
localFSButton = new JButton(action);
localFSButton.setHorizontalAlignment(SwingConstants.LEFT);
buttonsPanel.add(bookmarksButton);
buttonsPanel.add(Box.createVerticalStrut(20));
buttonsPanel.add(connectionsButton);
buttonsPanel.add(Box.createVerticalStrut(20));
buttonsPanel.add(localFSButton);
add(buttonsPanel, BorderLayout.NORTH);
add(new JPanel(), BorderLayout.CENTER);
final Frame c = (Frame) SwingUtilities.getWindowAncestor(fileChooser);
bookmarksDialog = new BookmarksDialog(c, fileChooser);
connectionDialog = new ConnectionDialog(c, bookmarksDialog, fileChooser);
}
示例2: ConnectionDialog
import com.googlecode.vfsjfilechooser2.accessories.bookmarks.BookmarksDialog; //導入依賴的package包/類
/**
* @param parent
* @param m_dialog
* @param chooser
*/
public ConnectionDialog(Frame parent, BookmarksDialog m_dialog,
VFSJFileChooser chooser)
{
super(parent, DIALOG_TITLE, true);
this.fileChooser = chooser;
this.bookmarksDialog = m_dialog;
initComponents();
initListeners();
}
示例3: initComponents
import com.googlecode.vfsjfilechooser2.accessories.bookmarks.BookmarksDialog; //導入依賴的package包/類
private void initComponents() {
buttonsPanel = new JPanel();
buttonsPanel.setLayout(new GridLayout(0, 1, 3, 3));
Action action;
action = new ManageBookmarksAction(VFSResources.getMessage(
"VFSJFileChooser.bookmarksLabelText"), getIcon("book.png"));
bookmarksButton = new JButton(action);
bookmarksButton.setHorizontalAlignment(SwingConstants.LEFT);
action = new ConnectionWizardAction(VFSResources.getMessage(
"VFSJFileChooser.connectionButtonText"),
getIcon("connect.png"));
connectionsButton = new JButton(action);
connectionsButton.setHorizontalAlignment(SwingConstants.LEFT);
action = new LocalFilesAction(VFSResources.getMessage(
"VFSJFileChooser.localFilesButtonText"),
getIcon("drive.png"));
localFSButton = new JButton(action);
localFSButton.setHorizontalAlignment(SwingConstants.LEFT);
buttonsPanel.add(bookmarksButton);
buttonsPanel.add(Box.createVerticalStrut(20));
buttonsPanel.add(connectionsButton);
buttonsPanel.add(Box.createVerticalStrut(20));
buttonsPanel.add(localFSButton);
add(buttonsPanel, BorderLayout.NORTH);
add(new JPanel(), BorderLayout.CENTER);
final Frame c = (Frame) SwingUtilities.getWindowAncestor(fileChooser);
bookmarksDialog = new BookmarksDialog<FileObject>(c, fileChooser);
connectionDialog = new ConnectionDialog<FileObject>(c, bookmarksDialog, fileChooser);
}
示例4: ConnectionDialog
import com.googlecode.vfsjfilechooser2.accessories.bookmarks.BookmarksDialog; //導入依賴的package包/類
/**
* @param parent
* @param m_dialog
* @param chooser
*/
public ConnectionDialog(Frame parent, BookmarksDialog m_dialog,
VFSJFileChooser<FileObject> chooser) {
super(parent, DIALOG_TITLE, true);
this.fileChooser = chooser;
this.bookmarksDialog = m_dialog;
initComponents();
initListeners();
}