Putting labels on the side of a graph
I'm just finishing off a GUI on which are some graphs. These are drawn via the awt and awt.geom libraries and will take input data.
The problem I'm having is that I can get a label which says 0 on the bottom left of the graph at the axis, but I can't seem to get a label on the top left which would be the maximum value. I've tried using all the anchor points for the BorderLayout manager which is what I'm using, but the label either goes off the frame or overlaps the whole graph causing it to disappear.
I have included the two classes which you will need to run and see the graph, just run the HidableGraphingData class (not actually how it's done in the real GUI, the main method there is just for testing purposes).
To clarify - I want to make a label at the top left of the graph which would be an upper value of the graph, but the layout manager won't let me.
Thanks in advance,