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 / December 2006

Tip: Looking for answers? Try searching our database.

graph use.......

Thread view: 
rupeshgade@googlemail.com - 18 Dec 2006 14:06 GMT
Hi All,
       First my code....

JPanel panel =new JPanel(new FlowLayout());
      panel.add(sLabel);
       panel.add(sField);
       panel.add(button);
       frame.add(panel, BorderLayout.NORTH);

       final int FRAME_WIDTH =600;
       final int FRAME_HEIGHT =700;
       frame.setSize(FRAME_WIDTH,FRAME_HEIGHT);

       RectangleComponent component = new RectangleComponent();
       frame.add(component, BorderLayout.CENTER);
       frame.setTitle("Hydrophobicity viewer");
       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       frame.setVisible(true);

My question:if i write a String of
AminoAcids(eg..ARTYGSDEJHUSKLFUFKS...) in the textfield,i want to plot
the hydrophobicity values on the graph which is included in the
RectangleComponent.i have made an array of AminoAcid and their
hydrophobicity values but stuck as to how to proceed.Hence help
needed...In short,i want to plot the hydrophobicity values of
AminoAcids on the graph...how to do it???i am short of ideas and
imagination !!!!!!!

Rupesh...
rupeshgade@googlemail.com - 18 Dec 2006 14:09 GMT
Hi,
One more thing...I will appreciate it if anybody could give me some
tutorial links to swing....i am still new to Java so i guess,i would
like to have something which is easy to understand..

Thnx for the help.

Rupesh.
> Hi All,
>         First my code....
[quoted text clipped - 25 lines]
>
> Rupesh...
IchBin - 18 Dec 2006 18:13 GMT
> Hi,
> One more thing...I will appreciate it if anybody could give me some
[quoted text clipped - 33 lines]
>>
>> Rupesh...

Here are links you should reference:

The Java Language Specification, Third Edition
http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html

The JavaTM Virtual Machine Specification Second Edition
http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html

JDK 6 Documentation
http://java.sun.com/javase/6/docs

Java Platform, Standard Edition 6 API Specification
http://java.sun.com/javase/6/docs/api

The Java Tutorial: "The Really Big Index"
http://java.sun.com/docs/books/tutorial/reallybigindex.html

The Java Developers Almanac 1.4
http://www.exampledepot.com

Signature

Thanks in Advance...                  http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA          http://weconsultants.phpnet.us
______________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

rupeshgade@googlemail.com - 18 Dec 2006 19:11 GMT
Hi,
thnx for the links..

Rupesh..
> > Hi,
> > One more thing...I will appreciate it if anybody could give me some
[quoted text clipped - 60 lines]
> 'If there is one, Knowledge is the "Fountain of Youth"'
> -William E. Taylor, Regular Guy (1952-)
IchBin - 18 Dec 2006 20:16 GMT
> Hi,
> thnx for the links..
[quoted text clipped - 63 lines]
>> 'If there is one, Knowledge is the "Fountain of Youth"'
>> -William E. Taylor, Regular Guy (1952-)

Forgot to answer your original question. Right off the start It would be
helpful to look at the sample graph applets distributed with the JDK.

Example for Installed JDK.. here 1.6.0
..\Java\jdk1.6.0\demo\applets\BarChart
..\Java\jdk1.6.0\demo\applets\SimpleGraph

For advance graphic examples look at
..\Java\jdk1.6.0\demo\jfc\Java2D

Signature

Thanks in Advance...                  http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA          http://weconsultants.phpnet.us
______________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

rupeshgade@googlemail.com - 19 Dec 2006 22:22 GMT
Hi,

Thnx for the help..

Rupesh.
> > Hi,
> > thnx for the links..
[quoted text clipped - 80 lines]
> 'If there is one, Knowledge is the "Fountain of Youth"'
> -William E. Taylor, Regular Guy (1952-)
Thomas A. Russ - 19 Dec 2006 00:49 GMT
> Hi,
> One more thing...I will appreciate it if anybody could give me some
> tutorial links to swing....i am still new to Java so i guess,i would
> like to have something which is easy to understand..

http://www.google.com/

Type in "swing tutorial"

Take the first link.

Signature

Thomas A. Russ,  USC/Information Sciences Institute



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.