posted 14 years ago
I have some code that uses VerticalUI to create a vertical JLabel. The code works great after the program is running and you replace the panel with the JLabel, but before that replace the JLabel text is normal, the UI's paint method is not called when the JLabel is created. How can I force a paint() or create a JLabel with vertical text that will show the text vertical from the beginning, I have tried calling paint(this.getGraphics,this) and the graphics object is always null???
Label Code:
VerticalUI code: