Hiya - fast - is there any harm / value in the JComponent subclass compared to JPanel?
They look the same to me if I make my own drawing and the object will not have any children, however, it seems to have a prefix for subclassing JPanel over JComponent - just looking for opinions on why this might be ...
thanks: -)
If you draw the entire component yourself, use JComponent. JPanel is just a simple concrete instance of JComponent (which is abstract) and is not really intended to override its methods.
JPanel , / , .
Source: https://habr.com/ru/post/1703185/More articles:Automatic loading and displaying images in a form - javascriptHow can I update my win32 GUI application while it waits for another program to finish? - subprocessWhat is the best way to check if a file exists on a network share in Windows Vista? - cWhat does the error in evaluating nil.dependencies mean? - ruby-on-railsOutlook add-in ribbon tooltip - vstoIIS 7 cannot connect to SQLServer 2008 - sql-serverwsdl axis generation - wsdlHow to disable cached queries in Visual Studio test load - testingMysql table indexing optimization for substring queries - sqldesignating a group of members as private / public in C # - privateAll Articles