 So one of the things we have to deal with now that we're working inside of Java is we're dealing with a two-dimensional plane And so we have to kind of revisit geometry for a second. And so if we take a look, this is our traditional Cartesian plane so traditional Cartesian plane Created by Descartes years ago. Just just years ago decades ago. That's decades ago But the main focus I want to point out is sort of my positive numbers Are on the left my positive numbers are on the top my negative numbers on the well Oh, sorry my negative numbers are on the left. So negative one positive numbers on the right Negative numbers are on the bottom. So this is negative one negative two negative three positive one positive two positive three So that's how our traditional Cartesian plane works Here's the problem. This is not how the computer operates Let's think about this for a second permit me to remove some stuff If we thought about sort of how The screen works the if we think about if you've ever recorded a video It kind of does this if you ever recorded a video on a screen It does this kind of motion over and over again You can see this line that just kind of appears over and over again. What's happening is it's refreshing meaning Every single kind of time you see that happen. It's going through and Redrawing the pixels on the screen now. I'm doing it really fast and so it's like a helicopter spin You know helicopters going really fast, but oh look at that. I can Make out the propeller going around same kind of things going on as it goes through it says oh, I need to Make everything over here Redraw move to the next line everything here redraw move to the next line everything here move boom Then go back to the top do it again This is actually where we get the idea of Hertz So if your computer or your monitor TV, whatever if you it ever says 120 Hertz what it's saying is how many times does it reprint itself every second? But that's a tangent. I need to deal with the fact that this even though it's traditional is not correct in Java since we actually now work off something called Another style of coordinate system the same kind of process goes on here, but everything is Flipped so my x and y now instead of it being this as my positive side And this being my negative side this is now my positive side This is now my negative side. So this for example is positive one This is positive two. This is positive three now my exes they don't change. So this is still One this is still two. This is still three, but it is something we have to be aware of Especially when we get into our GUI again this You notice when we ran it We never changed where my button Located so it still appears only right here. So what do I have to do? Well in that case I actually need to add a few other adjustments Just like you see I have set title set scene show for primary stage My button actually has a few methods of its own and if I reference BTN Okay, don't you see I get a slew of them and if I do set what I'm actually going to look for something called set layout x Now what set layout x does is if it's not set if you don't ever put something in there it by default is Zero so top left or top left Now if I specify inside I'm going to go with it's going to be a Hundred it's gonna be a hundred pixels to the right well as you can imagine I have one if I have a set layout x I have a set layout y and this time instead of it being a hundred I'm going to say that it goes only 30 pixels down again down and not up Down and when I run this what we're gonna see is now exactly that my button moved a hundred pixels over here and then 30 pixels down starting here drawing outward So that allows me to now kind of add in another one. Well, what would have oh add in another one That seems like an interesting thing. What if I made another button? All right. Well, if I made another button I'm gonna call this one. Okay cancel And I'm gonna do the exact same song and dance that I did with button, but I'm gonna flip things around I'm gonna change it from a hundred thirty to thirty 100 and then down here just like I did BTN. Okay, I'm gonna change this from BTN. Oh, I'm gonna change this from add To add All notice what I get here. I get this option of adding in more than one element And I'm gonna say BTN. Okay, comma BTN Cancel and what this is going to do is this is gonna get added This is going to get added and when we take a look at this what we should see is two buttons now on my screen I now have one here and one here