private void loadSequence() { if (isSecuenceSet()) { this.builder.getController().loadInstrument(sequence.getInstrument()); this.play.setEnabled(true); } else { this.play.setEnabled(false); } updateFileName(); }
private void updateFileName() { this.pane.remove(this.fileName); this.fileName = isSecuenceSet() ? new JLabel(sequence.getName()) : new JLabel("No sequence loaded"); this.pane.add(this.fileName); }