Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 26527

Java API SwingGraphicsPanel

$
0
0
Hey there,
i am currently working on a GUI for the COMSOL results using the Java API.
Now i have a very annoying problem.
I use the class SwingGraphicsPanel to display the results but sometimes it messes up the scale.
Whenever I change from a PlotGroup1D to a PlotGroup2D i get a very small picture or no picture at all (to small to display).
I use the same Object of SwingGraphicsPanel to display those PlotGroups but i change the view like this:
myModel.result(resultTag).set("window", "window1");
myModel.result(resultTag).run();
However if i do it the other way round, change from a PlotGroup2D to a PlotGroup1D, it works perfectly.
I would appreciate any helpful comment on the topic.
Best regards
Raimund

Viewing all articles
Browse latest Browse all 26527

Trending Articles