Results 1 to 3 of 3
Thread: How to change line appearance?
- 10-08-2012, 08:32 PM #1
How to change line appearance?
Hi all,
I would like to dynamically change line plot appearance from solid to dashed or dotted.
The only solution found is this one:
using this method
I must use a refresh such asJava FX Code:line.setStyle("-fx-stroke-dash-array: 2 12 12 2;");
where pane is a BorderPane.Java FX Code:pane.getChildren().remove(line); pane.getChildren().add(line);
otherwise line do not turn to dashed from solid.(Windows XP).
Is there a different way other than this one?
What's more, in Linux there is no need to use remove and add, it works correctly.
Thank you all
Susie
- 10-08-2012, 09:05 PM #2
Re: How to change line appearance?
I have found a solution for this issue by using
Is there a way to use these values in a variable so to use as parameters?Java FX Code:line.getStrokeDashArray().addAll(25d, 20d, 5d, 20d);
In example:
public static final DASH_LINE = ......
Regards
Susie
- 10-09-2012, 08:32 AM #3
Similar Threads
-
Netbeans GUI appearance
By scrappy in forum New To JavaReplies: 0Last Post: 08-13-2011, 01:40 PM -
Change appearance of lines in a JTextArea
By blackbird in forum AWT / SwingReplies: 11Last Post: 07-11-2011, 05:58 PM -
Line change in String is not working
By greenhorn in forum New To JavaReplies: 8Last Post: 05-30-2011, 11:17 PM -
How to change the appearance of swing components?
By XmisterIS in forum New To JavaReplies: 4Last Post: 08-25-2010, 10:28 AM -
how to change the appearance of jbuttons
By katie in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 10:26 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks