本文整理汇总了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();
}