compomics / compomics-utilities

Open source Java library for computational proteomics
http://compomics.github.io/projects/compomics-utilities.html
30 stars 17 forks source link

Problem creating SpectrumPanel #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I read data using jmzML using their own code 
(http://code.google.com/p/jmzml/source/browse/viewer/trunk/src/main/java/uk/ac/e
bi/jmzml/gui/MzMLTab.java) and create a SpectrumPanel as they do.

What steps will reproduce the problem?
1. Load data using jmzML 
2. Create a SpectrumPanel with previous data
3. Add the SpectrumPanel to a JFrame

What is the expected output? What do you see instead?
I expected that the SpectrumPanel were correctly showed instead of don't see 
nothing in the JFrame and get the execution freezed.

What version of the product are you using? On what operating system?
Last version in Windows 7.

Please provide any additional information below.
jmzMLviewer works well and it is the same code.

Thank you.

Original issue reported on code.google.com by hlfz...@gmail.com on 1 Feb 2012 at 4:02

GoogleCodeExporter commented 9 years ago
Could you send me your code so that I can take a look at it?

Probably just a minor detail.

Original comment by harald.b...@gmail.com on 1 Feb 2012 at 4:56

GoogleCodeExporter commented 9 years ago
I think it may be a problem with the build path because the code is that 
provided in the previous link.

Original comment by hlfz...@gmail.com on 1 Feb 2012 at 5:10

GoogleCodeExporter commented 9 years ago
Not sure I follow. Are you using the MzMLTab directly or just part of the code?

BTW, if you add a SpectrumPanel to another panel you have to make sure that the 
layout is set to BorderLayout or similar (bascially any layout that makes sure 
that the added component fills the entire panel you put it in).

Original comment by harald.b...@gmail.com on 1 Feb 2012 at 5:22

GoogleCodeExporter commented 9 years ago
Thank you very much for your help. Finally, it was a problem with the build 
path because I removed all jar libraries and put it again, and it works.

Now it is time to test it.

Thank you again.

Hugo.

Original comment by hlfz...@gmail.com on 2 Feb 2012 at 3:17

GoogleCodeExporter commented 9 years ago
Great! Don't hesitate to contact us again if you come across other issues.

Original comment by harald.b...@gmail.com on 2 Feb 2012 at 4:47