Sabina Norderhaug

Greenhorn
+ Follow
since Oct 29, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sabina Norderhaug

I am trying to compare two options Hessian protocol and KryoNet
based on the following criterias:
1. Size of the overall community
2. Responsiveness of the developers to questions/problems
3. Cross platform support
4. Ease of programming

If you have an experience with either one of them of both, please share. We need to separate native libraries by running them on a separate JVM from Jboss jvm.

Thanks.
12 years ago
[del] sorry didn't notice comment about Mac
[ January 20, 2004: Message edited by: Sabina Norderhaug ]
20 years ago
I have wait cursor set in action_Performed as:
mLoginDialog.startWaitCursor(mLoginDialog.getRootPane());
where

/** Sets cursor for specified component to Wait cursor */
public static void startWaitCursor(JComponent component) {
RootPaneContainer root =
(RootPaneContainer)component.getTopLevelAncestor();
root.getGlassPane().setCursor(WAIT_CURSOR);
root.getGlassPane().setVisible(true);
}
/** Sets cursor for specified component to normal cursor */
public static void stopWaitCursor(JComponent component) {
RootPaneContainer root =
(RootPaneContainer)component.getTopLevelAncestor();
root.getGlassPane().setCursor(DEFAULT_CURSOR);
root.getGlassPane().setVisible(false);
}

When I click the button, I see default wait cursor (sandglass) no probelm. But if I move mouse outside this frame and then move it back, cursor changes to one of the resize cursor, so it looks like either horizontal or vertical 2 point arrow.
I wonder why this is happening and how can I avoid it?
Thank you,
Sabina
20 years ago
I have wait cursor set in action_Performed as:
mLoginDialog.startWaitCursor(mLoginDialog.getRootPane());
where

/** Sets cursor for specified component to Wait cursor */
public static void startWaitCursor(JComponent component) {
RootPaneContainer root =
(RootPaneContainer)component.getTopLevelAncestor();
root.getGlassPane().setCursor(WAIT_CURSOR);
root.getGlassPane().setVisible(true);
}
/** Sets cursor for specified component to normal cursor */
public static void stopWaitCursor(JComponent component) {
RootPaneContainer root =
(RootPaneContainer)component.getTopLevelAncestor();
root.getGlassPane().setCursor(DEFAULT_CURSOR);
root.getGlassPane().setVisible(false);
}

When I click the button, I see default wait cursor (sandglass) no probelm. But if I move mouse outside this frame and then move it back, cursor changes to one of the resize cursor, so it looks like either horizontal or vertical 2 point arrow.
I wonder why this is happening and how can I avoid it?
Thank you,
Sabina
20 years ago

Originally posted by Garandi Garandi:
use


My parent UI extends JPanel. I cannot apply addPropertyChangeListener(this); to it.
I can probably set parent UI to implement PropertyChangeListener and add propertyChange method to it.
Then again I already have PropertyChangeListener added to Date buttons within my child dialog.
Looks like I need to change the whole design
20 years ago
I have child dialog for choosing dates which is called from parent UI:
This dialog implements PropertyChangeListener and there is a corresponding propertyChange method which sets new values for the dates.

Here is the code I have in parent UI to call this dialog:
Date startDate;
Date endDate;
ChooseDatesDialog datesChoice = new ChooseDatesDialog();
ClientUtils.centerWindowOnTheScreen(datesChoice,220,160);
datesChoice.setTitle("Choosing dates");
datesChoice.setVisible(true);
How do I capture the event when date values are set within child dialog in this parent UI?
Thanks,
Sabina
20 years ago