Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

    Default Simple.i know... Text Display

    Hello fellow Java developers/whateverelseyoudowithjava-ers!

    RiokuTheSlayer here,with an question that's quite simple,yet i haven't found any answers...

    How do i print my text on-screen? Not like System.out.printIn("text") because that prints in the log,not the screen.

    I'm wanting to display "Pause" when i pause the game. i already have all the other code set up,but the most simple part is getting to me. -_- i feel stupid at this point.

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,616
    Rep Power
    5

    Default Re: Simple.i know... Text Display

    You can do it with some variant of JDialog. You can use Graphics.drawString() to draw a String in a JComponent.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  3. #3
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

    Default Re: Simple.i know... Text Display

    i KNEW it was something like that! i just haven't used it at ALL the last few weeks,so i forgot. thanks a ton.

Similar Threads

  1. Replies: 0
    Last Post: 12-09-2010, 05:56 PM
  2. Replies: 1
    Last Post: 12-01-2010, 06:35 PM
  3. Replies: 0
    Last Post: 09-28-2010, 09:52 AM
  4. Replies: 1
    Last Post: 05-31-2010, 08:46 AM
  5. printing simple text as text on printer
    By Nicholas Jordan in forum Advanced Java
    Replies: 0
    Last Post: 12-01-2008, 01:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •