Revision 16559
trunk/extensions/extRasterTools-SE/src/org/gvsig/raster/util/ExtendedFileFilter.java | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
package org.gvsig.raster.util; |
20 | 20 |
|
21 |
import java.awt.Color; |
|
21 | 22 |
import java.io.File; |
22 | 23 |
import java.util.ArrayList; |
23 | 24 |
|
25 |
import javax.swing.JTextPane; |
|
24 | 26 |
import javax.swing.filechooser.FileFilter; |
27 |
import javax.swing.text.Style; |
|
28 |
import javax.swing.text.StyleConstants; |
|
29 |
import javax.swing.text.StyleContext; |
|
30 |
import javax.swing.text.StyledDocument; |
|
25 | 31 |
|
26 | 32 |
import com.iver.andami.PluginServices; |
27 | 33 |
/** |
... | ... | |
41 | 47 |
* Constructor de un ExtendedFileFilter |
42 | 48 |
*/ |
43 | 49 |
public ExtendedFileFilter() { |
50 |
JTextPane textPane = new JTextPane(); |
|
51 |
StyledDocument document = textPane.getStyledDocument(); |
|
52 |
|
|
53 |
String a; |
|
54 |
a.length() |
|
55 |
Style justified = document.addStyle("justified", StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE)); |
|
56 |
StyleConstants.setAlignment(justified, StyleConstants.ALIGN_JUSTIFIED); |
|
57 |
StyleConstants.setForeground(justified, new Color(90,0,90)); |
|
58 |
|
|
44 | 59 |
} |
45 | 60 |
|
46 | 61 |
/** |
Also available in: Unified diff