Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method setLayout(LayoutManager) in the type JFrame is not applicable for the arguments (FlowLayout)
at com.FlowLayout.FlowLayout.<init>(FlowLayout.java:41)
at com.FlowLayout.FlowLayout.main(FlowLayout.java:34)
请问这个问题怎么解决呢? |
|