Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!transit4.readnews.com!textspool2.readnews.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "IchBin" Subject: Re: graph use....... Message-ID: X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <1166469106.184659.147800@80g2000cwy.googlegroups.com> References: <1166469106.184659.147800@80g2000cwy.googlegroups.com> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 97 Date: Wed, 27 Apr 2011 15:27:30 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918050 96.60.20.240 (Wed, 27 Apr 2011 10:27:30 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:27:30 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:432 To: comp.lang.java.gui rupeshgade@googlemail.com wrote: > Hi, > thnx for the links.. > > Rupesh.. > IchBin wrote: >> rupeshgade@googlemail.com wrote: >>> 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. >>> rupeshgade@googlemail.com wrote: >>>> 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... >> 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 >> >> -- >> 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-) > 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 -- 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-) --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24