Questions tagged [pane]

294 questions
5
votes
1 answer

JavaFX Scaling Shape without moving the origin

i have a problem with the scaling ability for my shapes. I want to use a coordinate system so drawn by my own which holds some shapes. These shapes needs a scaling function. After scaling the shapes they would move because the scaling takes place at…
user2246718
  • 63
  • 2
  • 5
5
votes
1 answer

what does error mean? warning: [static] static method should be qualified by type name, AnchorPane, instead of by an expression

I am getting this warning: warning: [static] static method should be qualified by type name, AnchorPane, instead of by an expression here is my code: public Chart(Vector v, final Pane p, final AnchorPane ap){ super(); this.v = v; …
user1958884
  • 303
  • 3
  • 8
  • 14
4
votes
3 answers

JavaFX ImageView fits container

I'm trying to fit an ImageView in an AnchorPane, the ImageView is obtained from a database, so no CSS, I tried binding the width and height of the ImageView withe the width and height of the AnchorPane, but I get this result: Here's my fxml:
user7128116
4
votes
2 answers

How can I determine the layering of panes in JavaFX

I would like to persist a workspace and then restore it when the user opens the window a second time. For example I have the following: //Create the workspace there the panes will live Pane workspace = new Pane(); //Create the layers - assume…
purring pigeon
  • 4,141
  • 5
  • 35
  • 68
4
votes
2 answers

how to make child auto-resize (child is Pane, parent is VBox) in javafx

I have 2 questions 1.in a javafx application, I want to put the child(crosshairArea) at the left-top corner of its parent, with 1/2 width and height as well. think I can do that via override the parent function "layoutChildren" (VBox), is there…
Rui Zhou
  • 209
  • 1
  • 3
  • 9
4
votes
1 answer

How to create panes that's won't be destroyed when I quit the command that it's running inside?

I would like to create panes in tmux like so : $ tmux new-session -d -s mysession "while true; do sleep 1; ls; done" $ tmux split-window -h "while true; do sleep 1; ls -l; done" Running it this way, when I cancel the command that is running in…
Patryk
  • 22,602
  • 44
  • 128
  • 244
3
votes
0 answers

How can I prevent my Javafx Pane from resizing to fit it's children

I am currently using JavaFX Pane and have a ball class (an Imageview) within it that I want to bounce off the edges of it like is detailed here however the minX of the Pane seems to get smaller as the ball goes off the edge of it. It seems the Pane…
Makori SM
  • 81
  • 5
3
votes
1 answer

Spyder shows two editors

While writing code in Spyder, I have accidentally pressed a control which caused Spyder to show to editors next to each other. What can I do to close one editor?
Emil
  • 1,531
  • 3
  • 22
  • 47
3
votes
1 answer

Save pane configurations / sessions in atom

Usually I see myself developing a component in react, for example, and every time I edit this component I need to edit also related files like css ones or inner components. I, moreover, like to have this files organized in different panes, see the…
R01010010
  • 5,670
  • 11
  • 47
  • 77
3
votes
0 answers

iterm2: how to use just one pane but multiple columns?

it's easy to split panes in iterm2, but that will create multiple prompts/sessions, one for each pane. What i need is to use just one pane and keep one prompt, but there could be multiple columns, so when there are lots of text (narrow in width,…
user3236895
  • 1,415
  • 2
  • 12
  • 13
3
votes
2 answers

JAVAFX - Change specific Pane only using 1 window

Can you Help me how to change the Spesific pane in 1 scene. So when i want to click the Menu A. The Content will change to content A. And when i click the menu B. The Content will be change to Content B i try with the 2 FXML and using normal…
user2060740
  • 31
  • 1
  • 4
3
votes
2 answers

how to center a label on a pane in javafx

I'd like to set results to the centre of Pane. Label results = new Label("You win"); Pane pane = new Pane(); pane.getChildren().add(results); I've tried both lines of code below and neither…
Jason Monsalve
  • 37
  • 1
  • 1
  • 5
3
votes
0 answers

Cloning children of pane - JavaFX

So I have a Pane with some components in it (Groups and Polygons) and I wanted to make a copy of this Pane, but whenever I do the following it seems like it deletes the children of the original Pane and transfers it to the new one. Pane pane1 = new…
Karatawi
  • 378
  • 2
  • 6
  • 16
3
votes
1 answer

What is the best way to mix clickable SVG polys and divIcon markers in Leaflet.js?

I have a map which pulls in GeoJSON polygons and points. I represent these using the standard Leaflet methods to create SVG and html markers respectively. To get an idea: https://i.stack.imgur.com/cXiJQ.jpg SVG = blue, markers = green. Leaflet…
Sebastian Thomas
  • 1,245
  • 13
  • 20
3
votes
2 answers

JavaFx Button-Event Bubbling

I am working on a project using javafx within java8. I focused a weird situation: A panel ( of the class javafx.scene.layout.Pane) containing a button (javafx.scene.control.Button) and another pane. I expect a mouse-clicked event to be bubbled up to…
blaster
  • 845
  • 1
  • 10
  • 25
1 2
3
19 20