當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。