JAVA gui help needed

Discussion in 'Software' started by MutD, Nov 24, 2005.

  1. MutD

    MutD Specialist

    Hey all,
    Im pretty much a beginer at Java and need help laying things out in my program.

    I want to set a TextField to have more than one row, so TextField(25) would give a TextField with 25 columns but how do I show 25 rows and say, 10 columns?

    Also can I set a Panel to have a specific size and place it in a specific place on my program?
     
  2. BrokenArrows

    BrokenArrows Sergeant

    I believe its JTextField(rows, cols);

    not 100% but if that dosent work try using a jTextArea();
     
  3. bytegoddess

    bytegoddess Private E-2

    Hi there,

    It looks like you might really benefit from this link... I know I did:

    http://javaalmanac.com/

    It gives a LOT of really good code samples, straight from the source (Sun)... good luck, and have fun!

    Regards,
    Barbara
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds