First commit
This commit is contained in:
commit
67b9ec0df1
64 changed files with 3257 additions and 0 deletions
1
.idea/description.html
generated
Normal file
1
.idea/description.html
generated
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
|
||||||
12
.idea/misc.xml
generated
Normal file
12
.idea/misc.xml
generated
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="EntryPointsManager">
|
||||||
|
<entry_points version="2.0" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectKey">
|
||||||
|
<option name="state" value="project://e2804f05-5315-4fc6-a121-c522a6c26470" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
10
.idea/modules.xml
generated
Normal file
10
.idea/modules.xml
generated
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/Client/Client.iml" filepath="$PROJECT_DIR$/Client/Client.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/Server/Server.iml" filepath="$PROJECT_DIR$/Server/Server.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/TextTwist.iml" filepath="$PROJECT_DIR$/TextTwist.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
3
.idea/project-template.xml
generated
Normal file
3
.idea/project-template.xml
generated
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<template>
|
||||||
|
<input-field default="com.company">IJ_BASE_PACKAGE</input-field>
|
||||||
|
</template>
|
||||||
124
.idea/uiDesigner.xml
generated
Normal file
124
.idea/uiDesigner.xml
generated
Normal file
|
|
@ -0,0 +1,124 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Palette2">
|
||||||
|
<group name="Swing">
|
||||||
|
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Button" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="RadioButton" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="CheckBox" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Label" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||||
|
<preferred-size width="-1" height="20" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
</group>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
1270
.idea/workspace.xml
generated
Normal file
1270
.idea/workspace.xml
generated
Normal file
File diff suppressed because it is too large
Load diff
12
Client/Client.iml
Normal file
12
Client/Client.iml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
BIN
Client/resources/fonts/DK Trained Monkey.otf
Normal file
BIN
Client/resources/fonts/DK Trained Monkey.otf
Normal file
Binary file not shown.
BIN
Client/resources/images/logo.png
Normal file
BIN
Client/resources/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
25
Client/src/com/texttwist/client/Main.java
Normal file
25
Client/src/com/texttwist/client/Main.java
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.texttwist.client;
|
||||||
|
import com.texttwist.client.pages.*;
|
||||||
|
|
||||||
|
import java.awt.*;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
public class Main {
|
||||||
|
|
||||||
|
public static void main(String[] args) throws IOException {
|
||||||
|
System.out.println("Client started");
|
||||||
|
|
||||||
|
//Load fonts
|
||||||
|
try {
|
||||||
|
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
|
||||||
|
ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, new File(
|
||||||
|
new File("./Client/resources/fonts/DK Trained Monkey.otf").getCanonicalPath())));
|
||||||
|
|
||||||
|
} catch (IOException|FontFormatException e) {
|
||||||
|
System.out.println("Font non caricato correttamente");
|
||||||
|
}
|
||||||
|
|
||||||
|
Entrypoint entrypoint = new Entrypoint();
|
||||||
|
}
|
||||||
|
}
|
||||||
25
Client/src/com/texttwist/client/constants/Palette.java
Normal file
25
Client/src/com/texttwist/client/constants/Palette.java
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.texttwist.client.constants;
|
||||||
|
|
||||||
|
import java.awt.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class Palette {
|
||||||
|
public static Color root_backgroundColor = new Color(145,181,88);
|
||||||
|
public static Color inputBox_backgroundColor = new Color(250,250,250); //"#FAFAFA;
|
||||||
|
public static Color button_backgroundColor = new Color(105,130,63); //#69823f
|
||||||
|
public static Font inputBox_font = new Font("DK Trained Monkey", Font.BOLD, 26);
|
||||||
|
public static Font password_font = new Font("Arial Black", Font.BOLD, 26);
|
||||||
|
public static Color fontColor = new Color(95,0,0);
|
||||||
|
public static Color registerLblBtn_color = new Color(95,0,0);
|
||||||
|
public static Color registerLblBtn_onmouseover_color = new Color(95,0,0, 127);
|
||||||
|
public static Color registerLblBtn_onmouseclick_color = new Color(53,66,32);
|
||||||
|
|
||||||
|
|
||||||
|
public static Font button_font = new Font("DK Trained Monkey", Font.BOLD, 30);
|
||||||
|
|
||||||
|
public Palette() {
|
||||||
|
//TODO fetchare dal server questi dati
|
||||||
|
}
|
||||||
|
}
|
||||||
29
Client/src/com/texttwist/client/pages/Entrypoint.java
Normal file
29
Client/src/com/texttwist/client/pages/Entrypoint.java
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.texttwist.client.pages;
|
||||||
|
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
import com.texttwist.client.ui.TTContainer;
|
||||||
|
import com.texttwist.client.ui.TTImage;
|
||||||
|
import oracle.jrockit.jfr.JFR;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class Entrypoint extends JFrame {
|
||||||
|
|
||||||
|
protected TTContainer root;
|
||||||
|
|
||||||
|
public Entrypoint(){
|
||||||
|
setPreferredSize( new Dimension( 640, 480 ));
|
||||||
|
setSize(new Dimension(640,480));
|
||||||
|
setLocation(100,100);
|
||||||
|
setResizable( false );
|
||||||
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
|
||||||
|
Home home = new Home(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
66
Client/src/com/texttwist/client/pages/Home.java
Normal file
66
Client/src/com/texttwist/client/pages/Home.java
Normal file
|
|
@ -0,0 +1,66 @@
|
||||||
|
package com.texttwist.client.pages;
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
import com.texttwist.client.ui.*;
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.util.concurrent.Callable;
|
||||||
|
|
||||||
|
public class Home extends Page {
|
||||||
|
|
||||||
|
private TTContainer loginDataContainer;
|
||||||
|
private TTContainer logoContainer;
|
||||||
|
|
||||||
|
public Home(JFrame window) {
|
||||||
|
super(window);
|
||||||
|
createUIComponents();
|
||||||
|
window.setVisible(true);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void createUIComponents(){
|
||||||
|
addLogo(root);
|
||||||
|
|
||||||
|
loginDataContainer = new TTContainer(
|
||||||
|
null,
|
||||||
|
new Dimension(1150,250),
|
||||||
|
Palette.root_backgroundColor,
|
||||||
|
-1,
|
||||||
|
root);
|
||||||
|
|
||||||
|
TTInputField usernameField = new TTInputField(
|
||||||
|
new Point(70,60),
|
||||||
|
new Dimension(210,50),
|
||||||
|
"Username",
|
||||||
|
loginDataContainer);
|
||||||
|
TTPasswordField passwordField = new TTPasswordField(
|
||||||
|
new Point(290,60),
|
||||||
|
new Dimension(210,50),
|
||||||
|
loginDataContainer);
|
||||||
|
TTButton loginBtn = new TTButton(
|
||||||
|
new Point(70,120),
|
||||||
|
new Dimension(430,50),
|
||||||
|
"Go!",
|
||||||
|
loginDataContainer);
|
||||||
|
TTLabel registerText = new TTLabel(
|
||||||
|
new Point(70,200),
|
||||||
|
new Dimension(350,50),
|
||||||
|
"Don't have an account?",
|
||||||
|
new Font(Palette.inputBox_font.getFontName(), Font.ITALIC, 24),
|
||||||
|
null,
|
||||||
|
loginDataContainer);
|
||||||
|
TTLabelBtn registerField = new TTLabelBtn(
|
||||||
|
new Point(360, 200),
|
||||||
|
new Dimension(210, 50),
|
||||||
|
"Register!",
|
||||||
|
new Font(Palette.inputBox_font.getFontName(), Font.BOLD, 34),
|
||||||
|
null,
|
||||||
|
new Callable<Page>() {
|
||||||
|
@Override
|
||||||
|
public Page call() throws Exception {
|
||||||
|
return new Register(Page.window);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
loginDataContainer);
|
||||||
|
}
|
||||||
|
}
|
||||||
57
Client/src/com/texttwist/client/pages/Page.java
Normal file
57
Client/src/com/texttwist/client/pages/Page.java
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
package com.texttwist.client.pages;
|
||||||
|
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
import com.texttwist.client.ui.TTContainer;
|
||||||
|
import com.texttwist.client.ui.TTImage;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class Page {
|
||||||
|
|
||||||
|
public TTContainer root;
|
||||||
|
public static JFrame window;
|
||||||
|
|
||||||
|
public Page(JFrame window){
|
||||||
|
this.window = window;
|
||||||
|
|
||||||
|
window.getContentPane().removeAll();
|
||||||
|
window.repaint();
|
||||||
|
window.revalidate();
|
||||||
|
|
||||||
|
root = new TTContainer(
|
||||||
|
new Point(40,20),
|
||||||
|
new Dimension(0,0),
|
||||||
|
Palette.root_backgroundColor,
|
||||||
|
BoxLayout.Y_AXIS,
|
||||||
|
null);
|
||||||
|
window.add(root);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void createUIComponents(){}
|
||||||
|
|
||||||
|
public void addLogo(TTContainer parent) {
|
||||||
|
TTContainer container = new TTContainer(
|
||||||
|
null,
|
||||||
|
new Dimension(1150, 150),
|
||||||
|
Palette.root_backgroundColor,
|
||||||
|
-1,
|
||||||
|
parent);
|
||||||
|
|
||||||
|
try {
|
||||||
|
TTImage logoImg = new TTImage(
|
||||||
|
new Point(0, 10),
|
||||||
|
new Dimension(1150, 150),
|
||||||
|
new ImageIcon(new File("./Client/resources/images/logo.png").getCanonicalPath()),
|
||||||
|
container);
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
21
Client/src/com/texttwist/client/pages/Register.java
Normal file
21
Client/src/com/texttwist/client/pages/Register.java
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
package com.texttwist.client.pages;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class Register extends Page {
|
||||||
|
|
||||||
|
public Register(JFrame window) {
|
||||||
|
super(window);
|
||||||
|
createUIComponents();
|
||||||
|
window.setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void createUIComponents() {
|
||||||
|
addLogo(root);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
28
Client/src/com/texttwist/client/ui/TTButton.java
Normal file
28
Client/src/com/texttwist/client/ui/TTButton.java
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.texttwist.client.ui;
|
||||||
|
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.event.MouseAdapter;
|
||||||
|
import java.awt.event.MouseEvent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class TTButton extends JButton{
|
||||||
|
|
||||||
|
public TTButton(Point position, Dimension dimension, String caption, JPanel parent) {
|
||||||
|
super();
|
||||||
|
|
||||||
|
setBackground(Palette.button_backgroundColor);
|
||||||
|
setFont(Palette.button_font);
|
||||||
|
setForeground(Palette.fontColor);
|
||||||
|
setBounds(position.x,position.y,dimension.width, dimension.height);
|
||||||
|
setPreferredSize(dimension);
|
||||||
|
setText(caption);
|
||||||
|
|
||||||
|
parent.add(this);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
33
Client/src/com/texttwist/client/ui/TTContainer.java
Normal file
33
Client/src/com/texttwist/client/ui/TTContainer.java
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.texttwist.client.ui;
|
||||||
|
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import javax.swing.border.EmptyBorder;
|
||||||
|
import java.awt.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class TTContainer extends JPanel{
|
||||||
|
|
||||||
|
public TTContainer(Point innerPadding, Dimension dimension, Color backgroundColor, int axis, TTContainer parent) {
|
||||||
|
super();
|
||||||
|
if(axis == -1){
|
||||||
|
setLayout(null);
|
||||||
|
} else {
|
||||||
|
setLayout(new BoxLayout(this, axis));
|
||||||
|
}
|
||||||
|
|
||||||
|
setBackground(backgroundColor != null ? backgroundColor : new Color(0,0,0,0));
|
||||||
|
setFont(Palette.inputBox_font);
|
||||||
|
setMaximumSize(dimension);
|
||||||
|
if(innerPadding != null) {
|
||||||
|
setLocation(innerPadding);
|
||||||
|
setBorder(new EmptyBorder(new Insets(innerPadding.y, innerPadding.x, dimension.width, dimension.height)));
|
||||||
|
}
|
||||||
|
if(parent != null) {
|
||||||
|
parent.add(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
29
Client/src/com/texttwist/client/ui/TTImage.java
Normal file
29
Client/src/com/texttwist/client/ui/TTImage.java
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.texttwist.client.ui;
|
||||||
|
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.event.MouseAdapter;
|
||||||
|
import java.awt.event.MouseEvent;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class TTImage extends JLabel{
|
||||||
|
|
||||||
|
public TTImage(Point position, Dimension dimension, ImageIcon image , JPanel parent) throws IOException {
|
||||||
|
super();
|
||||||
|
|
||||||
|
//setBackground(Palette.inputBox_backgroundColor);
|
||||||
|
//setFont(Palette.inputBox_font);
|
||||||
|
setBounds(position.x,position.y,dimension.width, dimension.height);
|
||||||
|
setPreferredSize(dimension);
|
||||||
|
setIcon(image);
|
||||||
|
|
||||||
|
parent.add(this);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
34
Client/src/com/texttwist/client/ui/TTInputBox.java
Normal file
34
Client/src/com/texttwist/client/ui/TTInputBox.java
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.texttwist.client.ui;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class TTInputBox extends JTextField {
|
||||||
|
|
||||||
|
public String placeholder;
|
||||||
|
|
||||||
|
public void setPlaceholder(final String s) {
|
||||||
|
placeholder = s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void paintComponent(final Graphics pG) {
|
||||||
|
super.paintComponent(pG);
|
||||||
|
|
||||||
|
if (placeholder.length() == 0 || getText().length() > 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Graphics2D g = (Graphics2D) pG;
|
||||||
|
g.setRenderingHint(
|
||||||
|
RenderingHints.KEY_ANTIALIASING,
|
||||||
|
RenderingHints.VALUE_ANTIALIAS_ON);
|
||||||
|
g.setColor(getDisabledTextColor());
|
||||||
|
g.drawString(placeholder, getInsets().left, pG.getFontMetrics()
|
||||||
|
.getMaxAscent() + getInsets().top);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
29
Client/src/com/texttwist/client/ui/TTInputField.java
Normal file
29
Client/src/com/texttwist/client/ui/TTInputField.java
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.texttwist.client.ui;
|
||||||
|
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.event.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class TTInputField extends TTInputBox{
|
||||||
|
|
||||||
|
public TTInputField(Point position, Dimension dimension, String placeholder, JPanel parent) {
|
||||||
|
super();
|
||||||
|
|
||||||
|
setBackground(Palette.inputBox_backgroundColor);
|
||||||
|
setFont(Palette.inputBox_font);
|
||||||
|
setBounds(position.x, position.y, dimension.width, dimension.height);
|
||||||
|
setPreferredSize(dimension);
|
||||||
|
setForeground(Palette.fontColor);
|
||||||
|
setPlaceholder(placeholder);
|
||||||
|
|
||||||
|
parent.add(this);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
39
Client/src/com/texttwist/client/ui/TTLabel.java
Normal file
39
Client/src/com/texttwist/client/ui/TTLabel.java
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.texttwist.client.ui;
|
||||||
|
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.event.MouseAdapter;
|
||||||
|
import java.awt.event.MouseEvent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class TTLabel extends JLabel{
|
||||||
|
|
||||||
|
public TTLabel(Point position, Dimension dimension, String caption, Font font, Color fontColor, JPanel parent) {
|
||||||
|
super();
|
||||||
|
|
||||||
|
setBackground(Palette.inputBox_backgroundColor);
|
||||||
|
|
||||||
|
if(font == null) {
|
||||||
|
setFont(Palette.inputBox_font);
|
||||||
|
} else {
|
||||||
|
setFont(font);
|
||||||
|
}
|
||||||
|
|
||||||
|
setBounds(position.x,position.y,dimension.width, dimension.height);
|
||||||
|
setPreferredSize(dimension);
|
||||||
|
setText(caption);
|
||||||
|
|
||||||
|
if(fontColor == null) {
|
||||||
|
setForeground(Palette.fontColor);
|
||||||
|
} else {
|
||||||
|
setForeground(fontColor);
|
||||||
|
}
|
||||||
|
|
||||||
|
parent.add(this);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
55
Client/src/com/texttwist/client/ui/TTLabelBtn.java
Normal file
55
Client/src/com/texttwist/client/ui/TTLabelBtn.java
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.texttwist.client.ui;
|
||||||
|
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
import com.texttwist.client.pages.Entrypoint;
|
||||||
|
import com.texttwist.client.pages.Page;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.event.MouseAdapter;
|
||||||
|
import java.awt.event.MouseEvent;
|
||||||
|
import java.util.concurrent.Callable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class TTLabelBtn extends TTLabel{
|
||||||
|
|
||||||
|
public TTLabelBtn(Point position, Dimension dimension, String caption, Font font, Color fontColor, Callable<Page> clickHandler, JPanel parent) {
|
||||||
|
super(position, dimension, caption, font, fontColor, parent);
|
||||||
|
|
||||||
|
setForeground(Palette.registerLblBtn_color);
|
||||||
|
addMouseListener(new MouseAdapter() {
|
||||||
|
@Override
|
||||||
|
public void mousePressed(MouseEvent e) {
|
||||||
|
super.mouseClicked(e);
|
||||||
|
setForeground(Palette.registerLblBtn_onmouseclick_color);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void mouseReleased(MouseEvent e) {
|
||||||
|
super.mouseClicked(e);
|
||||||
|
setForeground(Palette.registerLblBtn_color);
|
||||||
|
try {
|
||||||
|
clickHandler.call();
|
||||||
|
} catch (Exception e1) {
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void mouseEntered(MouseEvent e) {
|
||||||
|
super.mouseClicked(e);
|
||||||
|
setForeground(Palette.registerLblBtn_onmouseover_color);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void mouseExited(MouseEvent e) {
|
||||||
|
super.mouseClicked(e);
|
||||||
|
setForeground(Palette.registerLblBtn_color);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
47
Client/src/com/texttwist/client/ui/TTPasswordField.java
Normal file
47
Client/src/com/texttwist/client/ui/TTPasswordField.java
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
package com.texttwist.client.ui;
|
||||||
|
|
||||||
|
import com.texttwist.client.constants.Palette;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.event.*;
|
||||||
|
import java.util.concurrent.Executors;
|
||||||
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by loke on 13/06/2017.
|
||||||
|
*/
|
||||||
|
public class TTPasswordField extends TTInputBox{
|
||||||
|
|
||||||
|
private String placeholder = "Password";
|
||||||
|
|
||||||
|
public TTPasswordField(Point position, Dimension dimension, JPanel parent) {
|
||||||
|
super();
|
||||||
|
|
||||||
|
setBackground(Palette.inputBox_backgroundColor);
|
||||||
|
setFont(Palette.inputBox_font);
|
||||||
|
setBounds(position.x, position.y, dimension.width, dimension.height);
|
||||||
|
setPreferredSize(dimension);
|
||||||
|
setForeground(Palette.fontColor);
|
||||||
|
setPlaceholder(placeholder);
|
||||||
|
|
||||||
|
addKeyListener(new KeyAdapter() {
|
||||||
|
//If wish to have multiple inheritance...
|
||||||
|
@Override
|
||||||
|
public void keyPressed(KeyEvent e) {
|
||||||
|
super.keyPressed(e);
|
||||||
|
String a = getText();
|
||||||
|
String l = new String();
|
||||||
|
for (int i = 0; i < a.length(); ++i) {
|
||||||
|
l+="*";
|
||||||
|
}
|
||||||
|
setText(l);
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
parent.add(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
11
Server/Server.iml
Normal file
11
Server/Server.iml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
8
Server/src/com/texttwist/server/Main.java
Normal file
8
Server/src/com/texttwist/server/Main.java
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
package com.texttwist.server;
|
||||||
|
|
||||||
|
public class Main {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("Server start");
|
||||||
|
}
|
||||||
|
}
|
||||||
11
TextTwist.iml
Normal file
11
TextTwist.iml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/" isTestSource="false" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
out/production/Client/com/intellij/uiDesigner/core/Spacer.class
Normal file
BIN
out/production/Client/com/intellij/uiDesigner/core/Spacer.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
out/production/Client/com/intellij/uiDesigner/core/Util.class
Normal file
BIN
out/production/Client/com/intellij/uiDesigner/core/Util.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/Main.class
Normal file
BIN
out/production/Client/com/texttwist/client/Main.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/pages/Home$1.class
Normal file
BIN
out/production/Client/com/texttwist/client/pages/Home$1.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/pages/Home.class
Normal file
BIN
out/production/Client/com/texttwist/client/pages/Home.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/pages/Page.class
Normal file
BIN
out/production/Client/com/texttwist/client/pages/Page.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/pages/Register.class
Normal file
BIN
out/production/Client/com/texttwist/client/pages/Register.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/ui/TTButton.class
Normal file
BIN
out/production/Client/com/texttwist/client/ui/TTButton.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/ui/TTContainer.class
Normal file
BIN
out/production/Client/com/texttwist/client/ui/TTContainer.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/ui/TTImage.class
Normal file
BIN
out/production/Client/com/texttwist/client/ui/TTImage.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/ui/TTInputBox.class
Normal file
BIN
out/production/Client/com/texttwist/client/ui/TTInputBox.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/ui/TTInputField.class
Normal file
BIN
out/production/Client/com/texttwist/client/ui/TTInputField.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/ui/TTLabel.class
Normal file
BIN
out/production/Client/com/texttwist/client/ui/TTLabel.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/ui/TTLabelBtn$1.class
Normal file
BIN
out/production/Client/com/texttwist/client/ui/TTLabelBtn$1.class
Normal file
Binary file not shown.
BIN
out/production/Client/com/texttwist/client/ui/TTLabelBtn.class
Normal file
BIN
out/production/Client/com/texttwist/client/ui/TTLabelBtn.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
out/production/Client/fonts/DK Trained Monkey.otf
Normal file
BIN
out/production/Client/fonts/DK Trained Monkey.otf
Normal file
Binary file not shown.
BIN
out/production/Client/images/logo.png
Normal file
BIN
out/production/Client/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
BIN
out/production/Server/com/texttwist/server/Main.class
Normal file
BIN
out/production/Server/com/texttwist/server/Main.class
Normal file
Binary file not shown.
1
out/production/TextTwist/.idea/description.html
generated
Normal file
1
out/production/TextTwist/.idea/description.html
generated
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
|
||||||
12
out/production/TextTwist/.idea/misc.xml
generated
Normal file
12
out/production/TextTwist/.idea/misc.xml
generated
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="EntryPointsManager">
|
||||||
|
<entry_points version="2.0" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectKey">
|
||||||
|
<option name="state" value="project://e2804f05-5315-4fc6-a121-c522a6c26470" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
10
out/production/TextTwist/.idea/modules.xml
generated
Normal file
10
out/production/TextTwist/.idea/modules.xml
generated
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/Client/Client.iml" filepath="$PROJECT_DIR$/Client/Client.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/Server/Server.iml" filepath="$PROJECT_DIR$/Server/Server.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/TextTwist.iml" filepath="$PROJECT_DIR$/TextTwist.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
3
out/production/TextTwist/.idea/project-template.xml
generated
Normal file
3
out/production/TextTwist/.idea/project-template.xml
generated
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<template>
|
||||||
|
<input-field default="com.company">IJ_BASE_PACKAGE</input-field>
|
||||||
|
</template>
|
||||||
124
out/production/TextTwist/.idea/uiDesigner.xml
generated
Normal file
124
out/production/TextTwist/.idea/uiDesigner.xml
generated
Normal file
|
|
@ -0,0 +1,124 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Palette2">
|
||||||
|
<group name="Swing">
|
||||||
|
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Button" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="RadioButton" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="CheckBox" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Label" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||||
|
<preferred-size width="-1" height="20" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
</group>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
1117
out/production/TextTwist/.idea/workspace.xml
generated
Normal file
1117
out/production/TextTwist/.idea/workspace.xml
generated
Normal file
File diff suppressed because it is too large
Load diff
11
out/production/TextTwist/TextTwist.iml
Normal file
11
out/production/TextTwist/TextTwist.iml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/" isTestSource="false" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue