0
스윙 응용 프로그램을 작성하고 클래스 내부의 객체를 만들고 싶습니다. 그러나이 작업을 수행하려고 할 때 "심볼 정렬을 해결할 수 없습니다"라는 오류 메시지가 나타납니다. 누군가 내가 잘못하고있는 것을 나에게 설명 할 수 있습니까?스칼라 스윙 응용 프로그램 내에서 클래스에 액세스하는 방법
package scala.swing
package test
import event._
object Pite extends SimpleSwingApplication {
def top = new MainFrame {
val seq1Label = new Label("Insert First Sequence")
val seq2Label = new Label("Insert Second Sequence")
val seq1 = new TextArea("Input")
val seq2 = new TextArea("Input")
var gap = new ComboBox(List(1,2,3,4)) { makeEditable() }
var scoringMatrix = new ComboBox(List("BLOSUM62.txt","BLOSUM50.txt","BLOSUM100.txt"))
val button = new Button("RUN")
val ali = new TextArea{
text = "test"
listenTo(button)
reactions += {
case ButtonClicked(`button`) =>
val gapVal = gap.selection.item
val seq1container = seq1.text
val seq2container = seq2.text
val SMcontainer = scoringMatrix.selection.item
val proteins = new Alignment(seq1container,seq2container,gapVal,SMcontainer)
text = proteins.aligning
}
}
contents = new BoxPanel(Orientation.Vertical) { contents.append(seq1Label,seq1,seq2Label,seq2,scoringMatrix,gap,ali,button) }
}
}