This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Regarding java.awt.TextArea

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,
At present Iam using AWT to build an interface in an applet. I can't switch to Java Swings as every client may not have plugin to render swing components. So, I want to accomplish interface through AWT components only. Can anyone guide me how to display images in java.awt.TextArea and how to display text in different colors in java.awt.TextArea. Is there any alternate way to accomplish this through AWT?
Regards,
Ch.Praveen
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Praveen,
U cant display diff text in diff colors in a JTextArea. U can very well do it in JTextPane or JEditorPane. I hope with the image also the case. U cant do it in JTextArea and can do it in JTextPane or JEditorPane. Why cant u try out in JTextPane.....
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by ch praveen:
Hello Friends,
At present Iam using AWT to build an interface in an applet. I can't switch to Java Swings as every client may not have plugin to render swing components. So, I want to accomplish interface through AWT components only. Can anyone guide me how to display images in java.awt.TextArea and how to display text in different colors in java.awt.TextArea. Is there any alternate way to accomplish this through AWT?
Regards,
Ch.Praveen


Not easily. You might be able to write a custom AWT component to do this but I wouldn't want to try it.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jeba Raj:
...Why cant u try out in JTextPane.....


Could it be because he said...


I can't switch to Java Swings as every client may not have plugin to render swing components.


 
Every plan is a little cooler if you have a blimp. And a tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic