Bug 590 - Panel duplicates when rendering.
Summary: Panel duplicates when rendering.
Status: RESOLVED FIXED
Alias: None
Product: Group31Bullship
Classification: Unclassified
Component: User Interface (show other bugs)
Version: Demo 1.1
Hardware: PC Windows
: --- enhancement
Assignee: Fiona Ling
URL:
Depends on:
Blocks:
 
Reported: 2021-11-21 00:31 HKT by Fiona Ling
Modified: 2021-11-21 01:57 HKT (History)
2 users (show)

See Also:


Attachments
screen capture to the bug (57.65 KB, image/png)
2021-11-21 00:31 HKT, Fiona Ling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fiona Ling 2021-11-21 00:31:37 HKT
Created attachment 94 [details]
screen capture to the bug

Problem Description:
In Calculator page, when press history tab to change page, 2 tabs moved to centre.
When press calculator,  the tab on above become thinner. 
When press the history tab again, duplicated tabs appear in centre.
Keep repeat the steps above will make the tabs keep duplicating.
Step to Reproduce:
Continue as manager
Press History tab
Press Calculator tab
Press History tab
keep repeat the steps above
Actual result:
Change page fail
Tabs above the page keep duplicating on upper part of the page and centre of the page.
Expected result:
Pressing tabs allow user to change page. Tabs will not duplicate.
Comment 1 SamJim 2021-11-21 01:57:13 HKT
This problem is due to not creating a new JPanel object when rendering new page, which induces new elements from the new rendering page like buttons being forced to add into an old pane with content.
This is fixed by creating a new JPanel for every rendering.