Thanks that worked just like how i was wanting it, but why does it work when i just add an "f" at the end of that number. I mean i understood it had to be a float but my understanding was that...
Type: Posts; User: Khoatic
Thanks that worked just like how i was wanting it, but why does it work when i just add an "f" at the end of that number. I mean i understood it had to be a float but my understanding was that...
so im coming up with a program that im wanting to have a button, but it isnt showing with my graphics on the frame and i dont know what to do.
Im trying to pretty much combine these two pictures...
ok here is my new code, yet it still doesnt seem to be changing
public void paintComponent(Graphics g)
{
// Recover Graphics2D
Graphics2D g2 = (Graphics2D) g;
Line2D.Double...
The String newWord contains a string like(_ _ _ _) and what im trying to do is make whatever is in the variable newWorld display on the JFrame, to be bigger font.
...
So im trying to adjust the size on this graphic component code anyone have any ideas?
public class DisplayComponent extends JComponent
{
private boolean hasLetter = false;
private...
so im trying to make a program(game) that simulates a hangman game. Though im running into serveral issues. im using a JFrame to make the box that shows the actual game process, such as how you...
Write a program called RectangleFive. It should have a method which, when called on an arbitrary rectangle (not just square), will make the length of each rectangle side grow to be 5 times as large,...