Giter Club home page Giter Club logo

jfxtras.github.com's Introduction

JFXtras

A supporting library for JavaFX, containing helper classes, extended layouts, controls and other interesting widgets. See the JFXtras website for more details and screen clips.

Project structure:

Root project 'jfxtras-parent'
+--- Module 'jfxtras-agenda'
+--- Module 'jfxtras-common'
+--- Module 'jfxtras-controls'
+--- Module 'jfxtras-font-roboto'
+--- Module 'jfxtras-fxml'
+--- Module 'jfxtras-gauge-linear'
+--- Module 'jfxtras-icalendaragenda'
+--- Module 'jfxtras-icalendarfx'
+--- Module 'jfxtras-menu'
+--- Module 'jfxtras-test-support'
\--- Module 'jfxtras-window'

How to use

The easiest way to use JFXtras is by using Maven or Gradle and access the Maven central repository.

The group-id is org.jfxtras, the artifact-id is the module name.

Maven:
<dependency>
  <groupId>org.jfxtras</groupId>
  <artifactId>jfxtras-controls</artifactId>
  <version>11-r1-SNAPSHOT</version>
</dependency>
Gradle:
compile group: 'org.jfxtras', name: 'jfxtras-controls', version: '11-r1-SNAPSHOT'

License

JFXtras uses the new BSD license

jfxtras.github.com's People

Contributors

deanriverson avatar sbordes avatar steveonjava avatar tbee avatar urskr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jfxtras.github.com's Issues

TextFlow loses formatting randomly, up to completely

Hi,

I'm using the Window class in my UI and came across an issue with it hosting a ListView of TextFlows from Java 8, all laid out to an AnchorPane which is then added to the Window.

Basically, format types such as italic and bold either don't apply, get applied sometimes, or gets applied and gets lost, once another item is added to the list. It happened too that, after an item was properly displayed with formatting, if I added a copy of the same item to the list, it still displays properly, but when I add another, different item, all the previous successful additions, lose their formatting.

I didn't suspect it at first, but when I popped the ListView out and into a Stage, everything worked just fine.

Cannot start JFXtras Ensemble via WebStart from website/jnlp file

When trying to start JFXtras Ensemble from the website via webstart / jnlp, I'm getting the following error from webstart:

System info:
Mac OS X Lion 10.7.4

java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)

Exception:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: file:/Users/myuser/Downloads/Ensemble.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1416)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1569)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1547)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1654)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1578)
at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:215)
at com.sun.javaws.LaunchDownload$DownloadTask.call(LaunchDownload.java:1983)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Wrapped Exception:

java.io.FileNotFoundException: /Users/myuser/Downloads/Ensemble.jar (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:120)
at java.io.FileInputStream.(FileInputStream.java:79)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:179)
at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:112)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(BasicHttpRequest.java:77)
at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1226)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1569)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1547)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1654)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1578)
at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:215)
at com.sun.javaws.LaunchDownload$DownloadTask.call(LaunchDownload.java:1983)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Cannot start fxtras-labs-samples-8.0-r4-SNAPSHOT- with Java 1.8.0_45

Since updating to Java 1.8.0_45 the application will no longer run.

File: fxtras-labs-samples-8.0-r4-SNAPSHOT-
Java version: 1.8.0_45

Error Parse:

Initialising FXSampler sample scanner...
Discovering projects...
Found project 'JFxtras', with sample base package 'jfxtras.samples'
Found project 'JFxtrasLabs', with sample base package 'jfxtras.labs.samples'
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$152(LauncherImpl.java:182)
at com.sun.javafx.application.LauncherImpl$$Lambda$51/1793329556.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.time.DateTimeException: Invalid date 'APRIL 31'
at java.time.LocalDate.create(LocalDate.java:431)
at java.time.LocalDate.of(LocalDate.java:269)
at jfxtras.samples.controls.agenda.AgendaSample1.(AgendaSample1.java:189)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at fxsampler.util.SampleScanner.discoverSamples(SampleScanner.java:86)
at fxsampler.FXSampler.start(FXSampler.java:103)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(LauncherImpl.java:863)
at com.sun.javafx.application.LauncherImpl$$Lambda$54/1988525694.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl$$Lambda$47/553264065.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)
at com.sun.javafx.application.PlatformImpl$$Lambda$49/1211714189.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)
at com.sun.javafx.application.PlatformImpl$$Lambda$48/1789447862.run(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Exception running application fxsampler.FXSampler

Issues regarding icalendarAgenda inside Window

I am posting my code and the screen shots to explain my problem
public class DashboardContainer extends StackPane{
private StackPane mainPane;
private BorderPane borderPane;
private GridPane gridPane;
private TilePane taskPane, metroUiPane;
private ObservableList dashboardNodes;
private StackPane centerPane;
private Stage primaryStage;

public DashboardContainer(Stage primaryStage) {}

/**
*
*/
private void init(){
mainPane = new StackPane();

	TilePane titlePane = new TilePane();
	titlePane.setCenterShape(true);
	titlePane.setAlignment(Pos.CENTER);
	titlePane.getStyleClass().add("title");
	Text welcomeText = new Text("Welcome to Healthcare System");
	welcomeText.setId("welcome-text");
	titlePane.getChildren().add(welcomeText);
	borderPane.setTop(titlePane);
	
    gridPane = new GridPane();
    mainPane.getChildren().add(gridPane);
	gridPane.getStyleClass().add("dashboard-grid");
	ColumnConstraints columnLeft = new ColumnConstraints();
	columnLeft.setPercentWidth(5.0);
	ColumnConstraints columnCenter = new ColumnConstraints();
	columnCenter.setPercentWidth(75.0);
	ColumnConstraints columnRight = new ColumnConstraints();
	columnRight.setPercentWidth(20.0);
	gridPane.getColumnConstraints().addAll(columnLeft, columnCenter, columnRight);
	
	RowConstraints topRow = new RowConstraints();
	topRow.setPercentHeight(5);
	RowConstraints centerRow = new RowConstraints();
	centerRow.setPercentHeight(90);
	RowConstraints bottomRow = new RowConstraints();
	bottomRow.setPercentHeight(5);
	gridPane.getRowConstraints().addAll(topRow, centerRow, bottomRow);

	
	initDashboardPane();
	initTaskPane();
	
	borderPane.setCenter(mainPane);
}

/**
 * 
 */
private void initTaskPane(){
    taskPane = new TilePane();
	taskPane.setOrientation(Orientation.VERTICAL);
	taskPane.getStyleClass().add("dashboard-contents");
	GridPane.setConstraints(taskPane, 2, 0);
	GridPane.setRowSpan(taskPane, GridPane.REMAINING);
	gridPane.getChildren().add(taskPane);
	
}

/**
 * 
 */
private void initDashboardPane(){
	centerPane = new StackPane();
	Group mainGroup = new Group();
	centerPane.getChildren().add(mainGroup);

	GridPane.setConstraints(centerPane, 1, 1);
	gridPane.getChildren().add(centerPane);
	centerPane.setAlignment(Pos.CENTER);
	metroUiPane = new TilePane(Orientation.HORIZONTAL);
	metroUiPane.setHgap(2.0);
	metroUiPane.setVgap(2.0);
	metroUiPane.getStyleClass().add("dashboard-contents");
	dashboardNodes = metroUiPane.getChildren();
	centerPane.getChildren().add(metroUiPane);
}

private void generateTiles(){
	Button patientSatisfactionDashboard = new Button("PatientSatisfactionDashboard");
	patientSatisfactionDashboard.setOnAction(e->{
		Window window = new Window("PatientSatisfactionDashboard");
		ICalendarAgenda agenda = new ICalendarAgenda(new VCalendar());
		
		window.getContentPane().getChildren().add(agenda);
        window.getLeftIcons().add(new CloseIcon(window));
        window.getRightIcons().add(new MinimizeIcon(window));
        window.setPrefSize(getPrefWidth(), getPrefHeight());
        getChildren().add(window);
	});
	Button patientMonitoringDashboard = new Button("PatientMonitoringDashboard");
	Button bedManagementDashboard = new Button("BedManagementDashboard");
	Button erStatusDashbaord = new Button("ERStatusDashboard");
	Button queueManagementDashboard = new Button("QueueManagementDashboard");
	metroUiPane.getChildren();
	metroUiPane.getChildren().addAll(patientMonitoringDashboard, patientSatisfactionDashboard, erStatusDashbaord, bedManagementDashboard,queueManagementDashboard);
}

}

screen shot 2017-04-29 at 3 51 14 pm

screen shot 2017-04-29 at 3 51 04 pm

It seems the agenda creation popup is apearing in seprate stage. please do help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.