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

📄 vojxtadialogview.java

📁 Myjxta的源代码 基于JXTA的P2P即时通信系统
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        encodedBlockSizeLabel = new JLabel("");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 1;        gbc.gridy = 5;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints(encodedBlockSizeLabel, gbc);        speexPanel.add(encodedBlockSizeLabel);        label = new JLabel(STRINGS.getString("label.vojxta.compressionratio"));        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;        speexGbl.setConstraints(label, gbc);        speexPanel.add(label);        compressionRatioLabel = new JLabel("0 : 1");        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;        speexGbl.setConstraints(compressionRatioLabel, gbc);        speexPanel.add(compressionRatioLabel);        label = new JLabel(STRINGS.getString("label.vojxta.pcmbuffersize"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = 7;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints(label, gbc);        speexPanel.add(label);        pcmBufferSizeLabel = new JLabel("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 1;        gbc.gridy = 7;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints(pcmBufferSizeLabel, gbc);        speexPanel.add(pcmBufferSizeLabel);        label = new JLabel(STRINGS.getString("label.vojxta.sourcelineavailable"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = 8;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints(label, gbc);        speexPanel.add(label);        sourceLineAvailableLabel = new JLabel("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 1;        gbc.gridy = 8;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints(sourceLineAvailableLabel, gbc);        speexPanel.add(sourceLineAvailableLabel);        // chrono panel        JPanel chronoPanel = new JPanel();        chronoPanel.setBorder(new TitledBorder(null, STRINGS.getString("label.vojxta.chronometer"),                TitledBorder.CENTER, TitledBorder.CENTER));        GridBagLayout chronoGbl = new GridBagLayout();        chronoPanel.setLayout(chronoGbl);        label = new JLabel(STRINGS.getString("label.vojxta.callstarttime"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 0;        gbc.gridy = 0;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        chronoGbl.setConstraints(label, gbc);        chronoPanel.add(label);        callStartTimeLabel = new JLabel("");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 0;        gbc.gridy = 1;        gbc.insets = new Insets(3, 15, 3, 3);        ;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        chronoGbl.setConstraints(callStartTimeLabel, gbc);        chronoPanel.add(callStartTimeLabel);        label = new JLabel(STRINGS.getString("label.vojxta.elapsedtime"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 0;        gbc.gridy = 2;        gbc.insets = new Insets(10, 3, 3, 3);        ;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        chronoGbl.setConstraints(label, gbc);        chronoPanel.add(label);        callElapsedTimeLabel = new JLabel("");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 0;        gbc.gridy = 3;        gbc.insets = new Insets(3, 15, 3, 3);        ;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        chronoGbl.setConstraints(callElapsedTimeLabel, gbc);        chronoPanel.add(callElapsedTimeLabel);        label = new JLabel(STRINGS.getString("label.vojxta.callendtime"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        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 = 1;        chronoGbl.setConstraints(label, gbc);        chronoPanel.add(label);        callEndTimeLabel = new JLabel("");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 0;        gbc.gridy = 5;        gbc.insets = new Insets(3, 15, 3, 3);        ;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        chronoGbl.setConstraints(callEndTimeLabel, gbc);        chronoPanel.add(callEndTimeLabel);        // buffers panel        JPanel bufferPanel = new JPanel();        bufferPanel.setBorder(new TitledBorder(null, STRINGS.getString("label.vojxta.buffers"),                TitledBorder.CENTER, TitledBorder.CENTER));        GridBagLayout bufferGbl = new GridBagLayout();        bufferPanel.setLayout(bufferGbl);        label = new JLabel(STRINGS.getString("label.vojxta.incoming"));        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;        bufferGbl.setConstraints(label, gbc);        bufferPanel.add(label);        label = new JLabel(STRINGS.getString("label.vojxta.outgoing"));        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;        bufferGbl.setConstraints(label, gbc);        bufferPanel.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;        bufferGbl.setConstraints(sep, gbc);        bufferPanel.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;        bufferGbl.setConstraints(sep, gbc);        bufferPanel.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;        bufferGbl.setConstraints(sep, gbc);        bufferPanel.add(sep);        label = new JLabel("Size");        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;        bufferGbl.setConstraints(label, gbc);        bufferPanel.add(label);        incomingBufferSizeLabel = 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;        bufferGbl.setConstraints(incomingBufferSizeLabel, gbc);        bufferPanel.add(incomingBufferSizeLabel);        label = new JLabel(STRINGS.getString("label.vojxta.capacity"));        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;        bufferGbl.setConstraints(label, gbc);        bufferPanel.add(label);        incomingBufferCapacityLabel = new JLabel("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.CENTER;        gbc.gridx = 1;        gbc.gridy = 3;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        bufferGbl.setConstraints(incomingBufferCapacityLabel, gbc);        bufferPanel.add(incomingBufferCapacityLabel);        label = new JLabel(STRINGS.getString("label.vojxta.size"));        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;        bufferGbl.setConstraints(label, gbc);        bufferPanel.add(label);        outgoingBufferSizeLabel = new JLabel("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 3;        gbc.gridy = 2;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        bufferGbl.setConstraints(outgoingBufferSizeLabel, gbc);        bufferPanel.add(outgoingBufferSizeLabel);        label = new JLabel(STRINGS.getString("label.vojxta.capacity"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.CENTER;        gbc.gridx = 4;        gbc.gridy = 3;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        bufferGbl.setConstraints(label, gbc);        bufferPanel.add(label);        outgoingBufferCapacityLabel = new JLabel("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.CENTER;        gbc.gridx = 3;        gbc.gridy = 3;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        bufferGbl.setConstraints(outgoingBufferCapacityLabel, gbc);        bufferPanel.add(outgoingBufferCapacityLabel);/*              label = new JLabel ("Encoded Message Size");      gbc.fill = gbc.NONE;      gbc.anchor = gbc.CENTER;      gbc.gridx = 0;      gbc.gridy = gridY;      gbc.insets = subComponentInsets;      gbc.weightx = 1;      gbc.weighty = 1;      gbc.gridheight = 1;      gbc.gridwidth = 1;      gbl.setConstraints (label, gbc);      statsPanel.add (label);      encodedMessageSizeLabel = new JLabel ("");      gbc.fill = gbc.NONE;      gbc.anchor = gbc.CENTER;      gbc.gridx = 1;      gbc.gridy = gridY++;      gbc.insets = subComponentInsets;      gbc.weightx = 1;      gbc.weighty = 1;      gbc.gridheight = 1;      gbc.gridwidth = 1;      gbl.setConstraints (encodedMessageSizeLabel, gbc);      statsPanel.add (encodedMessageSizeLabel);      outgoingMessageSizeSlider = new JSlider (SwingConstants.HORIZONTAL);      gbc.fill = gbc.HORIZONTAL;      gbc.anchor = gbc.CENTER;      gbc.gridx = 0;      gbc.gridy = gridY++;      gbc.insets = subComponentInsets;      gbc.weightx = 1;      gbc.weighty = 1;      gbc.gridheight = 1;      gbc.gridwidth = 1;      outgoingMessageSizeSlider.setEnabled(false);      speakerVolumeSlider.setSnapToTicks (false);      outgoingMessageSizeSlider.addChangeListener (new ChangeListener () {          public void stateChanged (ChangeEvent e) {              // TODO :              localActionOutgoingMessageSizeAdjusted (outgoingMessageSizeSlider.getValue ());          }      });      gbl.setConstraints (outgoingMessageSizeSlider, gbc);      statsPanel.add (outgoingMessageSizeSlider);      label = new JLabel ("Outgoing Message Size");      gbc.fill = gbc.NONE;      gbc.anchor = gbc.CENTER;      gbc.gridx = 0;      gbc.gridy = gridY;      gbc.insets = subComponentInsets;      gbc.weightx = 1;      gbc.weighty = 1;      gbc.gridheight = 1;      gbc.gridwidth = 1;      gbl.setConstraints (label, gbc);      statsPanel.add (label);      outgoingMessageSizeSliderValueLabel = new JLabel ("0");      gbc.fill = gbc.NONE;      gbc.anchor 

⌨️ 快捷键说明

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