#looking for someone who can help me with javafx

13 messages · Page 1 of 1 (latest)

lean gull
#

JavaFx problems, borderpane and gridpane buggin

vital vaultBOT
#

This post has been reserved for your question.

Hey @lean gull! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

lean gull
#

i just have alot of code

#

that would be hard to paste here

#

file 1

package gui;

import domein.DomeinController;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

public class StartUp2 extends Application
{
    @Override
    public void start(Stage stage)
    {
        DomeinController controller = new DomeinController();
        Scene scene = new Scene(new HoofdPaneel2(controller), 1920, 1080);
        scene.getStylesheets().add("styles.css");
        stage.setTitle("Splendor G23"); // Dit zet de titel van de applicatie naar Splendor
        stage.getIcons().add(new Image(getClass().getResource("/gui/images/splendorLogo.png").toExternalForm())); // Dit laat een Splendor logo als icoon van het programma tonen
        stage.setFullScreen(true); //Deze lijn laat het loginscherm direct in fullscreen openen.
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String... args)
    {
        Application.launch(StartUp2.class, args);
    }
}

#

file 2

package gui;

import domein.DomeinController;
import javafx.scene.layout.BorderPane;

public class HoofdPaneel2 extends BorderPane {

    private final DomeinController controller;
    
    
    private final SpelPaneel spelpaneel;

    public HoofdPaneel2(DomeinController controller) {
        this.controller = controller;
        this.spelpaneel = new SpelPaneel(controller,this);
        

        voegComponentenToe();
    }

    private void voegComponentenToe() {


        setCenter(spelpaneel);
        

    }



}


#

my borderpane has 2 gridPanes

#

but they are overlapping

#

even though

#

i have them setTop and setCenter