How to set color of a specific pixel on an artLayer in JS

I am brand new to PS scripting. I know I can select a 1x1 pixel rectangle and fill it with a specific color, but that seem inefficient.
Is there a way to quickly and directly set the color of a specified pixel?
Thanks.

JTextArea doesn't support this, but if you read the JTextArea API you will find a link to the Swing tutorial on "Using Text Components" that will show you a text component that you can use.

Similar Messages

  • How to set color for a tabstrip in BSP

    Hello all,
    Can anyone please let me know how to set color for a tabstripn in BSP?
    I am using the below syntax but it still gives me the default color.
    <htmlb:content design="design2003" >
      <htmlb:page title="test " >
        <htmlb:form>
    <htmlb:tabStrip id         = "TabStrip"
                          bodyHeight = "200"
                          bodyColor  = "red"
                          width      = "700" >
    </htmlb:tabStrip>
    </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks,
    Sandeep

    Hi...
    The below code is working fine for me...
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="stg " >
        <htmlb:form>
          <htmlb:tabStrip width      = "430"
                          bodyColor  = "rgb(88,5,64)"
                          id         = "t1"
                          bodyHeight = "112" >
            <htmlb:tabStripItem id      = "t1"
                                index   = "1"
                                title   = "Sales"
                                tooltip = "My Tooltip for Tab 1" >
              <htmlb:textView text="Tab N 1" />
              <htmlb:tree id        = "treeReports"
                          showTitle = "true"
                          table2    = "<%= mt_nodes %>"
                          title     = "Menu"
                          width     = "100%" />
            </htmlb:tabStripItem>
            <htmlb:tabStripItem id      = "t2"
                                index   = "2"
                                title   = "Production"
                                tooltip = "My Tooltip for Tab 2" >
              <htmlb:textView text="Tab N 2" />
            </htmlb:tabStripItem>
          </htmlb:tabStrip>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • How to set colors in cells depending the conditions  in alvtree

    Hi All,
    Could you please provide me idea or sample program how to set colors in cells depending the conditions  in alvtree.
    Thanks,
    Suresh

    When running vim in a terminal, it will use whatever colour scheme is defined by the terminal.  You should have a look at this thread:
    http://bbs.archlinux.org/viewtopic.php?id=51818
    Also, check the wiki article on Xdefaults.

  • How to set color space to JPEG image with Java advance Imaging

    How to set color space to JPEG image with Java advance Imaging.
    is there any API in JAI which support to set color space.

    I'm definately no guru, but this is how you can change it.
    CTRL + ALT + Click on the part of the component that you want to change. This brings up the Hidden Dom Inspector, background of component will be surrounded with a red outline (Make sure the red outline is surrounding the part of the tabset you want to change), Now you go to properties sheet and click the ellipses next to rules property this will pop up a dialog you look in this list (At the top) to see the default style classes that are affecting the rendering of the component outlined in red. (You will be able to select different sections of a single component) then you just rewrite the style class that you want to change in your Stylesheet (You will not find the styleclass that you want to change because it is a part of your theme .jar but as long as you name it exactly the same and place in your stylesheet it will override the theme .jar style classes) it's actually very easy -- you were right should be a piece of cake for a guru. Don't have the link handy but you can check out Winston's Blog on changing Table Formatting to get this information...It is EXTREMELY useful if you want your apps to have a custom look and not default that comes with Creator Themes.
    Hope this helps you out God knows others have helped me alot!
    Jason

  • How to set up the client-specific consolidation routes

    Hi!
    I am setting up TMS-functionality in my 2-system landscape (DEV, PRD) and would like to use 2 Clients in the DEV-system (100> Cust and 200> Test).
    <b>How can I set up the tranport routes between the Clients 100 and 200 in the same system DEV?</b>
    I read, the client-specific consolidation route should be applied in this case?!
    (also some parameter settings should be edited, e.g. CTC)
    <b>Can some one give me a detail technical description how to set up the client-specific consolidation routes between Client 100 and 200 in DEV-system?</b>
    Thank you!
    regards

    Hi Axel,
    You have activate Extended transport route.
    refer this link to helpout for the same
    http://help.sap.com/saphelp_47x200/helpdata/en/2e/709533ef9b11d184850000e8a57770/frameset.htm
    Reward points if helpful.
    Regards
    Ganesh

  • How to set color to a column in ALV?

    Based on standard example BCALV_GRID_01 to modify,
    how to set color to a column???
    Moderator message: please search for available information/documentation before asking.
    Edited by: Thomas Zloch on Nov 6, 2010 9:43 AM

    Hi Sai ,
    you are posting the querry in the wrong forum ..
    but still I will answer ur querry...
    Incase you are not using the standard class to make your ALV then u can set the color of each column in the propertiesof column in the design time .
    Incase u see the colors in the design time but is not able to see the colors at the run time then you check the settings of the table I dont have system right now else I could have told you exact property...
    else if u r amking alv from the standard class then u will have to search the net for the method to color the same ..
    Thanks
    Sahil.

  • How to set color profile when exporting a RAW file version as a JPEG?

    I import my raw files to Aperture and when exporting as a JPEG I want to specify a color profile of sRBG. I cannot see how to set the color profile for the export. Does anyone know how to do this?

    When you go to export versions, edit the presets, and there is a drop down box that lets you select the profile.
    I'd suggest picking up the Aperture book by Luna, Long, and Harrington. Lots of great info there.

  • [AS][INDCC] How to set Color Conversion field to No Color Conversion when creating PDF Export preset

    How can i set Color Conversion field in Export to PDF dialog to No Color Conversion when creating PDF Export preset? i have done a bit of searching and have found where it has been recommended to set effective pdf destination profile to use no profile but it doesn't seem to be producting the expected results.

    Yes, it seems that i had to make the change after creation, not while creating the preset. thank you.
    tell application "Adobe InDesign CC"
         set newPreset to make new PDF export preset with properties ¬
              {name:"preset name", standards compliance:none, acrobat compatibility:acrobat 7}
         tell newPreset to set PDF color space to unchanged color space
    end tell

  • How to set color of our specified JTable's row

    i need to set color of our specified JTable's row.so send the coddings of that part.

    i need to set color of our specified JTable's row.so
    send the coddings of that part.I think you misunderstand how this forum works...
    If you have a problem, you post your problem here with example code which demonstrates said problem...
    The people here then attempt to help you if they want to.
    You do not post demands for code examples

  • How to set color depth to Bitmap image with Java advance Imaging

    i have to convert image one format ot bmp format and also set the color depth as 1 bit , 4 bit , 8 bit, 16 bit, 32 bit of image.
    has any one done this before. please help me out .

    Take a look at the example code here: http://forum.java.sun.com/thread.jsp?forum=20&thread=560573&tstart=0&trange=15
    I took an image that was 24 bits/pixel (I guess) and converted it to an indexed color model (8 bits/pixel).
    Is that what you mean? (It's also easy to convert to 16 or 15 bits/pixel: use TYPE_USHORT_565_RGB or
    TYPE_USHORT_555_RGB.)

  • How to set colors to table control?

    Hi all,
    can we set colors to tables columns and rows?? How can we acieve this? Any help please
    Thanks,
    Madhan.

    Hi All
    thanks for your replies..
    data tab type IF_main_view=>Elements_segment.
      data line type IF_main_view=>Element_segment.
      data node_info type ref to if_wd_context_node_info.
      data attribute_info type wdr_context_attribute_info.
      data attr_value type WDR_CONTEXT_ATTR_VALUE.
      data wd_standard_cell type ref to cl_wd_table_standard_cell.
      data component like line of cl_abap_structdescr=>components.
      data wd_table_column type ref to cl_wd_table_column.
      node_info = lo_nd_segment->get_node_info( ).
      attribute_info = node_info->get_attribute( 'CELL_DESIGN' ).
    if component-name = 'SEGMENT'.
      wd_standard_cell->set_cell_design( CL_WD_ABSTR_MASTER_TABLE_COL=>E_CELL_DESIGN-BADVALUE_MEDIUM ).
    endif.
    i am trying to set color for  some colomns, but i am not getting any colors??? anything wrong in this.. please help
    thanks,
    Madhan.

  • Set color to a specific word in text

    I hava text in JEditorPane I want to set Color to spacific word in text
    thank you

    Engy i've been searching.U'll find EXACTLY what u want in the java tutorial ,the folder (uiswing),open the folder (Components) inside it u'll find the file(generaltext.html).there, u'll find a perfect demo with it's 2 classes TextComponentDemo.java & LimitedStyledDocument.java
    u can use them.u'll find all u want there..good luck

  • How to set Color of Specific String in JEditorPane?

    I have tried using jp1.setForeground(Color.red) but all the text in JEditorPane are set to red. I want the JEditorPane to display red for all text except a particular string 'xyz'. Can anyone pls help me?
    Thank you.

    Its easier to use a JTextPane. Read this section from the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html]Using Text Components.
    And here's another thread that will help:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=342068

  • Setting color of a specific line?

    okay so in swing is it possible to set a portion of the text in a text field to a different color? Like in my chat program(below) can I make it so all incoming chat(instring) is blue and all outgoing text(string) is red?
    Am I using the wrong text component for changing the color of a line? Should I even be using J text components for this?
    The tutorial often puts tons of different text components in to its examples, and uses odd methods to change the color.
    It seems that I have to use something like setCaretColor, but i am not clear on how to use this in the way I want to use it.
    here is the code:
    import java.io.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.swing.JOptionPane;
    import javax.swing.JDialog;
    import javax.swing.JTextField;
    import java.beans.*; //property change stuff
    import java.awt.*;
    import java.awt.event.*;
    public class server extends JFrame implements ActionListener
         JButton recieve;
         String string;
            String instring;
         String aft = " ";
         String bef = " ";
         String allchat=" ";
         JTextField towrite;
         boolean stop = false;
         String name;
         JTextArea chatbox;
         public server(){
                             setSize(490,550);
                             getContentPane().setLayout(null);
                             recieve = new JButton("send message");
                             recieve.setBounds(30,150,150,35);
                             getContentPane().add(recieve);
                                       recieve.addActionListener(this);
                             chatbox = new JTextArea("chat goes here");
                             chatbox.setEditable(false);
                             chatbox.setBounds(10,200,460,270);
                             getContentPane().add(chatbox);
                                            towrite = new JTextField("Write message here");
                             towrite.setBounds(10,475,460,35);
                             getContentPane().add(towrite);
                                            towrite.addActionListener(this);
                             setVisible(true);
                   name = (String)JOptionPane.showInputDialog(null,"Enter your name");
              while(stop==false){
                   try
                   ServerSocket socket = new ServerSocket(4019);
                   Socket insocket =socket.accept();
                   BufferedReader in = new BufferedReader (new InputStreamReader(insocket.getInputStream()));
                   instring = in.readLine();
                   socket.close();
                   bef = instring;
                   if(bef.equals(aft)){}else{
                        allchat=instring+"\n"+allchat;
                        chatbox.setText(allchat);
    catch(Exception e){}
             public void actionPerformed(ActionEvent evt)
            if(evt.getActionCommand().equals("send message"))
    try
    Socket socket = new Socket("67.166.126.246",4020);
    OutputStream out = socket.getOutputStream();
    string=name+": "+towrite.getText();
    byte buffer[] = string.getBytes();
    out.write(buffer);
    socket.close();
    catch(Exception e){}
                   bef = string;
                   if(bef.equals(aft)){}else{
                        allchat=string+"\n"+allchat;
                        chatbox.setText(allchat);
                   aft=bef;
    public static void main(String[] args)
    server s = new server();}}

    Hmmmm im sorry but Im not quite sure I understand how to do this.
    Do you have to know the exact digits at which the text starts and ends?
    or can you, as mentioned just use html tags to set the text color?
    If i were to highlight a line of the text, would that text be highlighted even if its location in the string changed?
    It would seem that tags would be easier but from what I have tried they don't seem to work in editor panes, but the ydo work in buttons
    Im sorry, Im being a bit of a pest, but I have not been doing java for that long, and I do not have a teacher, so all of my questions have to go here.

  • How to set the size of JTextField (Pixels/characters)

    Hi,
    I'd like to determine a maximum size for JTextField, meaning the text field size is 15 characters only.
    I there a way to do that?
    Also..
    one more question..
    How do I set a specific Row not be editable?
    Many thanks!!

    in a class extending JTextField
    StringBuffer b = new StringBuffer();
    setColumns(0);
    for (int i = 0; i < width; i++) {
    if (isNumeric()) {
    b.append("0");
    else {
    b.append("m");
    setText(b.toString());
    setFont(new Font("Monospaced", Font.PLAIN, 12));
    setPreferredSize(getPreferredSize());

Maybe you are looking for

  • Unexplained Verizon Data Usage on Iphone 5s

    I have data usage charges showing up on my Iphone 5s every day at 5:40am Eastern time.  The problem is that my phone is not being used at that time of day and is always connected to WiFi while I am home.  The data usage has been very large, from 60mb

  • DVD from converted Super 8 won't play since system upgrade?

    DVDs converted from Super 8 in 2009 previously worked fine on Mac, but since recent upgrade to 10.8.4 (?from 10.6.8) video will not play, although audio does. Info from disk includes: UDF (Universal Disk File?); DVD Player Document, Unix Executable F

  • Can't open project but it shows up in folder

    I have created a project / stop motion with 1000 + images. I has dissapeared byt can still be see in the iMovie projects window. I can't open it. What can I do? Where has it gone? PLease help this is a major project. Thank you.

  • Why does username/password combination pop up when trying to send pics from iphoto

    Help!! I'm trying to send email photos from iphoto, but 'won't recognize username/password keeps coming up... I've even changed my info, and I know its' correct because I checked it with my email...

  • Plllzzzz help

    I have 2 computers at my house (one macbook and one pc) and i keep trying to use the video on ichat from my mac to my pc on aim but it does not work. when i try using video from my pc to my mac it works. i also configured all the ports but i dont kno