Search:

Type: Posts; User: Khoatic

Search: Search took 0.18 seconds.

  1. Re: how to adjust the size on a graphic component

    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...
  2. Replies
    3
    Views
    1,664

    JButton issue, please help

    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...
  3. Re: how to adjust the size on a graphic component

    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...
  4. Re: how to adjust the size on a graphic component

    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.
    ...
  5. how to adjust the size on a graphic component

    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...
  6. Replies
    1
    Views
    2,016

    help with JFrame, drawing, and JButtons

    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...
  7. Replies
    2
    Views
    3,510

    grow a rectangle in java

    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,...
Results 1 to 7 of 7