// textArea.setForeground(dlg.getMyColor());
}
}
public String getCurrentPosition() {
XBWave wave = wavePanel.getWave();
if (wave == null) return "0:00.00";
Point point = getMousePosition();
if (point == null) point = new Point(scrollPane.getHorizontalScrollBar().getValue(),0);
float sampleRate = wave.getAudioFormat().getSampleRate();
float position = point.x / sampleRate;
String sub = String.valueOf((long) ((position-Math.floor(position))*100));
if (sub.length()<2) sub = "0" + sub;
String sec = String.valueOf(((long) position) % 60);
if (sec.length()<2) sec = "0" + sec;