Skip to content

Commit 945c588

Browse files
committed
create a final sulotion
1 parent 2e3404c commit 945c588

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

.idea/artifacts/App.xml

+11-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

App/src/view/Factory.kt

-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ object Factory {
5050
minusButton.addActionListener { action -> manageAverage(-5) }
5151
frame.add(minusButton, BorderLayout.EAST)
5252

53-
setupFrame()
54-
5553
frame.defaultCloseOperation = JFrame.EXIT_ON_CLOSE
5654
frame.isResizable = false
5755
frame.isVisible = true

App/src/view/FinderGUI.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ import java.awt.BorderLayout
99
* Created by ice1000 on 16-8-6.
1010
*/
1111
open class FinderGUI(title: String, var graph: Finder666) {
12-
val frame = Factory.create(title, { setupFrame() }, { file -> graph = graph.createFromFile(file) })
1312
val panel = FinderImagePanel(graph)
13+
val frame = Factory.create(title, { setupFrame() }, { file -> graph = graph.createFromFile(file) })
1414

1515
init {
1616
frame.add(panel, BorderLayout.CENTER)
17+
setupFrame()
1718
}
1819

1920
private fun setupFrame() {

0 commit comments

Comments
 (0)