Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Java API SwingGraphicsPanel

Please login with a confirmed email address before reporting spam

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

0 Replies Last Post 2013年8月13日 GMT-4 09:38
COMSOL Moderator

Hello Raimund Reppich

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.