Skip to content

Instantly share code, notes, and snippets.

@maji-KY
Created February 15, 2015 15:58
Show Gist options
  • Save maji-KY/9a7e7724e6dec13169b6 to your computer and use it in GitHub Desktop.
Save maji-KY/9a7e7724e6dec13169b6 to your computer and use it in GitHub Desktop.
processing swing
package com.neco_labo.processiong
import javax.swing.JFrame
import com.neco_labo.processing.Test
/**
* Created by maji-KY on 2015/02/14.
*/
object ShowTest extends App {
Test.init()
val mainFrame = new JFrame("TEST")
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
mainFrame.setSize(400, 400)
mainFrame.setLocationRelativeTo(null)
mainFrame.add(Test)
mainFrame.setVisible(true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment