Hi, sorry for my late answer. I'm very busy, preparing a big trip for this summer :
www.thesuntrip.com
First : the JScoreComponent size.
I placed my JScoreComponent in a JPanel
JScoreComponent scoreUI = new JScoreComponent();
scoreUI.setPreferredSize(new Dimension(myPanel.getWidth(), 200));
scoreUI.setVisible(true);
scoreUI.setBackground(Color.WHITE);
scoreUI.setForeground(Color.BLACK);
scoreUI.setTune(myAbcTune);
scoreUI.setVisible(true);
the scoreUI.setTune changes the size of scoreUI
m_dimension.setSize(m_jTune.getWidth(), m_jTune.getHeight());
setPreferredSize(m_dimension);
setSize(m_dimension);
I recommand then to add the scoreUI in a JScrollPane instead of a simple JPanel.
Second : change margins. This is not automatic (yet)
ScoreTemplate template = scoreUI.getTemplate();
then you can play with template.setAttribute(key, value);
in your case :
ScoreAttribute.STAFF_LINES_SPACING :
Space between two staves, expressed in px or SizeUnit.STAFF_HEIGHT.
Default
value: 1 * staff height
e.g.: setAttributeSize(ScoreAttribute.STAFF_LINES_SPACING, 1.5, SizeUnit.STAFF_HEIGHT);
ScoreAttribute.FIRST_STAFF_TOP_MARGIN
Top margin for first staff, just below the headers, expressed in px or
SizeUnit.STAFF_HEIGHT.
Default value: 0.75 * staff height
...of course all that using the last SVN, not the v0.5 downloadable jar file.
Hope this helps,