⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vojxtadialogpanel.java

📁 jxta官方例程
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        trafficPanel.setBorder (new TitledBorder(null,STRINGS.getString ("label.vojxta.traffic"),                 TitledBorder.CENTER,TitledBorder.CENTER));        GridBagLayout trafficGbl = new GridBagLayout ();        trafficPanel.setLayout(trafficGbl);                        label = new JLabel (STRINGS.getString ("label.vojxta.sent"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.CENTER;        gbc.gridx = 0;        gbc.gridy = 0;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 2;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                        label = new JLabel (STRINGS.getString ("label.vojxta.received"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.CENTER;        gbc.gridx = 3;        gbc.gridy = 0;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 2;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                        sep = new JSeparator(SwingConstants.HORIZONTAL);        gbc.fill = gbc.HORIZONTAL;        gbc.anchor = gbc.CENTER;        gbc.gridx = 0;        gbc.gridy = 1;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 2;        trafficGbl.setConstraints (sep, gbc);        trafficPanel.add (sep);                        sep = new JSeparator(SwingConstants.HORIZONTAL);        gbc.fill = gbc.HORIZONTAL;        gbc.anchor = gbc.CENTER;        gbc.gridx = 3;        gbc.gridy = 1;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 2;        trafficGbl.setConstraints (sep, gbc);        trafficPanel.add (sep);                   sep = new JSeparator(SwingConstants.VERTICAL);        gbc.fill = gbc.VERTICAL;        gbc.anchor = gbc.CENTER;        gbc.gridx = 2;        gbc.gridy = 1;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 3;        gbc.gridwidth = 1;        trafficGbl.setConstraints (sep, gbc);        trafficPanel.add (sep);                        label = new JLabel (STRINGS.getString ("label.vojxta.messages"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = 2;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                messagesSentLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 1;        gbc.gridy = 2;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (messagesSentLabel, gbc);        trafficPanel.add (messagesSentLabel);                label = new JLabel (STRINGS.getString ("label.vojxta.bytes"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = 3;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                bytesSentLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 1;        gbc.gridy = 3;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (bytesSentLabel, gbc);        trafficPanel.add (bytesSentLabel);                label = new JLabel (STRINGS.getString ("label.vojxta.messages"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 4;        gbc.gridy = 2;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                messagesReceivedLabel = new JLabel ("0");        gbc.fill = gbc.WEST;        gbc.anchor = gbc.CENTER;        gbc.gridx = 3;        gbc.gridy = 2;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (messagesReceivedLabel, gbc);        trafficPanel.add (messagesReceivedLabel);                label = new JLabel (STRINGS.getString ("label.vojxta.bytes"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 4;        gbc.gridy = 3;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                bytesReceivedLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 3;        gbc.gridy = 3;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (bytesReceivedLabel, gbc);        trafficPanel.add (bytesReceivedLabel);                label = new JLabel (STRINGS.getString ("label.vojxta.messagespersecond"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.CENTER;        gbc.gridx = 0;        gbc.gridy = 4;        gbc.insets = new Insets(10, 3, 3 ,3);        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 5;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                sep = new JSeparator(SwingConstants.HORIZONTAL);        gbc.fill = gbc.HORIZONTAL;        gbc.anchor = gbc.CENTER;        gbc.gridx = 0;        gbc.gridy = 5;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 5;        trafficGbl.setConstraints (sep, gbc);        trafficPanel.add (sep);                   sep = new JSeparator(SwingConstants.VERTICAL);        gbc.fill = gbc.VERTICAL;        gbc.anchor = gbc.CENTER;        gbc.gridx = 2;        gbc.gridy = 6;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (sep, gbc);        trafficPanel.add (sep);                   label = new JLabel (STRINGS.getString ("label.vojxta.incoming"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = 6;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                incomingMessagesPerSecondLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 1;        gbc.gridy = 6;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (incomingMessagesPerSecondLabel, gbc);        trafficPanel.add (incomingMessagesPerSecondLabel);                label = new JLabel (STRINGS.getString ("label.vojxta.outgoing"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 4;        gbc.gridy = 6;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                outgoingMessagesPerSecondLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 3;        gbc.gridy = 6;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (outgoingMessagesPerSecondLabel, gbc);        trafficPanel.add (outgoingMessagesPerSecondLabel);               label = new JLabel (STRINGS.getString ("label.vojxta.bytespersecond"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.CENTER;        gbc.gridx = 0;        gbc.gridy = 7;        gbc.insets = new Insets(10, 3, 3 ,3);        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 5;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                sep = new JSeparator(SwingConstants.HORIZONTAL);        gbc.fill = gbc.HORIZONTAL;        gbc.anchor = gbc.CENTER;        gbc.gridx = 0;        gbc.gridy = 8;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 5;        trafficGbl.setConstraints (sep, gbc);        trafficPanel.add (sep);                   sep = new JSeparator(SwingConstants.VERTICAL);        gbc.fill = gbc.VERTICAL;        gbc.anchor = gbc.CENTER;        gbc.gridx = 2;        gbc.gridy = 8;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 2;        gbc.gridwidth = 1;        trafficGbl.setConstraints (sep, gbc);        trafficPanel.add (sep);                   label = new JLabel (STRINGS.getString ("label.vojxta.incoming"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = 9;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                incomingBytesPerSecondLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 1;        gbc.gridy = 9;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (incomingBytesPerSecondLabel, gbc);        trafficPanel.add (incomingBytesPerSecondLabel);                label = new JLabel (STRINGS.getString ("label.vojxta.outgoing"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 4;        gbc.gridy = 9;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (label, gbc);        trafficPanel.add (label);                outgoingBytesPerSecondLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 3;        gbc.gridy = 9;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        trafficGbl.setConstraints (outgoingBytesPerSecondLabel, gbc);        trafficPanel.add (outgoingBytesPerSecondLabel);                                // speex panel        JPanel speexPanel = new JPanel();        speexPanel.setBorder (new TitledBorder(null,STRINGS.getString ("label.vojxta.jspeex"),                 TitledBorder.CENTER,TitledBorder.CENTER));        GridBagLayout speexGbl = new GridBagLayout ();        speexPanel.setLayout(speexGbl);                        label = new JLabel (STRINGS.getString ("label.vojxta.averageencodetime"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = gridY;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints (label, gbc);        speexPanel.add (label);                averageEncodeTimeLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 1;        gbc.gridy = 0;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints (averageEncodeTimeLabel, gbc);        speexPanel.add (averageEncodeTimeLabel);                label = new JLabel (STRINGS.getString ("label.vojxta.averagedecodetime"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = 1;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -