Detector: | GrouMiner |
Target: | project ' synthetic ' versionpack-1 |
Misuse: | misuse ' pack-1 ' |
Tags: |
Details about the known misuse from the MUBench dataset.
Description: | Calls JFrame.setVisible(true) before JFrame.pack(). This may lead to undesired effects, such as the window being moved to the default plattform location. |
Fix Description: | Call JFrame.pack() before JFrame.setVisible(true). |
Violation Types: |
|
In File: | PackAfterVisible.java |
In Method: | misuse(JFrame) |
Code with Misuse: |
|