Guest User

Untitled

a guest
Jan 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def load[ChartType : Manifest](opts : ForexChartOptions) {
  2. val ctClass = implicitly[Manifest[ChartType]].erasure
  3. val mainchart = ctClass.newInstance.asInstanceOf[ChartType]
  4. mainchart.pack()
  5. RefineryUtilities.centerFrameOnScreen(mainchart)
  6. mainchart.setVisible(true)
  7. }
Add Comment
Please, Sign In to add comment