Detector: | GrouMiner |
Target: | project ' synthetic ' versionpack-1 |
Misuse: | misuse ' pack-1 ' |
Tags: |
Details about the known misuse from the MUBench dataset.
Description: | Calls JFrame.setPreferredSize() after JFrame.pack(), such that the size is not respected when rendering the frame. |
Fix Description: | Call JFrame.setPreferredSize() before JFrame.pack(). |
Violation Types: |
|
In File: | Pack1.java |
In Method: | misuse(JFrame, Dimension) |
Code with Misuse: |
|
Code with Pattern(s): |
|