Browse Source

Połowa okna głównego

master
Piotr Dergun 10 years ago
parent
commit
aa36c478d2
14 changed files with 181 additions and 1 deletions
  1. +2
    -0
      .classpath
  2. BIN
      forms-1.3.0-src.zip
  3. BIN
      forms-1.3.0.jar
  4. BIN
      miglayout-src.zip
  5. BIN
      miglayout15-swing.jar
  6. +12
    -0
      src/main/java/ksiazka/kucharska/App.java
  7. +99
    -0
      src/main/java/ksiazka/kucharska/FrmMain.java
  8. BIN
      target/classes/ksiazka/kucharska/App$1.class
  9. BIN
      target/classes/ksiazka/kucharska/App.class
  10. BIN
      target/classes/ksiazka/kucharska/FrmMain.class
  11. BIN
      target/ksiazka-kucharska-1.0.jar
  12. +1
    -1
      target/maven-archiver/pom.properties
  13. +63
    -0
      target/surefire-reports/TEST-ksiazka.kucharska.AppTest.xml
  14. +4
    -0
      target/surefire-reports/ksiazka.kucharska.AppTest.txt

+ 2
- 0
.classpath View File

@ -22,5 +22,7 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="miglayout15-swing.jar" sourcepath="miglayout-src.zip"/>
<classpathentry kind="lib" path="forms-1.3.0.jar" sourcepath="forms-1.3.0-src.zip"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

BIN
forms-1.3.0-src.zip View File


BIN
forms-1.3.0.jar View File


BIN
miglayout-src.zip View File


BIN
miglayout15-swing.jar View File


+ 12
- 0
src/main/java/ksiazka/kucharska/App.java View File

@ -1,5 +1,7 @@
package ksiazka.kucharska;
import java.awt.EventQueue;
/**
* Hello world!
*
@ -11,5 +13,15 @@ public class App
System.out.println( "Hello World!" );
System.out.println( "test repo!" );
System.out.println("\rPioDer test2\n");
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
FrmMain fMain = new FrmMain();
fMain.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
}

+ 99
- 0
src/main/java/ksiazka/kucharska/FrmMain.java View File

@ -0,0 +1,99 @@
package ksiazka.kucharska;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JSplitPane;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.Dimension;
import javax.swing.SwingConstants;
import java.awt.GridLayout;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JList;
public class FrmMain extends JFrame {
/**
*
*/
private static final long serialVersionUID = 2634383304749703669L;
private JPanel contentPane;
private JTextField txtWpiszTytutagi;
/**
* Create the frame.
*/
public FrmMain() {
setTitle("Książka Kucharska v1.0");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 800, 500);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setLayout(new BorderLayout(0, 0));
setContentPane(contentPane);
JSplitPane splitPane = new JSplitPane();
splitPane.setDividerSize(5);
splitPane.setEnabled(false);
splitPane.setResizeWeight(0.2);
contentPane.add(splitPane, BorderLayout.CENTER);
JPanel panel = new JPanel();
splitPane.setLeftComponent(panel);
GridBagLayout gbl_panel = new GridBagLayout();
gbl_panel.columnWidths = new int[] {0, 30};
gbl_panel.rowHeights = new int[] {0, 0, 0};
gbl_panel.columnWeights = new double[]{1.0, 0.0};
gbl_panel.rowWeights = new double[]{0.0, 1.0, 0.0};
panel.setLayout(gbl_panel);
txtWpiszTytutagi = new JTextField();
txtWpiszTytutagi.setText("wpisz tytuł/tagi...");
GridBagConstraints gbc_txtWpiszTytutagi = new GridBagConstraints();
gbc_txtWpiszTytutagi.insets = new Insets(0, 0, 5, 5);
gbc_txtWpiszTytutagi.fill = GridBagConstraints.HORIZONTAL;
gbc_txtWpiszTytutagi.gridx = 0;
gbc_txtWpiszTytutagi.gridy = 0;
panel.add(txtWpiszTytutagi, gbc_txtWpiszTytutagi);
txtWpiszTytutagi.setColumns(10);
JButton btnSearch = new JButton("Szukaj");
GridBagConstraints gbc_btnSearch = new GridBagConstraints();
gbc_btnSearch.insets = new Insets(0, 0, 5, 0);
gbc_btnSearch.gridx = 1;
gbc_btnSearch.gridy = 0;
panel.add(btnSearch, gbc_btnSearch);
JList recipesList = new JList();
GridBagConstraints gbc_recipesList = new GridBagConstraints();
gbc_recipesList.insets = new Insets(0, 0, 5, 0);
gbc_recipesList.gridwidth = 2;
gbc_recipesList.fill = GridBagConstraints.BOTH;
gbc_recipesList.gridx = 0;
gbc_recipesList.gridy = 1;
panel.add(recipesList, gbc_recipesList);
JPanel panel_1 = new JPanel();
GridBagConstraints gbc_panel_1 = new GridBagConstraints();
gbc_panel_1.gridwidth = 2;
gbc_panel_1.insets = new Insets(0, 0, 0, 5);
gbc_panel_1.fill = GridBagConstraints.BOTH;
gbc_panel_1.gridx = 0;
gbc_panel_1.gridy = 2;
panel.add(panel_1, gbc_panel_1);
panel_1.setLayout(new GridLayout(0, 2, 0, 0));
JButton btnAddRecipe = new JButton("Dodaj");
panel_1.add(btnAddRecipe);
JButton btnDelRecipe = new JButton("Usuń");
panel_1.add(btnDelRecipe);
}
}

BIN
target/classes/ksiazka/kucharska/App$1.class View File


BIN
target/classes/ksiazka/kucharska/App.class View File


BIN
target/classes/ksiazka/kucharska/FrmMain.class View File


BIN
target/ksiazka-kucharska-1.0.jar View File


+ 1
- 1
target/maven-archiver/pom.properties View File

@ -1,5 +1,5 @@
#Generated by Maven
#Wed May 28 23:47:25 CEST 2014
#Wed Jun 11 17:22:03 CEST 2014
version=1.0
groupId=ksiazka.kucharska
artifactId=ksiazka-kucharska

+ 63
- 0
target/surefire-reports/TEST-ksiazka.kucharska.AppTest.xml View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite failures="0" time="0.003" errors="0" skipped="0" tests="1" name="ksiazka.kucharska.AppTest">
<properties>
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
<property name="sun.boot.library.path" value="/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64"/>
<property name="java.vm.version" value="24.51-b03"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="java.vendor.url" value="http://java.oracle.com/"/>
<property name="path.separator" value=":"/>
<property name="guice.disable.misplaced.annotation.check" value="true"/>
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/>
<property name="file.encoding.pkg" value="sun.io"/>
<property name="user.country" value="PL"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="sun.os.patch.level" value="unknown"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="user.dir" value="/home/piotrek/eclipse-projekty/ksiazka-kucharska"/>
<property name="java.runtime.version" value="1.7.0_51-b31"/>
<property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/>
<property name="java.endorsed.dirs" value="/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/endorsed"/>
<property name="os.arch" value="amd64"/>
<property name="java.io.tmpdir" value="/tmp"/>
<property name="line.separator" value="
"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="os.name" value="Linux"/>
<property name="classworlds.conf" value="/home/piotrek/eclipse-projekty/.metadata/.plugins/org.eclipse.m2e.core/launches/m2conf2952025984638839487.tmp"/>
<property name="sun.jnu.encoding" value="UTF-8"/>
<property name="java.library.path" value="/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="java.class.version" value="51.0"/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="os.version" value="3.13-1-amd64"/>
<property name="user.home" value="/home/piotrek"/>
<property name="user.timezone" value="Europe/Warsaw"/>
<property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/>
<property name="file.encoding" value="UTF-8"/>
<property name="java.specification.version" value="1.7"/>
<property name="user.name" value="piotrek"/>
<property name="java.class.path" value="/opt/apache-maven-3.2.1/boot/plexus-classworlds-2.5.1.jar"/>
<property name="org.slf4j.simpleLogger.defaultLogLevel" value="info"/>
<property name="java.vm.specification.version" value="1.7"/>
<property name="sun.arch.data.model" value="64"/>
<property name="java.home" value="/usr/lib/jvm/java-7-openjdk-amd64/jre"/>
<property name="sun.java.command" value="org.codehaus.classworlds.Launcher -B clean install"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="user.language" value="pl"/>
<property name="awt.toolkit" value="sun.awt.X11.XToolkit"/>
<property name="java.vm.info" value="mixed mode"/>
<property name="java.version" value="1.7.0_51"/>
<property name="java.ext.dirs" value="/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext"/>
<property name="securerandom.source" value="file:/dev/./urandom"/>
<property name="sun.boot.class.path" value="/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/netx.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/plugin.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/classes"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="maven.home" value="/opt/apache-maven-3.2.1"/>
<property name="file.separator" value="/"/>
<property name="java.vendor.url.bug" value="http://bugreport.sun.com/bugreport/"/>
<property name="sun.cpu.endian" value="little"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="sun.cpu.isalist" value=""/>
</properties>
<testcase time="0.003" classname="ksiazka.kucharska.AppTest" name="testApp"/>
</testsuite>

+ 4
- 0
target/surefire-reports/ksiazka.kucharska.AppTest.txt View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: ksiazka.kucharska.AppTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec

Loading…
Cancel
Save