Commit 0f807488 authored by duanledexianxianxian's avatar duanledexianxianxian 😁

add doc

parent 5d66c57c
...@@ -8,24 +8,30 @@ ...@@ -8,24 +8,30 @@
<properties/> <properties/>
<border type="none"/> <border type="none"/>
<children> <children>
<component id="b96c4" class="javax.swing.JTextField" binding="textField1" default-binding="true"> <component id="6b745" class="javax.swing.JButton" binding="button1" default-binding="true">
<constraints> <constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false"> <grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
<preferred-size width="150" height="-1"/>
</grid>
</constraints> </constraints>
<properties/> <properties>
<text value="Button"/>
</properties>
</component> </component>
<hspacer id="f7a5d"> <component id="c0e42" class="javax.swing.JLabel">
<constraints> <constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/> <grid row="0" column="0" row-span="2" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
</hspacer> <properties>
<vspacer id="529eb"> <text value="姓名"/>
</properties>
</component>
<component id="b96c4" class="javax.swing.JTextField" binding="username">
<constraints> <constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/> <grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints> </constraints>
</vspacer> <properties/>
</component>
</children> </children>
</grid> </grid>
</form> </form>
...@@ -8,5 +8,7 @@ import javax.swing.*; ...@@ -8,5 +8,7 @@ import javax.swing.*;
* @since 1.0.0 * @since 1.0.0
*/ */
public class MybatisConfigForum { public class MybatisConfigForum {
private JTextField textField1; private JTextField username;
private JButton button1;
private JPanel jPanel;
} }
/*
* Created by JFormDesigner on Wed Oct 16 13:51:55 CST 2019
*/
package com.duanledexianxianxian.plugin.idea.ui;
import java.awt.*;
import javax.swing.*;
/**
* @author china
*/
public class Test extends JFrame {
public Test() {
initComponents();
}
private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
// Generated using JFormDesigner Evaluation license - unknown
panel1 = new JPanel();
panel2 = new JPanel();
panel3 = new JPanel();
panel4 = new JPanel();
panel5 = new JPanel();
label1 = new JLabel();
textField1 = new JTextField();
//======== this ========
Container contentPane = getContentPane();
contentPane.setLayout(new BorderLayout(10, 10));
//======== panel1 ========
{
panel1.setBorder (new javax. swing. border. CompoundBorder( new javax .swing .border .TitledBorder (new javax. swing. border. EmptyBorder
( 0, 0, 0, 0) , "JF\u006frmDesi\u0067ner Ev\u0061luatio\u006e", javax. swing. border. TitledBorder. CENTER, javax. swing. border
. TitledBorder. BOTTOM, new java .awt .Font ("Dialo\u0067" ,java .awt .Font .BOLD ,12 ), java. awt
. Color. red) ,panel1. getBorder( )) ); panel1. addPropertyChangeListener (new java. beans. PropertyChangeListener( ){ @Override public void
propertyChange (java .beans .PropertyChangeEvent e) {if ("borde\u0072" .equals (e .getPropertyName () )) throw new RuntimeException( )
; }} );
panel1.setLayout(new BorderLayout());
}
contentPane.add(panel1, BorderLayout.NORTH);
//======== panel2 ========
{
panel2.setLayout(new BorderLayout());
}
contentPane.add(panel2, BorderLayout.WEST);
//======== panel3 ========
{
panel3.setLayout(new BorderLayout());
}
contentPane.add(panel3, BorderLayout.EAST);
//======== panel4 ========
{
panel4.setLayout(new BorderLayout());
}
contentPane.add(panel4, BorderLayout.SOUTH);
//======== panel5 ========
{
panel5.setLayout(new GridLayout(1, 2, 100, 100));
//---- label1 ----
label1.setText("text");
panel5.add(label1);
panel5.add(textField1);
}
contentPane.add(panel5, BorderLayout.CENTER);
pack();
setLocationRelativeTo(getOwner());
// JFormDesigner - End of component initialization //GEN-END:initComponents
}
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
// Generated using JFormDesigner Evaluation license - unknown
private JPanel panel1;
private JPanel panel2;
private JPanel panel3;
private JPanel panel4;
private JPanel panel5;
private JLabel label1;
private JTextField textField1;
// JFormDesigner - End of variables declaration //GEN-END:variables
}
JFDML JFormDesigner: "7.0.0.6.255" Java: "1.8.0_202-release" encoding: "UTF-8"
new FormModel {
contentType: "form/swing"
root: new FormRoot {
add( new FormWindow( "javax.swing.JFrame", new FormLayoutManager( class java.awt.BorderLayout ) {
"hgap": 10
"vgap": 10
} ) {
name: "this"
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "panel1"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "North"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "panel2"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "West"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "panel3"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "East"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "panel4"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "South"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.GridLayout ) {
"columns": 2
"vgap": 100
"hgap": 100
} ) {
name: "panel5"
add( new FormComponent( "javax.swing.JLabel" ) {
name: "label1"
"text": "text"
} )
add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField1"
} )
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "Center"
} )
}, new FormLayoutConstraints( null ) {
"location": new java.awt.Point( 0, 0 )
"size": new java.awt.Dimension( 475, 365 )
} )
}
}
/*
* Created by JFormDesigner on Wed Oct 16 14:07:57 CST 2019
*/
package com.duanledexianxianxian.plugin.idea.ui;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
/**
* @author china
*/
public class Test1 extends JFrame {
public Test1() {
initComponents();
}
private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
// Generated using JFormDesigner Evaluation license - unknown
dialogPane = new JPanel();
contentPanel = new JPanel();
buttonBar = new JPanel();
okButton = new JButton();
cancelButton = new JButton();
//======== this ========
Container contentPane = getContentPane();
contentPane.setLayout(new BorderLayout());
//======== dialogPane ========
{
dialogPane.setBorder(new EmptyBorder(12, 12, 12, 12));
dialogPane.setBorder (new javax. swing. border. CompoundBorder( new javax .swing .border .TitledBorder (new javax. swing. border.
EmptyBorder( 0, 0, 0, 0) , "JFor\u006dDesi\u0067ner \u0045valu\u0061tion", javax. swing. border. TitledBorder. CENTER, javax. swing
. border. TitledBorder. BOTTOM, new java .awt .Font ("Dia\u006cog" ,java .awt .Font .BOLD ,12 ),
java. awt. Color. red) ,dialogPane. getBorder( )) ); dialogPane. addPropertyChangeListener (new java. beans. PropertyChangeListener( )
{ @Override public void propertyChange (java .beans .PropertyChangeEvent e) {if ("bord\u0065r" .equals (e .getPropertyName () ))
throw new RuntimeException( ); }} );
dialogPane.setLayout(new BorderLayout());
//======== contentPanel ========
{
contentPanel.setLayout(new BorderLayout());
}
dialogPane.add(contentPanel, BorderLayout.CENTER);
//======== buttonBar ========
{
buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));
buttonBar.setLayout(new GridBagLayout());
((GridBagLayout)buttonBar.getLayout()).columnWidths = new int[] {0, 85, 80};
((GridBagLayout)buttonBar.getLayout()).columnWeights = new double[] {1.0, 0.0, 0.0};
//---- okButton ----
okButton.setText("OK");
buttonBar.add(okButton, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 5), 0, 0));
//---- cancelButton ----
cancelButton.setText("Cancel");
buttonBar.add(cancelButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 0), 0, 0));
}
dialogPane.add(buttonBar, BorderLayout.SOUTH);
}
contentPane.add(dialogPane, BorderLayout.CENTER);
pack();
setLocationRelativeTo(getOwner());
// JFormDesigner - End of component initialization //GEN-END:initComponents
}
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
// Generated using JFormDesigner Evaluation license - unknown
private JPanel dialogPane;
private JPanel contentPanel;
private JPanel buttonBar;
private JButton okButton;
private JButton cancelButton;
// JFormDesigner - End of variables declaration //GEN-END:variables
}
JFDML JFormDesigner: "7.0.0.6.255" Java: "1.8.0_202-release" encoding: "UTF-8"
new FormModel {
contentType: "form/swing"
root: new FormRoot {
add( new FormWindow( "javax.swing.JFrame", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "this"
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "dialogPane"
"border": new javax.swing.border.EmptyBorder( 12, 12, 12, 12 )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "contentPanel"
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "Center"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.GridBagLayout ) {
"$columnSpecs": "0:1.0, 80, 80"
"$rowSpecs": "0"
"$hGap": 5
"$vGap": 5
} ) {
name: "buttonBar"
"border": new javax.swing.border.EmptyBorder( 12, 0, 0, 0 )
add( new FormComponent( "javax.swing.JButton" ) {
name: "okButton"
"text": "OK"
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) {
"gridx": 1
"gridy": 0
} )
add( new FormComponent( "javax.swing.JButton" ) {
name: "cancelButton"
"text": "Cancel"
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) {
"gridx": 2
"gridy": 0
} )
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "South"
} )
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "Center"
} )
}, new FormLayoutConstraints( null ) {
"location": new java.awt.Point( 0, 0 )
"size": new java.awt.Dimension( 715, 540 )
} )
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment