I need to import a plot graph from matlab into java swing GUI? Is there any way to do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If matlab saves the plot as an image file (say, GIF or PNG or something) then you can use
Toolkit.getImage()orcreateImage()to read it in and thendisplay it on a Swing component either as an
IconImage(for those components that have icons, such asJLabel) ordraw it in a component’s
paintComponent()method usingdrawImage().