Oracle Forms (MOSC)

MOSC Banner

Oracle Forms and PJC's with SwingWorkers

edited May 28, 2013 2:26AM in Oracle Forms (MOSC) 3 commentsAnswered
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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center