Dan Platon

Greenhorn
+ Follow
since Jan 27, 2004
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 Dan Platon

Although it's a Struts question I will answer it here:

Yes, you can use struts actions in normal html <form>s, just be sure to specify the whole path to the action, something like /myApp/myAction.do
Example:


Hope this helps.

Dan
13 years ago
Hello...
Can you give us more details ? You want to delete it programatically ? If som, can you paste some code from the table model you are using ?
Dan
15 years ago
Hello all !
Here's my problem:
I have a JInternalFrame onto which I draw several components. when this frame initializes it has a grey background color which I want changed into some other. In the internal frame's constructor I use setBackground(Color.WHITE) but it has no effect. I've tried to do this in the constructor of the JPanel which is into the internal frame. Same result.
What am I doing wrong ?
Thanks in advance,
DAN
15 years ago
Hello everyone !
I've developed an application to draw workflows (basically just boxes connected with arrows but hey ! it's a workflow !). These drawings are placed onto a panel which is placed on a JScrollPane. To enable scrolling when a box is dragged outside the visible area I use the following code:

The above code was placed in the mouseReleased method and worked fine.
I have recently added a save/load feature for the diagrams, so that a user can load a previously created diagram. The problem is the diagram loads properly but even if it was larger than the actual screen the the scrollbars did not appear (which is normal, because no mouseReleased event occured). Then I put the same code with minor modifications in the paintComponent method of the panel:

Now the scrollbars appear but I cannot use them, because the panel keeps on scrolling to the "farthest" box on the panel.
Could anyone help me please, i'm new in swing !
Thanks,
DAN
15 years ago