Created
July 7, 2014 16:50
-
-
Save mansueli/9bbc77828ad6893d1147 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.application.Application; | |
import javafx.fxml.FXMLLoader; | |
import javafx.scene.Parent; | |
import javafx.scene.Scene; | |
import javafx.stage.Stage; | |
public class Main extends Application { | |
@Override | |
public void start(Stage stage) throws Exception { | |
Parent root = FXMLLoader.load(getClass().getResource("menu.fxml")); | |
Scene scene = new Scene(root); | |
scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm()); | |
stage.setScene(scene); | |
stage.setTitle("Menu"); | |
stage.show(); | |
} | |
public static void main(String[] args) { | |
launch(args); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.error-menu-item | |
{ | |
-fx-background-color: #ffbbbb; | |
} | |
.error-menu-item:focused .label | |
{ | |
-fx-text-fill: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment