Added gitignore; Common module created; TTResponse created; TTLogger created; Auth RMI created;
This commit is contained in:
parent
ac694a1776
commit
f18d7c4bb4
90 changed files with 844 additions and 2105 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
log
|
||||
10
.idea/libraries/com_github_cliftonlabs_json_simple_2_1_2.xml
generated
Normal file
10
.idea/libraries/com_github_cliftonlabs_json_simple_2_1_2.xml
generated
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<component name="libraryTable">
|
||||
<library name="com.github.cliftonlabs:json-simple:2.1.2" type="repository">
|
||||
<properties maven-id="com.github.cliftonlabs:json-simple:2.1.2" />
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/com/github/cliftonlabs/json-simple/2.1.2/json-simple-2.1.2.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
1
.idea/modules.xml
generated
1
.idea/modules.xml
generated
|
|
@ -3,6 +3,7 @@
|
|||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/Client/Client.iml" filepath="$PROJECT_DIR$/Client/Client.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Commons/Commons.iml" filepath="$PROJECT_DIR$/Commons/Commons.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>
|
||||
|
|
|
|||
1010
.idea/workspace.xml
generated
1010
.idea/workspace.xml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -8,5 +8,7 @@
|
|||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="com.github.cliftonlabs:json-simple:2.1.2" level="project" />
|
||||
<orderEntry type="module" module-name="Commons" />
|
||||
</component>
|
||||
</module>
|
||||
15
Client/src/com/texttwist/client/constants/Config.java
Normal file
15
Client/src/com/texttwist/client/constants/Config.java
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package com.texttwist.client.constants;
|
||||
|
||||
/**
|
||||
* Created by loke on 15/06/2017.
|
||||
*/
|
||||
public class Config {
|
||||
|
||||
private static String RMIServerURI = "localhost";
|
||||
private static Integer RMIServerPort = 9999;
|
||||
|
||||
|
||||
public static String getRMIServerAddress(){
|
||||
return "rmi://".concat(RMIServerURI).concat(":").concat(RMIServerPort.toString());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +1,9 @@
|
|||
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.
|
||||
|
|
|
|||
|
|
@ -109,7 +109,6 @@ public class Game extends Page {
|
|||
-1,
|
||||
root);
|
||||
|
||||
|
||||
TTGameBox searchUserBar = new TTGameBox(
|
||||
new Point(150, 90),
|
||||
new Dimension(250, 40),
|
||||
|
|
@ -134,8 +133,6 @@ public class Game extends Page {
|
|||
new Font(Palette.inputBox_font.getFontName(), Font.BOLD, 40),
|
||||
null,
|
||||
"00:00");
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
package com.texttwist.client.pages;
|
||||
import com.texttwist.client.constants.Palette;
|
||||
import com.texttwist.client.ui.*;
|
||||
import models.TTResponse;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.util.concurrent.Callable;
|
||||
|
|
@ -8,13 +10,14 @@ import java.util.concurrent.Callable;
|
|||
public class Home extends Page {
|
||||
|
||||
private TTContainer loginDataContainer;
|
||||
private HomeManager homeManager;
|
||||
private TTContainer logoContainer;
|
||||
|
||||
public Home(JFrame window) {
|
||||
super(window);
|
||||
homeManager = new HomeManager();
|
||||
createUIComponents();
|
||||
window.setVisible(true);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -46,7 +49,14 @@ public class Home extends Page {
|
|||
@Override
|
||||
public Object call() throws Exception {
|
||||
//TODO CHIAMA API PER LOGIN E SE TUTTO OKEY MANDA A PAGINA DEL MENU
|
||||
return new Menu(Page.window);
|
||||
TTResponse res = homeManager.login(usernameField.getText(), String.valueOf(passwordField.getPassword()));
|
||||
if (res.code == 200){
|
||||
//OK, go to next page and show popup
|
||||
return new Menu(window);
|
||||
} else {
|
||||
JOptionPane.showMessageDialog(null, "Login Failes");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
},
|
||||
loginDataContainer);
|
||||
|
|
|
|||
33
Client/src/com/texttwist/client/pages/HomeManager.java
Normal file
33
Client/src/com/texttwist/client/pages/HomeManager.java
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
package com.texttwist.client.pages;
|
||||
import com.texttwist.client.constants.Config;
|
||||
import interfaces.ITTAuth;
|
||||
import models.TTResponse;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.rmi.Naming;
|
||||
import java.rmi.NotBoundException;
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
/**
|
||||
* Created by loke on 15/06/2017.
|
||||
*/
|
||||
public class HomeManager {
|
||||
ExecutorService executor = Executors.newSingleThreadExecutor();
|
||||
String baseUrl = Config.getRMIServerAddress().concat("/auth");
|
||||
|
||||
public HomeManager(){
|
||||
}
|
||||
|
||||
public TTResponse login(String userName, String password) throws RemoteException, NotBoundException, MalformedURLException {
|
||||
System.out.print(password);
|
||||
ITTAuth auth = (ITTAuth) Naming.lookup(baseUrl);
|
||||
return auth.login(userName, password);
|
||||
}
|
||||
|
||||
public TTResponse logout(String userName, String token) throws RemoteException, NotBoundException, MalformedURLException {
|
||||
ITTAuth auth = (ITTAuth) Naming.lookup(baseUrl);
|
||||
return auth.logout(userName, token);
|
||||
}
|
||||
}
|
||||
|
|
@ -12,9 +12,9 @@ import java.util.concurrent.TimeUnit;
|
|||
/**
|
||||
* Created by loke on 13/06/2017.
|
||||
*/
|
||||
public class TTPasswordField extends TTInputBox{
|
||||
public class TTPasswordField extends JPasswordField{
|
||||
|
||||
private String placeholder = "Password";
|
||||
private String placeholder = "";
|
||||
|
||||
public TTPasswordField(Point position, Dimension dimension, JPanel parent) {
|
||||
super();
|
||||
|
|
@ -24,22 +24,7 @@ public class TTPasswordField extends TTInputBox{
|
|||
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);
|
||||
|
||||
}
|
||||
});
|
||||
setText(placeholder);
|
||||
|
||||
parent.add(this);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +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$/" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<?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" />
|
||||
<orderEntry type="library" name="com.github.cliftonlabs:json-simple:2.1.2" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
13
Commons/src/interfaces/ITTAuth.java
Normal file
13
Commons/src/interfaces/ITTAuth.java
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package interfaces;
|
||||
import models.TTResponse;
|
||||
|
||||
import java.rmi.Remote;
|
||||
import java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* Created by loke on 15/06/2017.
|
||||
*/
|
||||
public interface ITTAuth extends Remote {
|
||||
TTResponse login(String userName, String password) throws RemoteException;
|
||||
TTResponse logout(String userName, String token) throws RemoteException;
|
||||
}
|
||||
18
Commons/src/models/TTResponse.java
Normal file
18
Commons/src/models/TTResponse.java
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package models;
|
||||
import org.json.simple.JsonObject;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by loke on 15/06/2017.
|
||||
*/
|
||||
public class TTResponse implements Serializable{
|
||||
public String message;
|
||||
public Integer code;
|
||||
public JsonObject data;
|
||||
|
||||
public TTResponse(String message, Integer code, JsonObject data) {
|
||||
this.message = message;
|
||||
this.code = code;
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
54
Commons/src/utilities/TTLogger.java
Normal file
54
Commons/src/utilities/TTLogger.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package utilities;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.URL;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
import java.nio.file.StandardOpenOption;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Created by loke on 15/06/2017.
|
||||
*/
|
||||
public class TTLogger {
|
||||
|
||||
|
||||
private static File logFile;
|
||||
private static PrintWriter out;
|
||||
private static BufferedWriter bw;
|
||||
private static FileWriter fw;
|
||||
|
||||
public TTLogger(File logFile) throws IOException {
|
||||
this.logFile = logFile;
|
||||
|
||||
}
|
||||
public static void write(String msg){
|
||||
try {
|
||||
fw = new FileWriter(logFile, true);
|
||||
bw = new BufferedWriter(fw);
|
||||
out = new PrintWriter(bw);
|
||||
System.out.println(msg);
|
||||
Date d = new Date();
|
||||
out.append(d.toString());
|
||||
out.append(" - ");
|
||||
out.append(msg);
|
||||
out.append("\n");
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
finally {
|
||||
out.close();
|
||||
try {
|
||||
bw.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
fw.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -7,5 +7,7 @@
|
|||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="com.github.cliftonlabs:json-simple:2.1.2" level="project" />
|
||||
<orderEntry type="module" module-name="Commons" />
|
||||
</component>
|
||||
</module>
|
||||
|
|
@ -1,8 +1,18 @@
|
|||
package com.texttwist.server;
|
||||
|
||||
import com.texttwist.server.components.TTServer;
|
||||
import utilities.TTLogger;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws IOException {
|
||||
System.out.println("Server start");
|
||||
TTLogger logger = new TTLogger(new File("./log"));
|
||||
TTServer ttServer = new TTServer();
|
||||
ttServer.start();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
34
Server/src/com/texttwist/server/components/TTServer.java
Normal file
34
Server/src/com/texttwist/server/components/TTServer.java
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
package com.texttwist.server.components;
|
||||
|
||||
import com.texttwist.server.components.auth.TTAuth;
|
||||
|
||||
import java.rmi.AlreadyBoundException;
|
||||
import java.rmi.RemoteException;
|
||||
import java.rmi.registry.LocateRegistry;
|
||||
import java.rmi.registry.Registry;
|
||||
|
||||
/**
|
||||
* Created by loke on 15/06/2017.
|
||||
*/
|
||||
public class TTServer {
|
||||
|
||||
private static final int PORT = 9999;
|
||||
|
||||
public void start() {
|
||||
|
||||
try {
|
||||
TTAuth auth = new TTAuth();
|
||||
Registry registry = LocateRegistry.createRegistry(PORT);
|
||||
registry.bind("auth", auth);
|
||||
System.out.println("Auth Service running at "+PORT+" port...");
|
||||
|
||||
} catch (RemoteException e) {
|
||||
System.out.println(e.getMessage());
|
||||
e.printStackTrace();
|
||||
} catch (AlreadyBoundException e) {
|
||||
System.out.println(e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
52
Server/src/com/texttwist/server/components/auth/TTAuth.java
Normal file
52
Server/src/com/texttwist/server/components/auth/TTAuth.java
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
package com.texttwist.server.components.auth;
|
||||
import interfaces.ITTAuth;
|
||||
import models.TTResponse;
|
||||
import org.json.simple.JsonObject;
|
||||
import utilities.TTLogger;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.rmi.RemoteException;
|
||||
import java.rmi.server.UnicastRemoteObject;
|
||||
import java.security.SecureRandom;
|
||||
|
||||
/**
|
||||
* Created by loke on 15/06/2017.
|
||||
*/
|
||||
public class TTAuth extends UnicastRemoteObject implements ITTAuth {
|
||||
|
||||
private SecureRandom random = new SecureRandom();
|
||||
|
||||
public String nextSessionId() {
|
||||
return new BigInteger(130, random).toString(32);
|
||||
}
|
||||
public TTAuth() throws RemoteException{
|
||||
}
|
||||
|
||||
@Override
|
||||
public TTResponse login(String userName, String password) throws RemoteException {
|
||||
TTLogger.write("LOGGER: Invoked login with username=" + userName + " AND " + " password=" + password);
|
||||
if ((userName != null && !userName.isEmpty())
|
||||
&& (password != null && !password.equals(""))) {
|
||||
|
||||
if((userName.equalsIgnoreCase("admin"))
|
||||
&& (password.equals("admin"))) {
|
||||
JsonObject data = new JsonObject();
|
||||
data.put("token", nextSessionId());
|
||||
System.out.println("LOGGER: Login successfull");
|
||||
return new TTResponse("Login successfull", 200, data);
|
||||
}
|
||||
}
|
||||
System.out.println("LOGGER: Login unsuccessfull");
|
||||
return new TTResponse("Login unsuccessfull", 400, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TTResponse logout(String userName, String token) throws RemoteException {
|
||||
System.out.println("LOGGER: Invoked logout with username=" + userName + " AND " + " token=" + token);
|
||||
if ((userName != null && !userName.isEmpty())
|
||||
&& (token != null && !token.isEmpty())) {
|
||||
return new TTResponse("Logout successfull", 200, null);
|
||||
}
|
||||
return new TTResponse("Logout successfull (but something go wrong)", 200, null);
|
||||
}
|
||||
}
|
||||
|
|
@ -3,9 +3,10 @@
|
|||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="com.github.cliftonlabs:json-simple:2.1.2" level="project" />
|
||||
</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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 860 B |
Binary file not shown.
|
Before Width: | Height: | Size: 64 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
1
out/production/TextTwist/.idea/description.html
generated
1
out/production/TextTwist/.idea/description.html
generated
|
|
@ -1 +0,0 @@
|
|||
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
|
||||
12
out/production/TextTwist/.idea/misc.xml
generated
12
out/production/TextTwist/.idea/misc.xml
generated
|
|
@ -1,12 +0,0 @@
|
|||
<?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
10
out/production/TextTwist/.idea/modules.xml
generated
|
|
@ -1,10 +0,0 @@
|
|||
<?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>
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<template>
|
||||
<input-field default="com.company">IJ_BASE_PACKAGE</input-field>
|
||||
</template>
|
||||
124
out/production/TextTwist/.idea/uiDesigner.xml
generated
124
out/production/TextTwist/.idea/uiDesigner.xml
generated
|
|
@ -1,124 +0,0 @@
|
|||
<?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>
|
||||
6
out/production/TextTwist/.idea/vcs.xml
generated
6
out/production/TextTwist/.idea/vcs.xml
generated
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
1468
out/production/TextTwist/.idea/workspace.xml
generated
1468
out/production/TextTwist/.idea/workspace.xml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1 +0,0 @@
|
|||
# texttwist
|
||||
Loading…
Add table
Add a link
Reference in a new issue