亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? myjxtaview.java

?? Myjxta的源代碼 基于JXTA的P2P即時通信系統(tǒng)
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* *  Copyright (c) 2001 Sun Microsystems, Inc.  All rights *  reserved. * *  Redistribution and use in source and binary forms, with or withouta *  modification, are permitted provided that the following conditions *  are met:addjxt * *  1. Redistributions of sourcec code must retain the above copyright *  notice, this list of conditions and the following disclaimer. * *  2. Redistributions in binary form must reproduce the above copyright *  notice, this list of conditions and the following discalimer in *  the documentation and/or other materials provided with the *  distribution.c * *  3. The end-user documentation included with the redistribution, *  if any, must include the following acknowledgment: *  "This product includes softgetware developed by the *  Sun Microsystems, Inc. for Project JXTA." *  Alternately, this acknowledgment may appear in the software itself, *  if and wherever such third-party acknowledgments normally appear. * *  4. The names "Sun", "Sun Microsystems, Inc.", "JXTA" and "Project JXTA" *  must not be used to endorse or promote products derived from this *  software without prior written permission. For written *  permission, please contact Project JXTA at http://www.jxta.org. * *  5. Products derived from this software may not be called "JXTA",s *  nor may "JXTA" appear in their name, without prior written *  permission of Sun. * *  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED *  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES *  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *  DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR *  ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF *  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, *  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT *  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF *  SUCH DAMAGE. *  ===================================================tre================= * *  This software consists of voluntary contributions made by many *  individuals on behalf of Project JXTA.  For more *  information on Project JXTA, please see *  <http://www.jxta.org/>. * * *  $Id: MyJXTAView.java,v 1.110 2007/06/10 21:15:13 nano Exp $ */package net.jxta.myjxta.ui;import net.jxta.document.*;import net.jxta.myjxta.MyJXTA;import net.jxta.myjxta.View;import net.jxta.myjxta.dialog.Dialog;import net.jxta.myjxta.dialog.DialogMessage;import net.jxta.myjxta.dialog.OneToOneCommandDialog;import net.jxta.myjxta.dialog.util.Text;import net.jxta.myjxta.plugin.ISelectableNode;import net.jxta.myjxta.plugin.PluginContainer;import net.jxta.myjxta.plugin.PluginView;import net.jxta.myjxta.search.SearchContext;import net.jxta.myjxta.search.SearchManager;import net.jxta.myjxta.search.SearchModifier;import net.jxta.myjxta.search.Searcher;import net.jxta.myjxta.share.IShareManagerProvider;import net.jxta.myjxta.ui.action.ExitAction;import net.jxta.myjxta.ui.action.GroupJoinAction;import net.jxta.myjxta.ui.action.ShareViewAction;import net.jxta.myjxta.ui.model.JxtaTreeModel;import net.jxta.myjxta.util.*;import net.jxta.myjxta.util.exec.ExecFactory;import net.jxta.myjxta.util.objectmodel.GroupNode;import net.jxta.myjxta.util.objectmodel.JxtaNode;import net.jxta.myjxta.util.objectmodel.PeerNode;import net.jxta.myjxta.util.objectmodel.ShareNode;import net.jxta.myjxta.util.preferences.MyPreferencePanel;import net.jxta.peergroup.PeerGroup;import net.jxta.pipe.PipeService;import net.jxta.protocol.PeerGroupAdvertisement;import net.jxta.protocol.PipeAdvertisement;import org.jdesktop.swingx.JXFrame;import org.jdesktop.swingx.JXTreeTable;import javax.swing.*;import javax.swing.border.EmptyBorder;import javax.swing.border.EtchedBorder;import javax.swing.event.ChangeEvent;import javax.swing.event.ChangeListener;import javax.swing.event.ListSelectionEvent;import javax.swing.event.ListSelectionListener;import javax.swing.tree.DefaultTreeCellRenderer;import javax.swing.tree.TreePath;import javax.swing.tree.TreeSelectionModel;import java.awt.*;import java.awt.datatransfer.DataFlavor;import java.awt.datatransfer.StringSelection;import java.awt.datatransfer.Transferable;import java.awt.datatransfer.UnsupportedFlavorException;import java.awt.dnd.*;import java.awt.event.*;import java.io.*;import java.lang.reflect.InvocationTargetException;import java.net.MalformedURLException;import java.net.URI;import java.net.URISyntaxException;import java.net.URL;import java.util.*;import java.util.List;import java.util.logging.Level;import java.util.logging.Logger;/** * @author james todd [gonzo at jxta dot org] * @author joe leach [coconatty at jxta dot org] * @version $Id: MyJXTAView.java,v 1.110 2007/06/10 21:15:13 nano Exp $ * @modified 2005-03-26 jamoore add general PlugInPanel type to removeDialog * @modified 2005-03-27 jamoore add vojxta to menus * @modified 2005-03-27 jamoore add vojxta add/remove dialog support * @modified 2005-04-24 jamoore add vijxta add/remove dialog support * @modified 2005-05-01 jamoore enable video only if system property is set */public final class MyJXTAView        extends JXFrame        implements View, PluginContainer.IPopupProvider {// ------------------------------ FIELDS ------------------------------    static final Logger LOG = Logger.getLogger(MyJXTAView.class.getName());    private static final int STATUS_MAX = 15;    private static final String DOT = ".";    private static final ResourceBundle STRINGS = Resources.getStrings();    private MyJXTA myjxta = null;    private JSplitPane split = null;    private JXTreeTable tree = null;    private JxtaTreeModel treeModel = null;    private JDialog searchDialog = null;    private JTabbedPane search = null;    private JDialog shareDialog = null;    private JTabbedPane share = null;    private JTabbedPane plugins = null;    private JTabbedPane m_navigationPane = null;    private DefaultComboBoxModel status = null;    private Action exitAction = null;    private JPopupMenu popup = null;    private final Object lock = new Object();    private final Dimension m_preferredSize = new Dimension(600, 375);    private ConfigData config = null;    private MenuManager m_menuManager;// --------------------------- CONSTRUCTORS ---------------------------    /**     * Default Constructor     *     * @param p_myjxta     */    public MyJXTAView(MyJXTA p_myjxta) {        super(MyJXTA.NAME);        setControl(p_myjxta);        initialize();    }    private void initialize() {        ui();        pack();    }    private void ui() {        Resources res = Resources.getInstance();        ImageIcon icon = res.getIconResource("Application.Icon");        if (icon != null) {            setIconImage(icon.getImage());        }        buildActions();        buildMenu();        buildUI();    }    private void buildActions() {        this.exitAction = new ExitAction(STRINGS.getString("menu.exit"), this.getControl());    }    private void buildMenu() {        m_menuManager = MenuManager.getInstance(this);        setJMenuBar(m_menuManager.getMenuBar());        //todo: why is it necessary to add the popup menu to the content pane?        getContentPane().add(this.popup =                buildPopupMenu(m_menuManager.getActionMenu().getMenuComponents()));    }    //set up popup menu, and add mouse listener (see internal class popuplistener)    private JPopupMenu buildPopupMenu(Component[] c) {        JPopupMenu jp = new JPopupMenu();        for (Component aC : c) {            jp.add(aC);        }        return jp;    }    private void buildUI() {        GridBagLayout gb = new GridBagLayout();        GridBagConstraints gbc = new GridBagConstraints();        getContentPane().setLayout(gb);        ((JPanel) getContentPane()).setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));        //sp.setViewportBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));        gbc.gridx = 0;        gbc.gridy = 0;        gbc.gridwidth = 1;        gbc.gridheight = 1;        gbc.insets = new Insets(3, 3, 3, 3);        gbc.anchor = GridBagConstraints.NORTHWEST;        gbc.weightx = 1.0;        gbc.weighty = 1.0;        gbc.fill = GridBagConstraints.BOTH;        JPanel newLeftComponent = buildNavigation();        JPanel newRightComponent = buildPlugins();        this.split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true,                newLeftComponent, newRightComponent);//        this.split.setDividerLocation(0.3);        this.split.setResizeWeight(0.15);        this.split.setOneTouchExpandable(true);        this.split.setDividerSize(8);        gb.setConstraints(this.split, gbc);        getContentPane().add(this.split);        gbc.gridx = 0;        gbc.gridy++;        gbc.anchor = GridBagConstraints.LINE_START;        gbc.weightx = 0.0;        gbc.weighty = 0.0;        gbc.fill = GridBagConstraints.HORIZONTAL;        JPanel fp = buildFooter();        gb.setConstraints(fp, gbc);        getContentPane().add(fp);        addComponentListener(new ComponentAdapter() {            public void componentMoved(ComponentEvent we) {                componentResized(we);            }            public void componentResized(ComponentEvent we) {//                Rectangle b = getBounds();                MyJXTA myJXTA = MyJXTAView.this.getControl();                //nano: myJXTA can be null during the initial setup, so prevent the NPE here                if (myJXTA != null) {                    // todo: persist app size, location, etc//                    p.putInt(Prefs.UI_WIDTH, b.width);//                    p.putInt(Prefs.UI_HEIGHT, b.height);//                    p.putInt(Prefs.UI_X, b.x);//                    p.putInt(Prefs.UI_Y, b.y);                }            }        });        MyJXTAView.this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);        addWindowListener(new WindowAdapter() {            public void windowClosing(WindowEvent we) {                MyJXTAView.this.getExitAction().actionPerformed(null);            }        });        addFocusListener(new FocusListener() {            public void focusGained(FocusEvent fe) {                toFront();            }            public void focusLost(FocusEvent fe) {                // Do nothing            }        });    }    private JPanel buildNavigation() {        JPanel p = new JPanel();        GridBagLayout gb = new GridBagLayout();        GridBagConstraints gbc = new GridBagConstraints();        p.setLayout(gb);        JScrollPane sp = new JScrollPane(this.tree = buildTree());        tree.getSelectionModel().addListSelectionListener(new ListSelectionListener() {            public void valueChanged(ListSelectionEvent arg0) {                m_menuManager.updateMenuStatus();            }        });        tree.getSelectionModel().addListSelectionListener(new ListSelectionListener() {            public void valueChanged(ListSelectionEvent e) {                m_menuManager.updateMenuStatus();            }        });        gbc.gridx = 0;        gbc.gridy = 0;        gbc.gridwidth = GridBagConstraints.REMAINDER;        gbc.gridheight = GridBagConstraints.RELATIVE;        gbc.insets = new Insets(3, 3, 3, 3);        gbc.anchor = GridBagConstraints.NORTHWEST;        gbc.weightx = 1.0;        gbc.weighty = 1.0;        gbc.fill = GridBagConstraints.BOTH;        gb.setConstraints(sp, gbc);        p.add(sp);        JComboBox quickSearchContext = new JComboBox(new DefaultComboBoxModel(new Object[]{                new SearchContext(STRINGS.getString("label.pipe.name"),                        Searcher.PIPE),                new SearchContext(STRINGS.getString("label.group.name"),                        Searcher.GROUP),                new SearchContext(STRINGS.getString("label.share.name"),                        Searcher.SHARE)        }));        gbc.gridy++;        gbc.gridwidth = GridBagConstraints.RELATIVE;        gbc.gridheight = GridBagConstraints.REMAINDER;        gbc.weightx = 0.0;        gbc.weighty = 0.0;        gbc.fill = GridBagConstraints.NONE;        gb.setConstraints(quickSearchContext, gbc);        p.add(quickSearchContext);        JTextField quickSearch = new JTextField(25);        quickSearch.addKeyListener(new QuickSearchKeyAdapter(quickSearchContext, this));        gbc.gridx++;        gbc.gridwidth = GridBagConstraints.REMAINDER;        gbc.weightx = 1.0;        gbc.fill = GridBagConstraints.HORIZONTAL;        gb.setConstraints(quickSearch, gbc);        p.add(quickSearch);        m_navigationPane = new JTabbedPane();        m_navigationPane.addChangeListener(new ChangeListener() {            public void stateChanged(ChangeEvent e) {                if (m_menuManager != null) {                    m_menuManager.updateMenuStatus();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色狠狠一区二区三区香蕉| 日本欧美在线观看| 91麻豆国产自产在线观看| 久久久久高清精品| 国产九色sp调教91| 欧美成人欧美edvon| 久久福利资源站| 精品久久久久久最新网址| 欧美a一区二区| 日韩视频在线一区二区| 蜜臀a∨国产成人精品| 精品国产免费视频| 国产电影一区二区三区| 国产欧美精品一区二区色综合朱莉 | 日本一区二区成人| 国产夫妻精品视频| 国产精品成人网| 欧美综合亚洲图片综合区| 亚洲主播在线播放| 制服.丝袜.亚洲.另类.中文| 奇米色一区二区| 亚洲精品在线观| 成人免费高清视频| 日韩电影一区二区三区| 精品国产伦理网| 精品午夜久久福利影院| 中文av一区二区| 色老综合老女人久久久| 亚洲精品你懂的| 欧美剧在线免费观看网站| 久久精品噜噜噜成人av农村| 欧美电影免费观看高清完整版在线| 国产麻豆91精品| 亚洲欧美日韩在线不卡| 56国语精品自产拍在线观看| 久99久精品视频免费观看| 中文字幕乱码日本亚洲一区二区| k8久久久一区二区三区| 亚洲电影一级黄| 国产日韩欧美高清| 欧美日韩在线免费视频| 久久激情综合网| 亚洲天堂2016| 日韩一区二区三区精品视频| 高清不卡一区二区在线| 亚洲国产视频一区二区| 26uuu国产一区二区三区| 91麻豆国产福利在线观看| 日本视频中文字幕一区二区三区| 国产精品色在线观看| 欧美一区二区三区成人| 不卡的电影网站| 日本sm残虐另类| 亚洲欧美日韩成人高清在线一区| 欧美一区二区在线视频| 99re免费视频精品全部| 激情国产一区二区| 日韩福利视频网| 欧美国产日韩一二三区| 91麻豆精品国产91久久久资源速度 | 成人性生交大合| 免费久久99精品国产| 亚洲靠逼com| 国产精品视频yy9299一区| 欧美成人一区二区三区片免费| 色偷偷成人一区二区三区91| 国产一区二区三区观看| 日韩电影在线免费观看| 亚洲人成亚洲人成在线观看图片 | 日韩美女啊v在线免费观看| 欧美猛男gaygay网站| 成人av一区二区三区| 美女mm1313爽爽久久久蜜臀| 亚洲精品日产精品乱码不卡| 欧美激情一区三区| 精品国产制服丝袜高跟| 欧美视频在线一区二区三区 | 亚洲欧美偷拍卡通变态| 久久先锋影音av鲁色资源网| 日韩一区二区在线观看| 欧美吞精做爰啪啪高潮| 91尤物视频在线观看| av在线不卡电影| 成人精品电影在线观看| 国产成人8x视频一区二区 | 欧美日韩精品免费观看视频| 91日韩在线专区| 91蜜桃免费观看视频| av一区二区三区黑人| 成人黄色免费短视频| 国产盗摄视频一区二区三区| 国产精品主播直播| 国产v综合v亚洲欧| 白白色亚洲国产精品| 成人精品视频一区二区三区 | 欧美精品xxxxbbbb| 色一情一乱一乱一91av| 99精品国产热久久91蜜凸| 色综合久久久久久久| 在线视频综合导航| 欧美日韩亚洲综合一区 | 午夜成人免费电影| 男男视频亚洲欧美| 久久国内精品自在自线400部| 久久99蜜桃精品| 国产精品77777| 成人精品视频.| 91视视频在线观看入口直接观看www| 97se狠狠狠综合亚洲狠狠| 在线免费观看日本一区| 欧美日韩在线精品一区二区三区激情| 欧美日韩国产美| 欧美videos中文字幕| 国产亚洲综合av| 亚洲美女少妇撒尿| 亚洲v中文字幕| 精品影院一区二区久久久| 成人美女视频在线看| 欧亚洲嫩模精品一区三区| 日韩一区二区在线看片| 欧美高清在线一区| 亚洲国产精品尤物yw在线观看| 香蕉成人啪国产精品视频综合网| 蜜桃一区二区三区在线观看| 国产一区在线观看视频| 91在线视频播放| 在线观看国产一区二区| 欧美亚州韩日在线看免费版国语版 | 国产清纯白嫩初高生在线观看91 | 亚洲丝袜自拍清纯另类| 亚洲成av人影院| 国内精品国产成人| 99久久精品久久久久久清纯| 欧美精品成人一区二区三区四区| 欧美精品一区二区精品网| 亚洲狼人国产精品| 激情五月激情综合网| 色婷婷综合久久久久中文| www亚洲一区| 亚洲综合在线第一页| 国产做a爰片久久毛片| 欧美在线免费播放| 国产视频911| 免费成人av在线| 日本大香伊一区二区三区| 精品对白一区国产伦| 亚洲在线中文字幕| 成人毛片视频在线观看| 欧美色大人视频| 国产精品素人视频| 日本亚洲天堂网| 97久久久精品综合88久久| 日韩免费观看2025年上映的电影| 国产精品久久午夜夜伦鲁鲁| 男女激情视频一区| 99r国产精品| 国产欧美日韩三区| 麻豆91在线看| 欧美午夜在线观看| 中文字幕一区二| 不卡一卡二卡三乱码免费网站| 欧美成人福利视频| 亚洲视频 欧洲视频| 国产美女精品在线| 精品1区2区在线观看| 毛片av中文字幕一区二区| 欧美日韩免费观看一区二区三区| 国产精品午夜免费| 秋霞av亚洲一区二区三| 日本电影欧美片| 亚洲视频在线观看一区| 成人免费电影视频| 久久夜色精品国产欧美乱极品| 免费在线观看一区| 欧美日韩国产a| 亚洲va天堂va国产va久| 在线精品亚洲一区二区不卡| 亚洲精品伦理在线| 91丨porny丨户外露出| 综合电影一区二区三区| 成人综合婷婷国产精品久久蜜臀| 精品粉嫩超白一线天av| 国内精品视频一区二区三区八戒| 欧美videossexotv100| 男人的天堂久久精品| 91精品国产欧美一区二区18| 日韩av电影一区| 欧美精品国产精品| 久久精品国产999大香线蕉| 日韩一区二区麻豆国产| 六月婷婷色综合| 久久久久久久久97黄色工厂| 国产999精品久久| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 亚洲欧洲日韩女同| 99精品视频在线观看| 亚洲一区二区三区四区在线 | 精品亚洲欧美一区| 欧美性三三影院| 伦理电影国产精品|