Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.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: <1166450998.818866.269340@79g2000cws.googlegroups.com> References: <1166450998.818866.269340@79g2000cws.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: 74 Date: Wed, 27 Apr 2011 15:27:28 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918048 96.60.20.240 (Wed, 27 Apr 2011 10:27:28 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:27:28 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:428 To: comp.lang.java.gui 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-) --- * 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