What is the recommended method of setting the title with setTitle("Title")or super("Title") while extending javax.swing.JFrame in terms of performance?
What is the recommended method of setting the title with setTitle(Title) or super(Title) while
Share
If you grepcode
JFrame(in OpenJDK 6-b14), and dig a bit, you see that the constructorJFrame()calls the constructorFrame(), which callsFrame("")(link).So, since an implicit
super()is added if you don’t specify a call to any super constructor yourself, it would be (although very slightly so) more effective to callsuper("Title").