j2ee协会吧 关注:77贴子:625
  • 0回复贴,共1

帮忙翻译Java代码,谢谢

只看楼主收藏回复

package gov.handson.corpmsgclient.commonform;
/**
* <code>AboutPanel</code>类用于绘制关于面板
* @author handson
* @version 1.0, 05/15/06
*/
public class AboutPanel extends javax.swing.JPanel {
/** Creates new form AboutPanel */
public AboutPanel() {
initComponents();
aboutpicPanel.setImage(getClass().getResource("/imgs/about.gif"));
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
BEGIN:initComponents
private void initComponents()
{
aboutpicPanel = new gov.handson.corpmsgclient.commonform.PicPanel();
org.jdesktop.layout.GroupLayout aboutpicPanelLayout = new org.jdesktop.layout.GroupLayout(aboutpicPanel);
aboutpicPanel.setLayout(aboutpicPanelLayout);
aboutpicPanelLayout.setHorizontalGroup(
aboutpicPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(0, 255, Short.MAX_VALUE)
);
aboutpicPanelLayout.setVerticalGroup(
aboutpicPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(0, 166, Short.MAX_VALUE)
);
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(aboutpicPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(aboutpicPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
}
private gov.handson.corpmsgclient.commonform.PicPanel aboutpicPanel;
}


1楼2016-11-23 17:34回复