Here's a simple sample that reproduces what my app is doing.
If it matters, I am running JRE 11.0.7_10 from AdoptOpenJDK If I scroll
down and back up, the text on my table disappears. It reappears if I
click on the table.
Works fine here (scrolls up and down, nothing getting blanked when its scrolled back into view.
Compiled and run with:
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
running on
Linux version 5.6.16-200.fc31.x86_64 (mockbuild@bkernel03.phx2.fedoraproject.org)
(gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC))
All I added to your code to get it to compile is:
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
public class Eric
{
/* --- your code here --- */
}
Works fine here (scrolls up and down, nothing getting blanked when its scrolled back into view.
Compiled and run with:
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
running on
Linux version 5.6.16-200.fc31.x86_64 (mockbuild@bkernel03.phx2.fedoraproject.org)
(gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC))
All I added to your code to get it to compile is:
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
public class Eric
{
/* --- your code here --- */
}
On Wednesday, June 17, 2020 at 8:19:00 AM UTC-4, Martin Gregorie wrote:
Works fine here (scrolls up and down, nothing getting blanked when itsLooks fine here as well, I just compiled it with Java 8, problem must be specific to Java 11.
scrolled back into view.
Compiled and run with:
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
running on
Linux version 5.6.16-200.fc31.x86_64
(mockbuild@bkernel03.phx2.fedoraproject.org)
(gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC))
All I added to your code to get it to compile is:
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
public class Eric {
/* --- your code here --- */
}
you can see scrolling down and back up still views the table fine, but the table is much bigger for some reason. I need to add some methods to resize it back to what it was if I need to wrap it in another JScrollPane like that.
Using the Windows zip file v11 hotspot: https://adoptopenjdk.net/releases.html
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 68:54:29 |
Calls: | 6,655 |
Calls today: | 1 |
Files: | 12,200 |
Messages: | 5,332,090 |
Posted today: | 1 |