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

📄 vojxtadialogpanel.java

📁 jxta官方例程
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        speexGbl.setConstraints (label, gbc);        speexPanel.add (label);                averageDecodeTimeLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 1;        gbc.gridy = 1;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints (averageDecodeTimeLabel, gbc);        speexPanel.add (averageDecodeTimeLabel);                sep = new JSeparator(SwingConstants.HORIZONTAL);        gbc.fill = gbc.HORIZONTAL;        gbc.anchor = gbc.CENTER;        gbc.gridx = 0;        gbc.gridy = 2;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 2;        speexGbl.setConstraints (sep, gbc);        speexPanel.add (sep);                   label = new JLabel (STRINGS.getString ("label.vojxta.encodequality"));        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;        speexGbl.setConstraints (label, gbc);        speexPanel.add (label);                qualityLabel = new JLabel ("0");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 1;        gbc.gridy = 3;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints (qualityLabel, gbc);        speexPanel.add (qualityLabel);                label = new JLabel (STRINGS.getString ("label.vojxta.pcmblocksize"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = 4;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints (label, gbc);        speexPanel.add (label);                audioBlockSizeLabel = new JLabel ("");        gbc.fill = gbc.NONE;        gbc.anchor = gbc.WEST;        gbc.gridx = 1;        gbc.gridy = 4;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints (audioBlockSizeLabel, gbc);        speexPanel.add (audioBlockSizeLabel);        label = new JLabel (STRINGS.getString ("label.vojxta.encodedblocksize"));        gbc.fill = gbc.NONE;        gbc.anchor = gbc.EAST;        gbc.gridx = 0;        gbc.gridy = 5;        gbc.insets = subComponentInsets;        gbc.weightx = 1;        gbc.weighty = 1;        gbc.gridheight = 1;        gbc.gridwidth = 1;        speexGbl.setConstraints (label, gbc);        speexPanel.add (label);                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);     

⌨️ 快捷键说明

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