Results 1 to 4 of 4
  1. #1
    mr_sandman is offline Member
    Join Date
    Aug 2011
    Posts
    5
    Rep Power
    0

    Default simple questiion

    is there anyway to shift down to a new line in a print statement or dialogue box? i remember in C you typed something like /t but that does not seem to work in java.

    thanks

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    \t is a tab, you want \n for the new line character.

  3. #3
    mr_sandman is offline Member
    Join Date
    Aug 2011
    Posts
    5
    Rep Power
    0

    Default

    thanks thats really been bugging me

  4. #4
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,800
    Rep Power
    7

    Default

    Also, certain GUI components render html so you can use the <br> tag

Similar Threads

  1. Simple program, simple problem
    By taymilll in forum New To Java
    Replies: 12
    Last Post: 06-20-2011, 06:12 AM
  2. Please help with simple program.. Very simple.
    By jonytek in forum New To Java
    Replies: 7
    Last Post: 02-14-2011, 01:44 AM
  3. 30 line simple gui, simple error, need help
    By cc11rocks in forum New To Java
    Replies: 6
    Last Post: 02-05-2011, 09:33 PM
  4. New simple application using a simple database
    By webbusiness23 in forum New To Java
    Replies: 9
    Last Post: 08-03-2009, 03:55 AM
  5. Replies: 2
    Last Post: 05-04-2008, 06:27 PM

Posting Permissions

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