Makor deb pkg fixes....

This commit is contained in:
abaddon 2017-03-31 22:13:21 -05:00
parent a0e6abc9a5
commit 5ecee17034
99 changed files with 147 additions and 152 deletions

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.

View File

@ -1,9 +0,0 @@
Package: FXWinWrap
Version: 0.1-2
Section: base
Priority: optional
Architecture: amd64
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
Maintainer: Maxim Stewart maximstewart1@gmail.com
Description: FXWinWrap
A GUI to handle setting XWinWrap options.

View File

@ -1,9 +0,0 @@
Package: FXWinWrap
Version: 0.1-2
Section: base
Priority: optional
Architecture: i386
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
Maintainer: Maxim Stewart maximstewart1@gmail.com
Description: FXWinWrap
A GUI to handle setting XWinWrap options.

View File

@ -1,10 +0,0 @@
[Desktop Entry]
Encoding=UTF-8
Name=FXWinWrap
Comment=JavaFX gui for XWinWrap
Exec=/bin/fxwinwrap
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
Terminal=false
Type=Application
Categories=Applications;System;
MimeType=application/fxml;

View File

@ -1,10 +0,0 @@
[Desktop Entry]
Encoding=UTF-8
Name=FXWinWrap
Comment=JavaFX gui for XWinWrap
Exec=/bin/fxwinwrap
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
Terminal=false
Type=Application
Categories=Applications;System;
MimeType=application/fxml;

5
src/debs/fixOwnership.sh Normal file
View File

@ -0,0 +1,5 @@
find . -type f -exec chmod 644 {} +
find . -type d -exec chmod 755 {} +
chown -R root:root ./*/

View File

@ -1,9 +1,8 @@
Package: FXWinWrap Package: fxwinwrap64
Version: 0.1-1 Version: 0.1-1
Section: base Section: base
Priority: optional Priority: optional
Architecture: amd64 Architecture: amd64
Depends: openjdk-8-jre (>= 8u45-b14-1) Depends: openjdk-8-jre (>= 8u45-b14-1)
Maintainer: Maxim Stewart maximstewart1@gmail.com Maintainer: Maxim Stewart maximstewart1@gmail.com
Description: FXWinWrap Description: A GUI to handle setting XWinWrap options.
A GUI to handle setting XWinWrap options.

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

Before

Width:  |  Height:  |  Size: 245 KiB

After

Width:  |  Height:  |  Size: 245 KiB

View File

@ -6,5 +6,5 @@ Exec=/bin/fxwinwrap
Icon=/opt/FXWinWrap/resources/fxwinwrap.png Icon=/opt/FXWinWrap/resources/fxwinwrap.png
Terminal=false Terminal=false
Type=Application Type=Application
Categories=Applications;System; Categories=System;
MimeType=application/fxml; MimeType=application/fxml;

View File

@ -1,9 +1,8 @@
Package: FXWinWrap Package: fxwinwrap
Version: 0.1-1 Version: 0.1-1
Section: base Section: base
Priority: optional Priority: optional
Architecture: i386 Architecture: i386
Depends: openjdk-8-jre (>= 8u45-b14-1) Depends: openjdk-8-jre (>= 8u45-b14-1)
Maintainer: Maxim Stewart maximstewart1@gmail.com Maintainer: Maxim Stewart maximstewart1@gmail.com
Description: FXWinWrap Description: A GUI to handle setting XWinWrap options.
A GUI to handle setting XWinWrap options.

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

Before

Width:  |  Height:  |  Size: 245 KiB

After

Width:  |  Height:  |  Size: 245 KiB

View File

@ -6,5 +6,5 @@ Exec=/bin/fxwinwrap
Icon=/opt/FXWinWrap/resources/fxwinwrap.png Icon=/opt/FXWinWrap/resources/fxwinwrap.png
Terminal=false Terminal=false
Type=Application Type=Application
Categories=Applications;System; Categories=System;
MimeType=application/fxml; MimeType=application/fxml;

View File

@ -1,9 +1,8 @@
Package: FXWinWrap Package: fxwinwrap64
Version: 0.1-2 Version: 0.1-2
Section: base Section: base
Priority: optional Priority: optional
Architecture: amd64 Architecture: amd64
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2) Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
Maintainer: Maxim Stewart maximstewart1@gmail.com Maintainer: Maxim Stewart maximstewart1@gmail.com
Description: FXWinWrap Description: A GUI to handle setting XWinWrap options.
A GUI to handle setting XWinWrap options.

View File

@ -14,7 +14,3 @@ if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
xdg-desktop-menu forceupdate --mode user xdg-desktop-menu forceupdate --mode user
fi fi
if [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -6,5 +6,5 @@ Exec=/bin/fxwinwrap
Icon=/opt/FXWinWrap/resources/fxwinwrap.png Icon=/opt/FXWinWrap/resources/fxwinwrap.png
Terminal=false Terminal=false
Type=Application Type=Application
Categories=Applications;System; Categories=System;
MimeType=application/fxml; MimeType=application/fxml;

View File

@ -1,9 +1,8 @@
Package: FXWinWrap Package: fxwinwrap
Version: 0.1-2 Version: 0.1-2
Section: base Section: base
Priority: optional Priority: optional
Architecture: i386 Architecture: i386
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2) Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
Maintainer: Maxim Stewart maximstewart1@gmail.com Maintainer: Maxim Stewart maximstewart1@gmail.com
Description: FXWinWrap Description: A GUI to handle setting XWinWrap options.
A GUI to handle setting XWinWrap options.

View File

@ -14,7 +14,3 @@ if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
xdg-desktop-menu forceupdate --mode user xdg-desktop-menu forceupdate --mode user
fi fi
if [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -6,5 +6,5 @@ Exec=/bin/fxwinwrap
Icon=/opt/FXWinWrap/resources/fxwinwrap.png Icon=/opt/FXWinWrap/resources/fxwinwrap.png
Terminal=false Terminal=false
Type=Application Type=Application
Categories=Applications;System; Categories=System;
MimeType=application/fxml; MimeType=application/fxml;

View File

@ -0,0 +1,8 @@
Package: fxwinwrap64
Version: 0.1-3
Section: base
Priority: optional
Architecture: amd64
Depends: openjdk-8-jre (>= 8u45-b14-1), openjfx (>= 8u60-b27-4), ffmpegthumbnailer (>= 2.0.10-0.1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
Maintainer: Maxim Stewart 1itdominator@gmail.com
Description: A GUI to handle setting XWinWrap options.

View File

@ -7,14 +7,10 @@ if [ -f /bin/fxwinwrap ]; then
fi fi
if [ -d /opt/FXWinWrap ]; then if [ -d /opt/FXWinWrap ]; then
rm -rf /bin/fxwinwrap rm -rf /opt/FXWinWrap
fi fi
if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
xdg-desktop-menu forceupdate --mode user xdg-desktop-menu forceupdate --mode user
fi fi
if [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=FXWinWrap
Comment=JavaFX gui for XWinWrap
Exec=/bin/fxwinwrap
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
Terminal=false
Type=Application
Categories=System;
MimeType=application/fxml;

View File

@ -0,0 +1,8 @@
Package: fxwinwrap
Version: 0.1-3
Section: base
Priority: optional
Architecture: i386
Depends: openjdk-8-jre (>= 8u45-b14-1), openjfx (>= 8u60-b27-4), ffmpegthumbnailer (>= 2.0.10-0.1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
Maintainer: Maxim Stewart 1itdominator@gmail.com
Description: A GUI to handle setting XWinWrap options.

View File

@ -7,14 +7,10 @@ if [ -f /bin/fxwinwrap ]; then
fi fi
if [ -d /opt/FXWinWrap ]; then if [ -d /opt/FXWinWrap ]; then
rm -rf /bin/fxwinwrap rm -rf /opt/FXWinWrap
fi fi
if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
xdg-desktop-menu forceupdate --mode user xdg-desktop-menu forceupdate --mode user
fi fi
if [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=FXWinWrap
Comment=JavaFX gui for XWinWrap
Exec=/bin/fxwinwrap
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
Terminal=false
Type=Application
Categories=System;
MimeType=application/fxml;

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
### nohup is needed to keep child process alive from java's ### nohup is needed to keep child process alive from java's
xterm -e ~/.animatedBGstarter.sh xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
xterm -e ~/.animatedBGstarter2.sh xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1

View File

@ -89,11 +89,11 @@ public class Controller {
thumbImgView.getChildren().clear(); // Clears children if any to setup for new images thumbImgView.getChildren().clear(); // Clears children if any to setup for new images
dirPathField.setText("" + directory); dirPathField.setText("" + directory);
for (int i=0; i<size; i++) { for (int i=0; i<size; i++) {
String path = "" + fileList[i]; String path = "" + fileList[i];
imgView.setFitWidth(535); imgView.setFitWidth(535);
imgView.setFitHeight(345); imgView.setFitHeight(345);
imgView.setLayoutY(posY); imgView.setLayoutY(posY);
// Video or image click actions // Video or image click actions
if (fileList[i].getName().contains(".mp4") || fileList[i].getName().contains(".mpeg") || if (fileList[i].getName().contains(".mp4") || fileList[i].getName().contains(".mpeg") ||
@ -109,35 +109,37 @@ public class Controller {
} catch(Throwable imgIOErr) { } catch(Throwable imgIOErr) {
System.out.println(imgIOErr); System.out.println(imgIOErr);
} }
imgView = new ImageView("file:///tmp/image.png"); imgView = new ImageView("file:///tmp/image.png");
thumbImgView.getChildren().add(imgView); thumbImgView.getChildren().add(imgView);
imgView.setOnMouseClicked(mouse -> { imgView.setOnMouseClicked(mouse -> {
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) { if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
mouse.consume(); mouse.consume();
try { try {
pb = Runtime.getRuntime().exec(vExec); pb = Runtime.getRuntime().exec(vExec);
} catch(IOException vidIOErr) { } catch(IOException vidIOErr) {
throw new UncheckedIOException(vidIOErr); throw new UncheckedIOException(vidIOErr);
} }
} }
filePathField.setText(path); filePathField.setText(path);
}); });
} else if(fileList[i].getName().contains(".png") || fileList[i].getName().contains(".jpg")|| } else if(fileList[i].getName().contains(".png") || fileList[i].getName().contains(".jpg")||
fileList[i].getName().contains(".gif") || fileList[i].getName().contains(".jpeg")) { fileList[i].getName().contains(".gif") || fileList[i].getName().contains(".jpeg")) {
imgView = new ImageView("file://" + fileList[i]); imgView = new ImageView("file://" + fileList[i]);
thumbImgView.getChildren().add(imgView); thumbImgView.getChildren().add(imgView);
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]); final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
imgView.setOnMouseClicked(mouse -> { imgView.setOnMouseClicked(mouse -> {
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) { if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
mouse.consume(); mouse.consume();
displayImg(imgViewPoped, path); displayImg(imgViewPoped, path);
} }
filePathField.setText(path); filePathField.setText(path);
}); });
} else { } else {
System.out.println("Not a video or image file."); System.out.println("Not a video or image file.");
} }
posY = posY + 355.0; } posY = posY + 355.0;
}
} }
// View Image enlarged Note, sets up a seperate stage and scene with auto enlargment // View Image enlarged Note, sets up a seperate stage and scene with auto enlargment
public void displayImg(ImageView imgViewPoped, String path) { public void displayImg(ImageView imgViewPoped, String path) {

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
### nohup is needed to keep child process alive from java's ### nohup is needed to keep child process alive from java's
xterm -e ~/.animatedBGstarter.sh xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
xterm -e ~/.animatedBGstarter2.sh xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1

Binary file not shown.

Binary file not shown.

View File

@ -12,13 +12,14 @@ import javafx.scene.input.KeyCode;
import javafx.scene.input.MouseEvent; import javafx.scene.input.MouseEvent;
import javafx.geometry.Insets; import javafx.geometry.Insets;
import java.io.*; import java.io.*;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
public class Controller { public class Controller {
private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir
private FileChooser fileChooser = new FileChooser(); // Selects a file
private FileWriter fileWriter; // Writes to files private FileWriter fileWriter; // Writes to files
private File directory, sveFileLoc; // Path to file or dir private File directory, sveFileLoc; // Path to file or dir
private File[] fileList;
private Image pth = new Image("."); // Path to image private Image pth = new Image("."); // Path to image
private ImageView imgView = new ImageView(pth); // Image view area private ImageView imgView = new ImageView(pth); // Image view area
private Process pb; // Process runner private Process pb; // Process runner
@ -52,8 +53,6 @@ public class Controller {
assert tilePane != null : "fx:id=\"tilePane\" was not injected: check your FXML file 'Window.fxml'."; assert tilePane != null : "fx:id=\"tilePane\" was not injected: check your FXML file 'Window.fxml'.";
assert useXSvrn != null : "fx:id=\"useXSvrn\" was not injected: check your FXML file 'Window.fxml'."; assert useXSvrn != null : "fx:id=\"useXSvrn\" was not injected: check your FXML file 'Window.fxml'.";
// Initialize your logic here: all @FXML variables will have been injected // Initialize your logic here: all @FXML variables will have been injected
ffmpegChker();
} }
// Handler for TextArea[fx:id="dirPathField"] onKeyReleased // Handler for TextArea[fx:id="dirPathField"] onKeyReleased
@ -64,63 +63,80 @@ public class Controller {
System.out.println(textAreaPth); System.out.println(textAreaPth);
newDir(); newDir();
} }
else else {}
System.out.println("Not calling newDir..."); }
@FXML void test(ActionEvent event) {
newDir2();
} }
// Scan selected dir // Scan selected dir
public void newDir() { public void newDir() {
tilePane.getChildren().clear();
Stage stage = new Stage(); Stage stage = new Stage();
if (textAreaPth != "") if (textAreaPth != "")
directory = new File(textAreaPth); directory = new File(textAreaPth);
else else {
directory = folderChooser.showDialog(stage); directory = folderChooser.showDialog(stage);
File[] fileList = directory.listFiles(); if (directory != null) {
int size = fileList.length; System.out.println("Directory: " + directory);
tilePane.getChildren().clear(); }
}
fileList = directory.listFiles();
dirPathField.setText("" + directory); dirPathField.setText("" + directory);
for (int i=0; i<size; i++) {
for (int i=0; i<fileList.length; i++) {
imgView = new ImageView();
imgView.setFitWidth(300); // Need these here to get grid properly.
imgView.setFitHeight(200);
tilePane.getChildren().add(imgView);
}
newDir2();
}
public void newDir2() {
for (int i=0; i<fileList.length; i++) {
String path = "" + fileList[i]; String path = "" + fileList[i];
if (fileList[i].getName().contains(".mp4") || fileList[i].getName().contains(".mpeg") || if (fileList[i].getName().contains(".mp4") || fileList[i].getName().contains(".mpeg") ||
fileList[i].getName().contains(".mpg") || fileList[i].getName().contains(".wmv") || fileList[i].getName().contains(".mpg") || fileList[i].getName().contains(".wmv") ||
fileList[i].getName().contains(".mkv") || fileList[i].getName().contains(".flv") || fileList[i].getName().contains(".mkv") || fileList[i].getName().contains(".flv") ||
fileList[i].getName().contains(".webm") || fileList[i].getName().contains(".avi")) { fileList[i].getName().contains(".webm") || fileList[i].getName().contains(".avi")) {
String movieImg = "ffmpegthumbnailer -w -t='00:30:00' -c png -i " + fileList[i] + String movieImg = "ffmpegthumbnailer -w -t='00:30:00' -c png -i " + fileList[i] +
" -s 300 -o /tmp/image.png", " -s 300 -o /tmp/image.png",
vExec = "mplayer " + fileList[i]; vExec = "mplayer " + fileList[i];
try { try {
pb = Runtime.getRuntime().exec(movieImg); pb = Runtime.getRuntime().exec(movieImg);
pb.waitFor(); pb.waitFor();
System.out.println(movieImg);
} catch(Throwable imgIOErr) { } catch(Throwable imgIOErr) {
System.out.println(imgIOErr); System.out.println(imgIOErr);
} }
imgView = new ImageView("file:///tmp/image.png");
imgView.setFitWidth(300); // Need these here to get grid properly. ImageView view = (ImageView) (tilePane.getChildren().get(i));
imgView.setFitHeight(200); pth = new Image("file:///tmp/image.png");
tilePane.getChildren().add(imgView);
imgView.setOnMouseClicked(mouse -> { view.setImage(pth);
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) { view.setOnMouseClicked(mouse -> {
mouse.consume(); if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
try { mouse.consume();
pb = Runtime.getRuntime().exec(vExec); try {
} catch(IOException vidIOErr) { pb = Runtime.getRuntime().exec(vExec);
throw new UncheckedIOException(vidIOErr); } catch(IOException vidIOErr) {
} throw new UncheckedIOException(vidIOErr);
} }
filePathField.setText(path); }
filePathField.setText(path);
}); });
} else if(fileList[i].getName().contains(".png") || fileList[i].getName().contains(".jpg")|| } else if(fileList[i].getName().contains(".png") || fileList[i].getName().contains(".jpg")||
fileList[i].getName().contains(".gif") || fileList[i].getName().contains(".jpeg")) { fileList[i].getName().contains(".gif") || fileList[i].getName().contains(".jpeg")) {
imgView = new ImageView("file://" + fileList[i]);
String title = "" + fileList[i]; String title = "" + fileList[i];
imgView.setFitWidth(300); // Need these here to get grid properly. pth = new Image("file://" + fileList[i]);
imgView.setFitHeight(200); ImageView view = (ImageView) (tilePane.getChildren().get(i));
tilePane.getChildren().add(imgView);
view.setImage(pth);
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]); final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
// image click actions // image click actions
imgView.setOnMouseClicked(mouse -> { view.setOnMouseClicked(mouse -> {
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) { if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
mouse.consume(); mouse.consume();
displayImg(imgViewPoped, title); displayImg(imgViewPoped, title);
@ -217,18 +233,6 @@ public class Controller {
fileWriter.close(); fileWriter.close();
} }
void ffmpegChker() throws Exception {
File ffmpgLoc = new File("/usr/bin/ffmpegthumbnailer");
boolean exists = ffmpgLoc.exists();
System.out.println("" + exists);
if (exists) {
System.out.println("Ffmpeg is present....");
} else {
String installer = System.getProperty("user.dir") + "/resources/bin/InstallFFMPEGTHUMB.sh";
pb = Runtime.getRuntime().exec(installer);
pb.waitFor();
}
}
// Run changes // Run changes
@FXML void applySttngs(ActionEvent event) throws Exception { @FXML void applySttngs(ActionEvent event) throws Exception {
pb = Runtime.getRuntime().exec("killall xwinwrap &"); pb = Runtime.getRuntime().exec("killall xwinwrap &");

Binary file not shown.

View File

@ -13,7 +13,7 @@ public class XWWMenu extends Application {
scene.getStylesheets().add("resources/stylesheet.css"); scene.getStylesheets().add("resources/stylesheet.css");
stage.setScene(scene); stage.setScene(scene);
//stage.setResizable(false); // keeps window from resizing //stage.setResizable(false); // keeps window from resizing
stage.setTitle("XWinWrap Menu"); stage.setTitle("FXWinWrap");
stage.setMinWidth(800); stage.setMinWidth(800);
stage.setMinHeight(600); stage.setMinHeight(600);
stage.show(); stage.show();

View File

@ -1,16 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?> <?import java.lang.String?>
<?import java.util.*?> <?import javafx.collections.FXCollections?>
<?import javafx.collections.*?> <?import javafx.geometry.Insets?>
<?import javafx.geometry.*?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.CheckBox?>
<?import javafx.scene.layout.*?> <?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.paint.*?> <?import javafx.scene.control.Label?>
<?import javafx.scene.text.*?> <?import javafx.scene.control.ListView?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.TilePane?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.text.Font?>
<?scenebuilder-background-color 0x444444ff?> <?scenebuilder-background-color 0x444444ff?>
<AnchorPane minHeight="300.0" minWidth="300.0" prefHeight="600.0" prefWidth="950.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2" fx:controller="Controller"> <AnchorPane minHeight="300.0" minWidth="300.0" prefHeight="600.0" prefWidth="950.0" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controller">
<children> <children>
<TextField id="txtDirPath" fx:id="dirPathField" blendMode="DIFFERENCE" onKeyReleased="#onEnter" prefWidth="880.0" promptText="Directory Path" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="70.0" AnchorPane.topAnchor="0.0" /> <TextField id="txtDirPath" fx:id="dirPathField" blendMode="DIFFERENCE" onKeyReleased="#onEnter" prefWidth="880.0" promptText="Directory Path" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="70.0" AnchorPane.topAnchor="0.0" />
<Button fx:id="clear" mnemonicParsing="false" onAction="#clearBttnClick" text="Clear" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" /> <Button fx:id="clear" mnemonicParsing="false" onAction="#clearBttnClick" text="Clear" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
@ -146,7 +152,7 @@
</ChoiceBox> </ChoiceBox>
<CheckBox fx:id="lftScrn" layoutX="211.0" mnemonicParsing="false" prefWidth="114.17000000000002" selected="true" text="Left Screen" AnchorPane.bottomAnchor="123.0" /> <CheckBox fx:id="lftScrn" layoutX="211.0" mnemonicParsing="false" prefWidth="114.17000000000002" selected="true" text="Left Screen" AnchorPane.bottomAnchor="123.0" />
<CheckBox fx:id="rghtScrn" allowIndeterminate="false" mnemonicParsing="false" prefWidth="114.17000000000002" text="Right Screen" AnchorPane.bottomAnchor="123.0" AnchorPane.rightAnchor="95.0" /> <CheckBox fx:id="rghtScrn" allowIndeterminate="false" mnemonicParsing="false" prefWidth="114.17000000000002" text="Right Screen" AnchorPane.bottomAnchor="123.0" AnchorPane.rightAnchor="95.0" />
<CheckBox fx:id="useXSvrn" mnemonicParsing="false" text="Use XScreenSaver" AnchorPane.bottomAnchor="170.0" AnchorPane.leftAnchor="489.0" AnchorPane.rightAnchor="320.0" /> <CheckBox fx:id="useXSvrn" layoutX="459.0" layoutY="421.0" mnemonicParsing="false" prefHeight="18.0" prefWidth="168.0" text="Use XScreenSaver" AnchorPane.bottomAnchor="161.0" AnchorPane.leftAnchor="459.0" AnchorPane.rightAnchor="323.0" />
<Label layoutX="211.0" text="Left Screen Resolutions:" AnchorPane.bottomAnchor="193.0" /> <Label layoutX="211.0" text="Left Screen Resolutions:" AnchorPane.bottomAnchor="193.0" />
<Label text="XScreenSaver List" AnchorPane.bottomAnchor="227.0" AnchorPane.leftAnchor="14.0" /> <Label text="XScreenSaver List" AnchorPane.bottomAnchor="227.0" AnchorPane.leftAnchor="14.0" />
<Label prefWidth="382.0" text="Note: Double click an image to view the video or image." textFill="$x1" AnchorPane.bottomAnchor="219.0" AnchorPane.leftAnchor="369.0" AnchorPane.rightAnchor="199.0" /> <Label prefWidth="382.0" text="Note: Double click an image to view the video or image." textFill="$x1" AnchorPane.bottomAnchor="219.0" AnchorPane.leftAnchor="369.0" AnchorPane.rightAnchor="199.0" />