当前位置: 首页>>代码示例>>Java>>正文


Java BookmarksDialog类代码示例

本文整理汇总了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);
}
 
开发者ID:fracpete,项目名称:vfsjfilechooser2,代码行数:40,代码来源:DefaultAccessoriesPanel.java

示例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();
}
 
开发者ID:fracpete,项目名称:vfsjfilechooser2,代码行数:17,代码来源:ConnectionDialog.java

示例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);
}
 
开发者ID:shevek,项目名称:vfsjfilechooser,代码行数:39,代码来源:DefaultAccessoriesPanel.java

示例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();
}
 
开发者ID:shevek,项目名称:vfsjfilechooser,代码行数:16,代码来源:ConnectionDialog.java


注:本文中的com.googlecode.vfsjfilechooser2.accessories.bookmarks.BookmarksDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。