Alter the location and the background color of EditPar [message #1042666] |
Tue, 16 April 2013 18:20 |
Fatla 777 Messages: 13 Registered: April 2013 |
Junior Member |
|
|
Hello,
I have an EditPart I need to alter its location and background color.
I have managed to alter its location using:
ChangeBoundsRequest request = new ChangeBoundsRequest(RequestConstants.REQ_MOVE);
request.setEditParts(editPart);
request.setMoveDelta(newLocation);
Command cmd = editPart.getCommand(request);
if (cmd != null && cmd.canExecute()) {
cmd.execute();
}
I have managed to alter the background color by:
editPart.getContentPane().setBackgroundColor(color);
But whenever I close and re open the application,the color changes I made goes away!
How can I commit the background color !
[Updated on: Tue, 16 April 2013 19:34] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03241 seconds