Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JavaFX
Search Coderanch
Advanced search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Devaka Cooray
Tim Cooke
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Saloon Keepers:
Piet Souris
Bartenders:
Forum:
JavaFX
How much Java can you put In an FXML document ?
Nikolas Nikolaou
Ranch Hand
Posts: 101
1
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi.
Sorry If the question Is worded Incorrectly.
Below Is a small javafx prog.
public class FXApplication2 extends Application { @Override public void start(Stage stage) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("fxapplication2.fxml")); stage.setTitle("Hello MVC"); Scene scene = new Scene(root,300,275); stage.setScene(scene); scene.getStylesheets().add(FXApplication2.class.getResource("Login.css").toExternalForm()); stage.show(); } public static void main(String[] args) { launch(args); } }
My question Is , can I Just enter the following line:
Parent root = FXMLLoader.load(getClass().getResource("fxapplication2.fxml"));
and place the Stage and Scene commands In the FXML file ?
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How can I make responsible FXML?
javafax, button action..NEED HELP PLEASE!!!
JavaFx 2.2 can not get I18N (Chinese) text correctly from any InputField when using FXML
how to call JavaFX_Charts from a java GUI
How to update table of one fxml by clicking button of other fxml?
More...