Oracle Forms and PJC's with SwingWorkers
Hello
I'm on Forms 11.1.2.1. I have 2 FMB's. Both of these FMB's contain the same Java component (PJC). One of the FMB's contains a data block, the other only contains control blocks.
The PJC in question needs to do long-running tasks often. For this purpose, I'm using the Java SE 6 SwingWorker class. While the SwingWorker is doing it's job, it displays a JDialog containing a JProgressBar, which has set the property setIndeterminate(true); This property causes the JProgressBar to show an animation instead of a percantage complete, useful when the length of the task is not known in advance.
This works fine - on the FMB with the data block, that is. Here, whenever the longrunning task is executed, the JDialog displays, while the task is executing, the JProgressBar animates correctly, and the JDialog disappears once the task is done.
I'm on Forms 11.1.2.1. I have 2 FMB's. Both of these FMB's contain the same Java component (PJC). One of the FMB's contains a data block, the other only contains control blocks.
The PJC in question needs to do long-running tasks often. For this purpose, I'm using the Java SE 6 SwingWorker class. While the SwingWorker is doing it's job, it displays a JDialog containing a JProgressBar, which has set the property setIndeterminate(true); This property causes the JProgressBar to show an animation instead of a percantage complete, useful when the length of the task is not known in advance.
This works fine - on the FMB with the data block, that is. Here, whenever the longrunning task is executed, the JDialog displays, while the task is executing, the JProgressBar animates correctly, and the JDialog disappears once the task is done.
0