How can I create a JFreeChart control in YAML, using JavaBuilder?
My current form YAML follows:
JFrame(name=frame, title=frame.title, size=packed, defaultCloseOperation=exitOnClose):
- JLabel(name=sortLabel, text=label.sorttext)
- JComboBox(name=sortComboBox, editable=false)
- JScrollPane(name=listScrollpane, vScrollBar=always, hScrollBar=never):
JList(name=batteryList)
- JButton(name=exitButton, text=button.exit, onAction=[$confirm,cancel])
- JPanel(name=graphPanel)
- MigLayout: |
[[fill]]
[] [grow] [grow]
sortLabel sortComboBox graphPanel
listScrollpane+2
exitButton
I tried both JFreeChart
or ChartPanel
in place of JPanel(name=graphPanel)
, but I keep getting this error during debugging: "JFreeChart is not a recognized alias."
I verified jcommon-1.0.16.jar and jfreechart-1.0.13.jar have been added to the project libraries (in NetBeans.)
Does anyone know where I'm going wrong?