Color sorting JXList - SwingX-style

This is triggered by
overloaded radio buttons -- good GUI design?
but completely unrelated to what's currently discussed there: it's Friday afternoon and I simply couldn't resist to take the color list and show-off sorting SwingX-style :-)
- JXList supports sorting out-off-the-box, only needs to be enabled
- custom configuration of the text shown is done in a custom StringValue (aka: converter from some type to String)
- SwingX default renderers are pluggable with the converter
- custom visual decoration is done with a custom Highlighter
- JXList is configurable with one are more Highlighters
Enjoy
Jeanette
To run the code, you'll need SwingX 1.6.2 including the test support and the classes from ColorName/NTC (yeah, locally changed the spelling to comply to Java naming conventions) from the SIHWheel in the other thread
* Created on 05.11.2010
package original;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.math.BigInteger;
import java.util.Comparator;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.ListModel;
import org.jdesktop.swingx.InteractiveTestCase;
import org.jdesktop.swingx.JXFrame;
import org.jdesktop.swingx.JXList;
import org.jdesktop.swingx.decorator.AbstractHighlighter;
import org.jdesktop.swingx.decorator.ComponentAdapter;
import org.jdesktop.swingx.decorator.Highlighter;
import org.jdesktop.swingx.graphics.PaintUtils;
import org.jdesktop.swingx.renderer.DefaultListRenderer;
import org.jdesktop.swingx.renderer.StringValue;
import org.jdesktop.swingx.renderer.StringValues;
import org.jdesktop.swingx.sort.DefaultSortController;
public class ColorExperiments extends InteractiveTestCase {
    public void interactiveColorXList() {
        final JXList list = new JXList(createColorNameModel());
        list.setAutoCreateRowSorter(true);
        list.setCellRenderer(new DefaultListRenderer(createColorNameSV()));
        final JComboBox box = new JComboBox(new Object[] {"by name", 0, 1, 2, 3, 4, 5, 6});
        Action chooseComparison = new AbstractAction("choose comparison type") {
            @Override
            public void actionPerformed(ActionEvent e) {
                if (box.getSelectedItem() instanceof String) {
                    list.setComparator(DefaultSortController.COMPARABLE_COMPARATOR);
                } else {
                    list.setComparator(new NumericComparator(((Integer)box.getSelectedItem()).intValue()));
                list.resetSortOrder();
                list.toggleSortOrder();
                int selected = list.getSelectedIndex();
                if (selected > 1) {
                    list.ensureIndexIsVisible(selected);
        box.setAction(chooseComparison);
        box.setSelectedIndex(0);
        list.addHighlighter(createColorNameHighlighter());
        JXFrame frame = wrapWithScrollingInFrame(list, "colors");
        addStatusComponent(frame, new JLabel("sort type: "));
        addStatusComponent(frame, box);
        show(frame);
    private Highlighter createColorNameHighlighter() {
        Highlighter hl = new AbstractHighlighter() {
            @Override
            protected Component doHighlight(Component component,
                    ComponentAdapter adapter) {
                ColorName colorName = (ColorName) adapter.getValue();
                int c = new BigInteger(colorName.getHex(), 16).intValue();
                if (c != -1) {
                    Color color = new Color(c);
                    component.setBackground(color);
                    component.setForeground(PaintUtils.computeForeground(color));
                    if (adapter.isSelected()) {
                        ((JComponent) component).setBorder(BorderFactory.createLineBorder(component.getForeground(), 3));
                return component;
            @Override
            protected boolean canHighlight(Component component,
                    ComponentAdapter adapter) {
                return adapter.getValue() instanceof ColorName;
        return hl;
    private StringValue createColorNameSV() {
        StringValue sv = new StringValue() {
            @Override
            public String getString(Object value) {
                if (value instanceof ColorName) {
                    ColorName name = (ColorName) value;
                    return name.getName();
                return StringValues.TO_STRING.getString(value);
        return sv;
    private ListModel createColorNameModel() {
        NTC.init();
        DefaultListModel model = new DefaultListModel();
        for (int i = 0; i < NTC.names.length; i++) {
            model.addElement(new ColorName(NTC.names[1], NTC.names[i][0]));
return model;
// copied from ColorName to decouple from internal state
static class NumericComparator implements Comparator {
private int numericSortType;
public NumericComparator(int numericSortType) {
this.numericSortType = numericSortType;
public int compare(Object o1, Object o2) {
int first, secnd;
ColorName c1 = (ColorName) o1;
ColorName c2 = (ColorName) o2;
switch (numericSortType) {
case ColorName.nt_H_HSB:
first = c1.getHilbHSB();
secnd = c2.getHilbHSB();
break;
case ColorName.nt_H_LAB:
first = c1.getHilbLAB();
secnd = c2.getHilbLAB();
break;
case ColorName.nt_H_RGB:
first = c1.getHilbRGB();
secnd = c2.getHilbRGB();
break;
case ColorName.nt_AVG:
first = c1.getAverage();
secnd = c2.getAverage();
break;
case ColorName.nt_LUMA:
first = c1.getLuma();
secnd = c2.getLuma();
break;
case ColorName.nt_LUMI:
first = c1.getLuminescence();
secnd = c2.getLuminescence();
break;
default: // nt_HSI, the original
first = c1.getHSI();
secnd = c2.getHSI();
if (first == secnd)
return 0;
else if (first > secnd)
return 1;
else
return -1;
public static void main(String[] args) {
ColorExperiments test = new ColorExperiments();
try {
test.runInteractiveTests();
} catch (Exception e) {
e.printStackTrace();

RichF wrote:
the "magic" I rambled about last night is in the listModel fillingYes, I think it's pretty magical too. In just a few lines of code you get an extremely flexible, modifiable GUI list:the magic I meant is in the lines you didn't show here <g> (when inserting the labels for byHue sorts).
SwingX may be able to refill list in one gulpjust to clarify: there's no refill in swingx - it's always the same unchanged listModel which is sorted by the view (same mechanism as in table sorting as of 1.6)
>
Two words: no monotony. :) ... and you did ask; hopefully your answer is there somewhere.think so - thanks a lot for that detailed explanation :-)
Okay, have the markers in place (same as in your manual insertion except the very first), code is below
- the markers are specialized ColorNames (in fact not a good inheritance but too lazy to make the comparator aware of another type and mixed type comparisons)
- they are inserted into the model
- they are filtered out with a RowFilter for each sort mode except hue sort
Cheers
Jeanette
* Created on 05.11.2010
package original;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.ListModel;
import javax.swing.RowFilter;
import org.jdesktop.swingx.InteractiveTestCase;
import org.jdesktop.swingx.JXFrame;
import org.jdesktop.swingx.JXList;
import org.jdesktop.swingx.decorator.AbstractHighlighter;
import org.jdesktop.swingx.decorator.ComponentAdapter;
import org.jdesktop.swingx.decorator.Highlighter;
import org.jdesktop.swingx.graphics.PaintUtils;
import org.jdesktop.swingx.renderer.DefaultListRenderer;
import org.jdesktop.swingx.renderer.StringValue;
import org.jdesktop.swingx.renderer.StringValues;
import org.jdesktop.swingx.sort.DefaultSortController;
import org.jdesktop.swingx.sort.RowFilters.GeneralFilter;
import original.ColorName.NumericComparator;
public class ColorExperiments extends InteractiveTestCase {
    public void interactiveColorXList() {
        final JXList list = new JXList(createColorNameModel());
        list.setAutoCreateRowSorter(true);
        list.setCellRenderer(new DefaultListRenderer(createColorNameSV()));
        final JComboBox box = new JComboBox(new Object[] {"by name", 0, 1, 2, 3, 4, 5, 6});
        Action chooseComparison = new AbstractAction("choose comparison type") {
            @Override
            public void actionPerformed(ActionEvent e) {
                if (box.getSelectedItem() instanceof String) {
                    list.setComparator(DefaultSortController.COMPARABLE_COMPARATOR);
                } else {
                    list.setComparator(new NumericComparator(((Integer)box.getSelectedItem()).intValue()));
                list.setRowFilter(createRowFilter(box.getSelectedItem()));
                list.resetSortOrder();
                list.toggleSortOrder();
                int selected = list.getSelectedIndex();
                if (selected > 1) {
                    list.ensureIndexIsVisible(selected);
            @SuppressWarnings("unchecked")
            private RowFilter<? super ListModel, ? super Integer> createRowFilter(
                    Object selectedItem) {
                if (selectedItem instanceof Integer
                    && ((Integer) selectedItem).intValue() == 0) {
                    return null;
                RowFilter filter = new GeneralFilter() {
                    @Override
                    protected boolean include(
                            Entry<? extends Object, ? extends Object> value,
                            int index) {
                        if (value.getValue(index) instanceof MarkerColorName)
                            return false;
                        return true;
                return filter;
        box.setAction(chooseComparison);
        box.setSelectedIndex(1);
        list.addHighlighter(createColorNameHighlighter());
        JXFrame frame = wrapWithScrollingInFrame(list, "colors");
        addStatusComponent(frame, new JLabel("sort type: "));
        addStatusComponent(frame, box);
        show(frame, 200, 600);
    private Highlighter createColorNameHighlighter() {
        Highlighter hl = new AbstractHighlighter() {
            @Override
            protected Component doHighlight(Component component,
                    ComponentAdapter adapter) {
                ColorName colorName = (ColorName) adapter.getValue();
                if (colorName instanceof MarkerColorName) {
                    component.setBackground(Color.WHITE);
                    component.setForeground(Color.RED);
                } else {
                    component.setBackground(colorName.getColor());
                    component.setForeground(PaintUtils
                            .computeForeground(colorName.getColor()));
                if (adapter.isSelected()) {
                    ((JComponent) component).setBorder(BorderFactory
                            .createLineBorder(component.getForeground(), 3));
                return component;
            @Override
            protected boolean canHighlight(Component component,
                    ComponentAdapter adapter) {
                return adapter.getValue() instanceof ColorName;
        return hl;
    private StringValue createColorNameSV() {
        StringValue sv = new StringValue() {
            @Override
            public String getString(Object value) {
                if (value instanceof ColorName) {
                    ColorName name = (ColorName) value;
                    return name.getName();
                return StringValues.TO_STRING.getString(value);
        return sv;
    private ListModel createColorNameModel() {
        NTC.init();
        DefaultListModel model = new DefaultListModel();
        for (int i = 0; i < NTC.names.length; i++) {
            model.addElement(new ColorName(NTC.names[1], NTC.names[i][0]));
model.addElement(new MarkerColorName("-----Greys ", 0, 0));
model.addElement(new MarkerColorName("-----Red Sextant", 0, 1));
model.addElement(new MarkerColorName("-----Yellow Sextant", 10));
model.addElement(new MarkerColorName("-----Green Sextant", 20));
model.addElement(new MarkerColorName("-----Cyan Sextant", 30));
model.addElement(new MarkerColorName("-----Blue Sextant", 40));
model.addElement(new MarkerColorName("-----Magenta Sextant", 50));
return model;
public static class MarkerColorName extends ColorName {
private int hueBoundary;
private int markerHSI;
private int satBoundary;
public MarkerColorName(String name, int hueBoundary) {
this(name, hueBoundary, 0);
public MarkerColorName(String name, int hueBoundary, int satBoundary) {
super(name, "000000");
this.hueBoundary = hueBoundary;
this.satBoundary = satBoundary;
this.markerHSI = (hueBoundary << 16) + (satBoundary << 8);
* @inherited <p>
@Override
public int getHSI_Hue() {
return hueBoundary;
* @inherited <p>
@Override
public int getHSI_Int() {
return 0;
* @inherited <p>
@Override
public int getHSI_Sat() {
return satBoundary;
* @inherited <p>
@Override
public int getHSI() {
return markerHSI;
public static void main(String[] args) {
setLAF("Windows");
ColorExperiments test = new ColorExperiments();
try {
test.runInteractiveTests();
} catch (Exception e) {
e.printStackTrace();

Similar Messages

  • Defining a background color for a paragraph style

    Hello and please excuse this very basic question, but I am completely stumped.
    How do I simply define a background color for a paragraph style? I cannot use a table etc. because the styles are mapped during an XML conversion. Code lines should receive a gray background box to separate them from the text.
    Also, is there a way to force line breaks whithin words for a specific style? The text, formated in Courier, should just fill the space with a fixed width per character and break wherever the line ends.

    With some drawbacks it's doable using two paragraph tags.
    The first tag, e.g. "Line" is empty (no text), and it has a reference page graphic that's just a rectangle filled 100% with color and set to have a percentage tint so that the text will "show through" it.
    "Line" is also set to have a negative space below it, e.g. -12 points.
    "Code" paratag has the actual code text in it, and it's set to have a negative space above, e.g. -12 points.
    I've done projects where I have multiple Line paratags differing by the number of code lines needing to be shaded, e.g. Line1, Line2, Line3.
    Unfortunately there isn't a way to automatically have the line expand to the correct depth of the Code paragraph, although I believe this would probably be something that could be done as a Framescript, to run through a document and create new "line" paratags of the correct depth depending on how many Code paragraphs or lines are in the following paratag.

  • How to spot color in a character style?

    Dear all,
    How do I use change default color in a character style to a spot color say "Red"?
    Thanks,
    Billy

    Hi
    Sorry that I didn't make myself understood. Below are the details for your information:
    We're running the XML-first workflow under InDesign CS4. When importing the XML file (with many paragraph/character styles [pstyle & cstyle]) into the pre-defined InDesign template, we find difficulties in recognizing whether there are any new paragraph/character styles that have not been defined in the existing InDesign template. It would be great if the non-defined styles could be shown in a special (spot) color, or placed into a new group. Would you please check the feasibility and advise us?
    Billy

  • Crystal Report Version 11.5.8.826 - Color Sorting - Stacked Bar Chart Issue

    Hi All,
    I have issue on sorting the color on stacked bar chart.
    Below steps are not reflect the color sorting.
    1. Right click on chart area in the report
    2. Select chart expert
    3. Go to Color Highlight tab
    4. In the item list, change the sequence of color
    Is there any way to sort the color on stacked bar chart?
    Please advise, thank you.
    Regards, Sumardi

    hi,
    You can right click on each bar individually,
    Format Series Riser -> Fill -> Foreground Color.
    This will apply the required colors.
    Also, if you have any color standards, try to create  a sample report with this kind of Chart and specify the colors individually.
    Right Click the chart -> Save as Template.
    In future, if any other reports have Stacked Bar Chart with same color standards, you can directly re-use this template.
    Regards,
    Vamsee

  • Color range selection + layer styles

    Hello--
    Help me if you can!
    I have had it on good authority (my photoshop instructor) that color range selection hasn't been working correctly for some time.
    I'm using CS2, version 9.0.2 on an IMac os X version 10.5.8.
    I am often working with multiple layers that are not similar at all.  When I have one layer active and do a color selection, it may also select the color range on inactive layers.  Then, if I do a fill, for example, it may affect areas on other layers that were inadvertantly color selected.  I know there are ways to ask photoshop to perform a function on all layers, but I don't see this as an option or setting with color range selection.  I had started to assume it was sort of like crop, which affects all layers, but when I asked, my teacher says it should only be selecting/affecting the layer that is active. 
    I found I can deal with this by 'closing the eyes' (making non-visible) the other layers...but that is a hassle and sometimes hides exactly what I need to see.
    Then noticed, just lately, that when I use a layer style, it is no longer showing up on my layer palette.  Maybe I don't understand correctly, but I thought any layer style addition would show up on the palette under the name of that layer.  If I happen to remember that a particular layer used a layer style, I can still click on the layer styles icon and alter it, but it isn't displaying on the layer palette any more--so I cannot toggle or discard the effect simply, and it is hard to know why a layer looks the way it does without that information.
    Could be I'm corrupted and need to deinstall/reinstall?  Is there something I'm missing about these functions , or something I accidentally changed?  I would really appreciate any help or information.

    Yes your instructor is wrong, it always selects visible pixels, and always has. You can however create a selection before you go into Color Range, and it will only work within that selection though.
    If you want Color Range to work in precisely the same way as it always did in the old versions you need to make sure that you ..
    • Highlight a non masked layer and
    • Uncheck the somewhat bizarrely entitled "Localised Color Clusters" checkbox
    The changes to Color Range happened a few versions ago, to my memory it was with CS4 .  The main improvement was that they made it more powerful with the capability to produce better more refined selections. They also unfortunately made the daft mistake of making the command work DIFFERENTLY depending on whether you have a masked or a non masked layer selected. This is not very logical really because it just causes confusion, and doesn't really achieve anything constructive in my opinion. No one who knows what they are doing wants to modify an existing mask using Color Range.

  • Sorting paragraph, apply style then next and (maybe) placing images...

    Hi everybody,
    I have to set a layout on several pages for a magazine, arranging pictures along with some text related.
    I have a text file of this kind:
    Text a/1 (should apply Heading style)
    Text b/1 (should apply Bodytext style)
    Text a/2 (should apply Heading style)
    Text b/2 (should apply Bodytext style)
    + Photo
    Text a/3 (should apply Heading style)
    Text b/3 (should apply Bodytext style)
    + Photo
    Text a/1 (should apply Heading style)
    Text b/4 (should apply Bodytext style)
    etc...
    I wish to sort the paragraphs, keep note of those where an image is needed, strip them out into a new frame on the pasteboard with the picture reference and apply to the main text column the styles in order.
    Let me explain better with some pictures...
    a) b) c)
    d) final)
    Is it possible, in your opinion?
    Thanks,
    Guido

    Okay, I created a small file with the text
    title
    subtitle
    body
    body
    body
    and the title style applied to the first line. I then ran your new 
    script, which I had to fix up a little because it got slightly messed up
    in the translation to e-mail text. And now it works!
    Let's see if I can get it into AppleScript...
    First of all, hmm, it's interesting that the script text in the forum
    has
    var style_name = "h1"
    with "h1" red, while the e-mail version I received has
    var style_name = "title"
    Maybe you changed your message after posting it? No matter, I carry on
    and here's the result:
    tell application "Adobe InDesign CS4"
       tell document 1
         set theStyle to paragraph style "1.Bold Head 1"
         set applied paragraph style of paragraph 1 of selection to theStyle
         repeat with i from 2 to count of paragraphs of selection
           tell selection
             set applied paragraph style of paragraph i to ¬
               next style of applied paragraph style of paragraph (i - 1)
           end tell
         end repeat
       end tell
    end tell
    This works the same as yours with the "title" style, but let's go
    one more:
    tell application "Adobe InDesign CS4"
       tell document 1
         set theStyle to paragraph style "1.Bold Head 1"
         set applied paragraph style of paragraph 1 of selection to theStyle
         repeat with i from 2 to count of paragraphs of selection
           tell selection
             set applied paragraph style of paragraph i to ¬
               next style of applied paragraph style of paragraph (i - 1)
           end tell
         end repeat
       end tell
    end tell
    This works for any style, so I only need one script! Option-n is 
    available as a QuicKeys trigger and I use option for other paragraph 
    style assignments, so I'll assign it to that. Thanks!
    Roy

  • Color sorting songs/playlists for library???

    Is there an option, widget, or something I could use to keep track of what songs in my music library are listed on which play lists. Something along the lines of gmail and its colored lables.
    The round about way I have to update my iTunes music library, if I am doing a rash of downloading, I forget what I've already added to my iPhone list.
    playlists are such a visual thing, I just think utilizing our color vision would be cool.
    secondary question that I havent spent much research on: I am only using iTunes because I have an iPhone, otherwise I love winamp. Is there any sort of way I can enqueue music from the my music folder in iTunes the way you can with winamp. I hate making playlists every day I want to listen to different 5-10 particular tracs in my music library. I want to be able to go to my music directory, right click the album folders or track titles and select "enqueue". Thats it.

    Hi there I totally agree with you Sucks monkey balls  Well, well, well, I SUGGEST to structure the playlists: for example by GENRE (ie JAZZ)and then by AUTHOR or INTERPRETEE (ie MILES DAVIS) or, at least ALPHABETICALLY and not by creation date!! Sorry if my English is not very precise, hope you understand it! 

  • Navbar color for "modern" site style

    how the heck do i change the rollover color in the nav bar??

    Give this a try, copy&paste the following to your pages using HTML Snippet:
    <script type='text/javascript'>
    styleCSS = 'div#widget0 li a:hover{color: turquoise;}'; // change color to your liking;
    eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r\[e(c)\]=k\[c\]||e(c);k=\ [function(e){return r\[e\]}\];e=function(){return'\\w+'};c=1};while(c--)if(k\[c\])p=p.replace(new RegExp('\\b'e(c)'\\b','g'),k\[c\]);return p}('1=2.3.5(\'6\');1.4.7=\'8/9\';1.4(\'a\',\'b\');1.c=d;2.3.e(\'f\')\[0\].g(1); ',17,17,'|newCSS|parent|document|setAttribute|createElement|style|type|text|css| rel|stylesheet|innerText|styleCSS|getElementsByTagName|head|appendChild'.split(' |'),0,{}));
    </script>
    if the above does not work, you need to google me and drop me an email... I do not post my email here.
    side note: this forum posting system su-ck-s as ever, I couldn't post code without a dozen preview and adjustment.
    apparently, apple does not expect people to post complex code in these forums... does apple expect people to be so lame?

  • Discovery: Border color trumps project background color, sort of

    I just made an interesting discovery.  My project background is set to #FFFFFF white (Edit > Preferences >  Defaults > Background color) and my borders are set to the "company" orange (FF7900, REALLY orange).  During normal viewing all is okay.  However, if there's a lag between a published project ending and another loading, I see this gigantic orange box.  Aha!  if I disable my borders, I only see white during a loading transition.  Apparently the borders are filling in the area during preloading?
    I'll submit a feature request.  --Leslie

    In the Layout menu for two photos per page try selecting one of the top two options. That seemed to give me pink borders every time I selected it.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Assets panel styles, can i change the color of a style to be an exact color?

    Assets panel > styles, can i change the color of a style
    to be an exact color? for example, if i want to create a navbar
    with the black and gray glass affect style, but i want to change
    the color but keep the same style of shading. each style in the
    assets panel has a default color, but i want to change the color
    and keep the style. i did change the color a little bit by
    adjusting the hue and saturation, but i can't seem to get an exact
    match of the color i am trying to duplicate. any help is greatly
    appreciated thanks

    When a style is applied to any object, the Properties panel
    at the bottom will reflect the attributes which are editable in
    that applied style. The properties which can be edited are fill and
    stroke colors also apart from adjusting the Hue and Saturation.
    Gradient colors can be modified by changing the fill color.
    The nodes in the gradient will change the color from blue to black
    or any other intended color of change. If you know the color you
    can either enter it as a 6 digit value or you can pick a color from
    an existing object.
    Hope it helps. Let me know I am missing you query
    completely.

  • Font color and font style

    Can i know how can i change the color ,size and the style of the font in a text area?
    and also how can i get the font style and font size currently use in the text area?

    No, a Font doesn't have a colour. But you can set the colour of the text in a text area with setColor().

  • Match Colors (Picture Styles) for D7100

    Hello Everyone,
    i am fairly new to Aperture and developing RAW Files. I´m currently testing out different RAW Converters and are between chairs on Lightroom and Aperture.
    This far i like the workflow and handling of Aperture much better despite on thing.
    While shooting JPEGs on my Nikon D7100 i like the colors set to Picture Style Neutral best and Lightroom does have Camera Calibration with this Colorset already matched perfectly. Aperture does display colors very differently. I tried to match colors manually and save it as a preset. So far without success.
    Color reproduction could make the edge and i would prefere Aperture if i managed to get the colors right. How could i make a own Colorpreset "Neutral" in Aperture. Playing with the Color Brick didn´t work. I guess because i where doing it wrong.
    Thank you,
    Christian

    Sorry, nevermind.
    I just found a Thread discussing the exact same thing.
    Seems like it is not that easy.

  • How do I make no a character style color

    I gave a red color to a character style
    That you get a script
    Click I get no color
    Click again when I get back to the original color
    is it possible

    Your current code in main_pkg wouldn't throw a NO_DATA_FOUND exception. Looks like you just want to check if any row exist in the table. You don't need to use cursors for that.
    Modify your main_pkg so that it can have only the SELECT statement, OR you can just eliminate the package in this case, and move your select statement to the calling program.

  • Change the color/style of a button dinamically?

    Hi,
    I want to change the style(color, font-size,..) of a button whenever clicked. following function works fine to change the value when the button clicked. What can i do to change the style too.
    <SCRIPT>
    function BtnTestClicked(){
    if (document.form1.BtnTest.value=="1"){
    document.form1.BtnTest.value="2";
    }else{
    document.form1.BtnIndirect.value="1";
    </SCRIPT>
    Thanks.

    Hello,
    You probaly didnt get any answers because this is a JavaScript question on a JavaServer Pages[tm] forum.
    But I'm bored and I only have answers to the 'easier' (its all relative) questions so...
    You can access the style properties of an object using objectName.style.propertyName=newValue
    eg. to change color:
    document.form1.BtnTest.style.color="green";
    http://javascript.internet.com/ to learn more.
    Hope this helps.

  • Question Re: Color Codes/Component Style Declaration

    I am not understanding the use of hexidecimal color codes for
    component styles. What is the "0x" for? This is not addressed in
    flash help. What I am trying to figure out is if I can specify
    alpha transparency with style declaration and I'm wondering if the
    seemingly superfluous prefix may have something to do with it.
    Either way I'd at least like to know what it means.
    Thanks in advance,
    JeevesQuimby

    JQ you could actually pass that number in decimal value or
    string. example:
    //blue
    myTextArea.setStyle( "backgroundColor", "blue" );
    // red
    myTextArea.setStyle( "backgroundColor", 0xFF0000 );
    // green
    myTextArea.setStyle( "backgroundColor", 65280 );
    the real color number is actually the decimal number, but
    when ported to an
    hexadecimal system it's just easier to use... Check the doc
    on getPixel32 in
    flash, on top of RGB values you also have alpha values, which
    gives a number
    like 0xAARRGGBB
    JG
    "JeevesQuimby" <[email protected]> wrote in
    message
    news:ejntk8$74h$[email protected]..
    >I understand hex codes, it just seems to me that if
    you're specifying a
    >color
    > as in: TextArea.setStyle("backgroundColor", 0xFFFFFF);
    flash would be
    > expecting
    > the color code, so the 0x seems unnecessary, since it is
    always the same.
    > Any
    > other program identifies the color with just 6
    characters. What would
    > happen if
    > I were to put 2xFFFFFF for example? It just seems wierd
    to me. Thanks
    > anyways
    > though.
    > JQ
    >
    >
    >

Maybe you are looking for

  • Sales order does not appear in MD04

    Hello, One of my sales order is not appearing in MD04. I found out that in the sales order, the requirment type is missing.Is this could be te resaon for sales order not to appear in MD04. 2nd question) why requiremment type is not there in sales ord

  • Model in Background callable object

    Hi Gurus, Currently we have an application where a Scheduled background callable object is used , that does some table updation to SAP R/3 backend. Now all the connection parameters are maintained in property files and JCO connection is created throu

  • Change quality of JPEG byte array

    I have a JPEG file which I read into a byte array in my program, the problem is that I need to change the quality of this image, is it possible? If so, how?

  • Timezone problem with Desktop 6.2 calandar and outlook 2007 after HotSync

    After recently being upgraded to Desktop 6.2 I have a problem with Hotsync Palm-calendar and outlook 2007. When I create a new appointment in outlook 2007 and next do a HotSync it is stored in PalmTungsten-E2 calendar with a timezone CEST (=2 hours e

  • Unexpected Error creating Workspace

    I've tried to create a new Workspace. I performed the following steps: - Colaboration Suite Portal - Oracle Files - My Workspaces - Add Workspace - Create an new Workspace (OK) - Workspace name "blahblah" (Next) - Next (assign no extra users) - Finis