Based on the 2nd screenshot, I'm guessing that the problem is indeed related to
the background thread. Try setting the label text using a callback - that
should resolve the problem.
On Oct 21, 2010, at 9:04 AM, MSafiri wrote:
>
> Hi Greg,
>
> Here is the code I am currently using:
>
> cmdDone.getButtonPressListeners().add(new ButtonPressListener() {
> @Override
> public void buttonPressed(Button cmdDone) {
> boolean bolTaskDependent =
> chkTaskDependent.isSelected();
> boolean bolResourceDependent =
> chkResourceDependent.isSelected();
> boolean bolStartMs = chkStartMs.isSelected();
> boolean bolFinishMs = chkFinishMs.isSelected();
> boolean bolWbsSummary = chkWbsSummary.isSelected();
> boolean bolLOE = chkLOE.isSelected();
>
> boolean bolNoneSelected = false;
>
> if(!bolTaskDependent && !bolResourceDependent &&
> !bolStartMs &&
> !bolFinishMs && !bolWbsSummary && !bolLOE){
> bolNoneSelected = true;
> }
>
> Form.Flag flag = null;
> if (bolNoneSelected) {
> flag = new Form.Flag(MessageType.ERROR, "Please select
> at least one activity type.");
> bolNoneSelected= false;
> Form.setFlag(checkBoxPane, flag);
> } else {
> lblProgressIndicator.setText("sample text");
> sheet.open(window);
> sheet.repaint();
> }
> }
> });
>
> The lblProgressIndicator is a Lable located on a Sheet, which is owned by
> the main application window (inserted an image Pivot1.png). I also attached
> a picture showing the sheet (Pivot2.png).
>
> I will check your proposal about the thread issue with my colleague who
> knows a lot more about coding than me.
>
> Thanks alot,
>
> MSafiri
> http://apache-pivot-users.399431.n3.nabble.com/file/n1745479/Pivot1.png
> http://apache-pivot-users.399431.n3.nabble.com/file/n1745479/Pivot2.png
> --
> View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/HostFrame-Size-How-to-calculate-tp1736915p1745479.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.