поменял форматирование кода
This commit is contained in:
parent
4ccf6834d6
commit
6a421a6fc7
@ -7,11 +7,12 @@ import javafx.stage.Stage;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class ApplicationMissileCruiser extends Application {
|
public class ApplicationMissileCruiser extends Application
|
||||||
|
{
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage stage) throws IOException {
|
public void start(Stage stage) throws IOException
|
||||||
|
{
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("ViewMissileCruiser.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("ViewMissileCruiser.fxml"));
|
||||||
|
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 900, 500);
|
Scene scene = new Scene(fxmlLoader.load(), 900, 500);
|
||||||
|
|
||||||
//String stylesheet = Objects.requireNonNull(getClass().getResource("StylesMissileCruiser.css")).toExternalForm();
|
//String stylesheet = Objects.requireNonNull(getClass().getResource("StylesMissileCruiser.css")).toExternalForm();
|
||||||
@ -19,8 +20,8 @@ public class ApplicationMissileCruiser extends Application {
|
|||||||
|
|
||||||
stage.setResizable(false);
|
stage.setResizable(false);
|
||||||
stage.setTitle("Ракетный крейсер");
|
stage.setTitle("Ракетный крейсер");
|
||||||
stage.setScene(scene);
|
|
||||||
|
|
||||||
|
stage.setScene(scene);
|
||||||
stage.show();
|
stage.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
package kvr.missilecruiser_hard;
|
package kvr.missilecruiser_hard;
|
||||||
|
|
||||||
public class Main {
|
public class Main
|
||||||
public static void main(String[] args) {
|
{
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
if (args.length > 0 && args[0].equals("-disable_hidpi")) {
|
if (args.length > 0 && args[0].equals("-disable_hidpi")) {
|
||||||
//System.setProperty("prism.allowhidpi", "false");
|
System.setProperty("prism.allowhidpi", "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
ApplicationMissileCruiser.run(args);
|
ApplicationMissileCruiser.run(args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user