Skip to content

Commit

Permalink
Change project to maven & refactor project name
Browse files Browse the repository at this point in the history
  • Loading branch information
HouariZegai committed Jan 9, 2020
1 parent 065a9bc commit 2abe60a
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 26 deletions.
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.houarizegai</groupId>
<artifactId>FXTableGen</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>

<dependencies>
<!-- JFoenix library -->
<dependency>
<groupId>com.jfoenix</groupId>
<artifactId>jfoenix</artifactId>
<version>8.0.4</version>
</dependency>
</dependencies>
</project>
18 changes: 0 additions & 18 deletions src/com/houarizegai/generatetablefx/java/launch/Launcher.java

This file was deleted.

20 changes: 20 additions & 0 deletions src/main/java/com/houarizegai/fxtablegen/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.houarizegai.fxtablegen;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class App extends Application {
@Override
public void start(Stage stage) throws IOException {
Parent root = FXMLLoader.load(getClass().getResource("/fxml/Main.fxml"));
Scene scene = new Scene(root);
stage.setScene(scene);
stage.setTitle("FX Table Generator");
stage.show();
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.houarizegai.generatetablefx.java.controllers;
package com.houarizegai.fxtablegen.controllers;

import com.houarizegai.generatetablefx.java.models.ColumnTable;
import com.houarizegai.generatetablefx.java.models.TableInfo;
import com.houarizegai.fxtablegen.models.ColumnTable;
import com.houarizegai.fxtablegen.models.TableInfo;
import com.jfoenix.controls.JFXListView;
import com.jfoenix.controls.JFXTextField;
import javafx.fxml.FXML;
Expand Down Expand Up @@ -165,7 +165,7 @@ private String genClassData() {
private void onAddColumn() {
HBox colBox = null;
try {
colBox = FXMLLoader.load(getClass().getResource("/com/houarizegai/generatetablefx/resources/views/ColumnBox.fxml"));
colBox = FXMLLoader.load(getClass().getResource("/fxml/ColumnBox.fxml"));
} catch(IOException ioe) {
ioe.printStackTrace();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.houarizegai.generatetablefx.java.models;
package com.houarizegai.fxtablegen.models;

public class ColumnTable {
private String title;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.houarizegai.generatetablefx.java.models;
package com.houarizegai.fxtablegen.models;

public class TableInfo {
private String title;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.HBox?>

<HBox alignment="CENTER_LEFT" spacing="10.0" styleClass="sub-box-header" stylesheets="@../css/main.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1">
<HBox alignment="CENTER_LEFT" spacing="10.0" styleClass="sub-box-header" stylesheets="@../style/main.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Label styleClass="sub-box-title" text="COLUMN " />
<JFXTextField promptText="Title" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>

<VBox spacing="10.0" stylesheets="@../css/main.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.houarizegai.generatetablefx.java.controllers.MainController">
<VBox spacing="10.0" stylesheets="@../style/main.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.houarizegai.fxtablegen.controllers.MainController">
<children>
<VBox fillWidth="false" spacing="10.0" styleClass="box-header">
<children>
Expand Down
File renamed without changes.

0 comments on commit 2abe60a

Please sign in to comment.