📄 vojxtadialogview.java
字号:
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; 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);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -