Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2005

Tip: Looking for answers? Try searching our database.

newbie question - chat component

Thread view: 
houbahop - 10 May 2005 21:49 GMT
Hello,
I will maybe use java to translate a msn client that I have started to code
in vb.
I have used a lot of tricks to make the visual aspect like I want and I am
bored with all those nasty tricks , so, is it possible in java, (and if yes,
is it easy) to have a component where :

-you can put non editable text
-set a background picture (or to have a truely transparent component with
alpha color mask)
-set a graphic picture anywhere (let's say a smiley) with a TRANSPARENT
background color
- put some hyperlinks
- where text can be highlighted (this is possible in rtf..)

thank you,
Houbahop.
Michael Rauscher - 10 May 2005 22:43 GMT
houbahop schrieb:
> Hello,
> I will maybe use java to translate a msn client that I have started to code
[quoted text clipped - 10 lines]
> - put some hyperlinks
> - where text can be highlighted (this is possible in rtf..)

Java is a programming language and this language doesn't know anything
about graphics or visual components.

It would be the same if I'd ask, if your requirements can be met using C
or C++.

It depends on what libraries you use.

Fortunetaly, the Java Platform includes a large set of them. Dealing
with graphics, windows and components may be done using AWT and Swing -
without having to install any additional libraries.

If you don't like AWT/Swing, you can use 3rd party libraries like SWT.

So, to answer your question: it's possible with Java, it's possible
using AWT/Swing (which are part of the Java Platform) and it's possible
using 3rd party libraries.

Easy? Depends on what is easy to you.

Have a look at the Java Tutorial, especially at the trail that deals
with text components:

http://java.sun.com/docs/books/tutorial/uiswing/components/text.html

Bye
Michael
houbahop - 10 May 2005 23:52 GMT
Thank you,
By saying easy, I mean: possible without using hacks like I was doing with
vb.
I was using subclassing a lot wich makes it hard to keep a stable system.
What I mean by easy is to resume : that is not an infamous programming that
can lead to undefined behaviour :D.

maybe was not the correct word for what I was thinking, sorry ;)

> houbahop schrieb:
>> Hello,
[quoted text clipped - 39 lines]
> Bye
> Michael


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.