From: Tom N. <tho...@gm...> - 2007-10-19 11:58:26
|
Try calling vv.scaleToLayout. Several of our sample apps do this. Tom Nelson On 10/18/07, George Heller <geo...@ya...> wrote: > > Hi, > > I am trying to display a graph on a JPanel(inside a JFrame) when a user > enters some data and clicks the Submit button. I am using the Circle layout. > > My problem is that I do not know how to control the size of the graph, so > when the graph is displayed, I can see some of the vertices, but some of > them are beyond the limits of the JPanel. I want my graph to be displayed in > such a way that the graph is completely visible inside the JPanel. > > Is there a way the graph can automatically adjust to the JPanel size? What > other solutions are possible? > > Btw, I am displaying the graph by reading a PajekNet file. > > Thanks so much. > George > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support > > |