Results 1 to 3 of 3
  1. #1
    ravjot28 is offline Member
    Join Date
    Jun 2008
    Rep Power

    Default Help needed in Frames text alignment

    I went through all the process of frames and alignment of multi lines text written in APPLET TAG .But can any one suggest a easier way to align the text that is in APPLET TAG.

    <applet code="...." width=.. height=..>
    <param name="TEXT" value=Hi how r u.I am fien .holla.adfsf adfasff.fsdf f wrfa.dasf werfewfd.fc dsf wsf .dfsfsfsdfsf reqwrad dasfasfwe.>

    now i want to align the above text in my frame any short and easy method

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Rep Power


    Depends on what your applet is doing with this text.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    Could you give an example of how you want the text aligned?
    Basically, get the String into the applet.
    Break the string up into sections
    Then it depends on the type of alignment: LEFT, RIGHT or CENTER
    Then it depends on where you are displaying the sections:
    In a Panel by using drawString(), in a TextArea or ???

    Figure out the above and come back with some more details.

Similar Threads

  1. Alignment Issue...
    By chanduseec in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 09-30-2008, 06:47 AM
  2. [SOLVED] Internal frames inside a MDI form
    By Melki in forum AWT / Swing
    Replies: 3
    Last Post: 07-01-2008, 06:55 AM
  3. Editing video frames in JMF
    By russ2620 in forum Networking
    Replies: 0
    Last Post: 05-30-2008, 11:26 PM
  4. alignment of textfield in awt
    By nitinborge5 in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 11:16 AM
  5. will java webBrowser work with frames
    By elipford in forum New To Java
    Replies: 2
    Last Post: 06-04-2007, 03:26 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