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