SetBackground color not working

Hello,
While viewing my applet from within a HTML file, my background color is still grey, except the buttons.
The color is fine while viewing with appletviewer so I'm a bit confussed.
Any ideas as to why would be appreciated.
Thanks in advance.
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.text.SimpleDateFormat;
import java.awt.event.*;
public class MyCalendar extends javax.swing.JApplet  {
       public void init()
         Container content = getContentPane();
         JPanel calendars = new JPanel(new GridLayout(0,1));
         JScrollPane jsp = new JScrollPane(calendars);
         content.add(jsp, BorderLayout.CENTER);
         GregorianCalendar gc = new GregorianCalendar();
          //gc.set(GregorianCalendar.DAY_OF_YEAR,1);c
          gc.set(GregorianCalendar.DAY_OF_MONTH,1);     
            for (int i=0; i<12; i++)
           calendars.add(new CalendarPanel(gc));
           gc.add(GregorianCalendar.MONTH, 1);
          //setSize(300, 300);
              //setVisible(true);
class CalendarPanel extends JPanel implements ActionListener
       private JLabel jl;
       private int testYear;
       private final static String[] DOW = {"S","M","T","W","T","F","S"};
       SimpleDateFormat sdf = new SimpleDateFormat("MMMM");
       GridBagConstraints gbc = new GridBagConstraints(0,0,7,1,1.0,1.0,GridBagConstraints.CENTER,
          GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0);
       public CalendarPanel(GregorianCalendar cal)
          setLayout(new GridBagLayout());
          setBorder(BorderFactory.createEtchedBorder());
          setBackground(Color.white);
          //get the month name
          String testMonth=sdf.format(cal.getTime());
           testYear = cal.get(GregorianCalendar.YEAR);
          int nextYear = cal.get(GregorianCalendar.YEAR)+1;
          JLabel lblYear = new JLabel(""+testYear);
          JLabel jl = new JLabel(testMonth, JLabel.CENTER);
          add(jl,gbc);
          gbc.gridwidth=1;
             gbc.gridy=1;
          for (int i=0; i<7; i++)
                gbc.gridx=i;
                add(new JLabel(DOW, JLabel.CENTER),gbc);
          gbc.gridx = cal.get(GregorianCalendar.DAY_OF_WEEK)-1;
     gbc.gridy++;
          int daysInMonth = cal.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
          for (int i=1; i<=daysInMonth; i++)
          JButton jb = new JButton(""+i);
          jb.setBackground(Color.white);
          jb.setForeground(Color.blue);
          jb.addActionListener(this);
          //jb.setBorder(BorderFactory.createRaisedBevelBorder());
          add(jb,gbc);
          if (++gbc.gridx==7)
               gbc.gridx=0;
               gbc.gridy++;
     public void actionPerformed(ActionEvent event)
          String command = event.getActionCommand();
          if(event.getSource() instanceof JButton)
               System.out.println("Button:"+command);
               String text = jl.getText();     
               System.out.println("Month:"+text);
               System.out.println("Year:"+testYear);

Ok, the last one worked but now one of my labels won't change color even after jl.setOpaque(true).
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.text.SimpleDateFormat;
import java.awt.event.*;
public class MyCalendar extends javax.swing.JApplet  {
       public void init()
         Container content = getContentPane();
         JPanel calendars = new JPanel(new GridLayout(0,1));
         JScrollPane jsp = new JScrollPane(calendars);
         content.add(jsp, BorderLayout.CENTER);
         GregorianCalendar gc = new GregorianCalendar();
          //gc.set(GregorianCalendar.DAY_OF_YEAR,1);c
          gc.set(GregorianCalendar.DAY_OF_MONTH,1);     
            for (int i=0; i<12; i++)
           calendars.setOpaque(true); //this worked
           calendars.add(new CalendarPanel(gc));
           gc.add(GregorianCalendar.MONTH, 1);
class CalendarPanel extends JPanel implements ActionListener
       private JLabel jl;
       private int testYear;
       private final static String[] DOW = {"S","M","T","W","T","F","S"};
       SimpleDateFormat sdf = new SimpleDateFormat("MMMM");
       GridBagConstraints gbc = new GridBagConstraints(0,0,7,1,1.0,1.0,GridBagConstraints.CENTER,
          GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0);
       public CalendarPanel(GregorianCalendar cal)
          setLayout(new GridBagLayout());
          setBorder(BorderFactory.createEtchedBorder());
          setBackground(Color.white);
          //get the month name
          String testMonth=sdf.format(cal.getTime());
           testYear = cal.get(GregorianCalendar.YEAR);
          int nextYear = cal.get(GregorianCalendar.YEAR)+1;
          JLabel lblYear = new JLabel(""+testYear);
          JLabel jl = new JLabel(testMonth, JLabel.CENTER);
          jl.setOpaque(true); //only works in appletviewer NOT html
          jl.setBackground(Color.red);
          add(jl,gbc);
          gbc.gridwidth=1;
             gbc.gridy=1;
          for (int i=0; i<7; i++)
                gbc.gridx=i;
                add(new JLabel(DOW, JLabel.CENTER),gbc);
          gbc.gridx = cal.get(GregorianCalendar.DAY_OF_WEEK)-1;
     gbc.gridy++;
          int daysInMonth = cal.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
          for (int i=1; i<=daysInMonth; i++)
          JButton jb = new JButton(""+i);
          jb.setBackground(Color.white);
          jb.setForeground(Color.blue);
          jb.addActionListener(this);
          jb.setBorder(BorderFactory.createRaisedBevelBorder());
          add(jb,gbc);
          if (++gbc.gridx==7)
               gbc.gridx=0;
               gbc.gridy++;
     public void actionPerformed(ActionEvent event)
          String command = event.getActionCommand();
          if(event.getSource() instanceof JButton)
               System.out.println("Button:"+command);
               String text = jl.getText();     
               System.out.println("Month:"+text);
               System.out.println("Year:"+testYear);
[\code]

Similar Messages

  • Code to change JTable cell color not working

    My code below is supposed to change the color
    of a single JTable cell however its not working.
    Could anyone please tell me why?
    Here's the code:
    import java.awt.*;
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ColorTable extends JTable {
    public ColorTable() {
    AbstractTableModel tableModel = new AbstractTableModel() {
    public Class getColumnClass(int column) { return Integer.class; }
    public int getColumnCount() { return 6; }
    public int getRowCount() { return 10;}
    public Object getValueAt(int row,int col) { return new Integer(row * col); }
    setModel(tableModel);
    setDefaultRenderer(Integer.class,new ColorRenderer(Color.cyan));
    this.setRowSelectionAllowed(false);
    this.setCellSelectionEnabled(true);
    addMouseListener(new MouseAdapter() {
    private ColorRenderer renderer;
    private JColorChooser chooser = new JColorChooser();
    public void mousePressed(MouseEvent e) {
    if(e.getModifiers() == MouseEvent.BUTTON3_MASK) {
    System.out.print("rowAtPoint(e.getPoint())=" +rowAtPoint(e.getPoint()));
    System.out.print( "columnAtPoint(e.getPoint()))=" + columnAtPoint(e.getPoint()));
    renderer = (ColorRenderer)getCellRenderer(rowAtPoint(e.getPoint()), columnAtPoint(e.getPoint()));
    // chooser.setColor(renderer.getColor());
    renderer.setColor(chooser.showDialog((Component)e.getSource(),"Choose Cell Color",chooser.getColor()));
    class ColorRenderer extends DefaultTableCellRenderer {
    private Color cellColor;
    public ColorRenderer(Color color) { cellColor = color; }
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    System.out.print("row= " + row + "\n");
    System.out.print("column= " + column + "\n");
    System.out.print("OBJECT VALUE=" + value.toString());
    //Component comp = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    if (isSelected) {
    setOpaque(true);
    setBackground(cellColor);
    else {
    setBackground(Color.white);
    setForeground(Color.black);
    return this;
    public void setColor(Color color)
    cellColor = color;
    ColorTable.this.repaint();
    public Color getColor() { return cellColor; }
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    JPanel panel = new JPanel();
    ColorTable table = new ColorTable();
    panel.add(table);
    frame.getContentPane().add(panel);
    frame.setSize(500,250);
    frame.setVisible(true);

    My code below is supposed to change the color
    of a single JTable cell however its not working.
    Could anyone please tell me why?
    Here's the code:
    import java.awt.*;
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ColorTable extends JTable {
    public ColorTable() {
    AbstractTableModel tableModel = new AbstractTableModel() {
    public Class getColumnClass(int column) { return Integer.class; }
    public int getColumnCount() { return 6; }
    public int getRowCount() { return 10;}
    public Object getValueAt(int row,int col) { return new Integer(row * col); }
    setModel(tableModel);
    setDefaultRenderer(Integer.class,new ColorRenderer(Color.cyan));
    this.setRowSelectionAllowed(false);
    this.setCellSelectionEnabled(true);
    addMouseListener(new MouseAdapter() {
    private ColorRenderer renderer;
    private JColorChooser chooser = new JColorChooser();
    public void mousePressed(MouseEvent e) {
    if(e.getModifiers() == MouseEvent.BUTTON3_MASK) {
    System.out.print("rowAtPoint(e.getPoint())=" +rowAtPoint(e.getPoint()));
    System.out.print( "columnAtPoint(e.getPoint()))=" + columnAtPoint(e.getPoint()));
    renderer = (ColorRenderer)getCellRenderer(rowAtPoint(e.getPoint()), columnAtPoint(e.getPoint()));
    // chooser.setColor(renderer.getColor());
    renderer.setColor(chooser.showDialog((Component)e.getSource(),"Choose Cell Color",chooser.getColor()));
    class ColorRenderer extends DefaultTableCellRenderer {
    private Color cellColor;
    public ColorRenderer(Color color) { cellColor = color; }
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    System.out.print("row= " + row + "\n");
    System.out.print("column= " + column + "\n");
    System.out.print("OBJECT VALUE=" + value.toString());
    //Component comp = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    if (isSelected) {
    setOpaque(true);
    setBackground(cellColor);
    else {
    setBackground(Color.white);
    setForeground(Color.black);
    return this;
    public void setColor(Color color)
    cellColor = color;
    ColorTable.this.repaint();
    public Color getColor() { return cellColor; }
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    JPanel panel = new JPanel();
    ColorTable table = new ColorTable();
    panel.add(table);
    frame.getContentPane().add(panel);
    frame.setSize(500,250);
    frame.setVisible(true);

  • Nebula grid GridItem.setForeground(color) not working

    I am using GridTableViewer and Nebula Grid.
    I am in processing of replacing old grid with new grid
    version = org.eclipse.nebula.widgets.grid_1.0.0.201506030727.
    I am setting individual row's foreground color.
    for ( int i=0; i < items.length; i++){
    items[i].setForeground(color); ;
    The above code worked with old grid version ver = 1.0.0.201209220511
    However it's not working with new version. What do I need to change?
    Thanks
    Dhiresh

    If you are using a GridTableViewer why are you then calling out to the
    SWT-API? It is the job of the LabelProvider to provide the foreground
    color.
    If you can reproduce this:
    a) with a Grid only snippet (no JFace viewer)
    b) with a GridTableViewer only snippet (no call to GridItem)
    File a bug and we can take a look if this is a regression
    Tom
    On 08.07.15 00:53, Dhiresh Patel wrote:
    > I have grid.setCellSelectionEnabled(true);
    >
    > What I found was that if I did GridItem.setForeground(index,
    > foreground); for
    > all the columns it works - meaning the whole row has that foreground color.
    >
    > But GridItem.setForeground(foreground); does not work - Has this been
    > changed?
    >
    > Thanks,
    >
    > Dhiresh

  • Send to Color not working

    Ok guys, I have searched everywhere and I reckon I have tried everything. Basically I have a sequence that I sent to color, go to color, colour correct everything, render and then select Send to Final Cut Pro. FCP open, says importing XML, gets to about 50% and stops, no message or error. I don't get a new sequence from color, just nothing.
    Tried importing just the XML with the came result.
    I have tried trashing the prefs, went back through the time line and removed every effect and transition. Still does not work. I had it work once before and everything was fine. But now.....it is so frustrating. I just want it to work as I need to get this video finished.
    I am running FCP 6.2 and color 1.2, the latest anyway. Does anyone have any ideas. I have wasted days on this and cannot get it to work.
    Message was edited by: Jared Bell

    Without access to the sequence, its impossible to say.
    There is something in it that is corrupting the round trip. It might be illegal media (which would be otherwise perfectly fine in FCP) or it might be something nested that XML can't cope with, re-directing the links to the new media. Unfortunately, the KISS principle is king.
    jPo

  • Color not working on HP printer

    Hi, I have never had this problem until today. My HP photosmart C4400 printer is not printing in color, and the black ink is faded as if the ink supplies are low. I checked the cartridges and the supply levels, all almost brand new and the expiration dates are 2010. I have tried restarting and rebooting but it will not work. Can anybody help please? Thank you

    Hi,
    Try following the steps listed below, I believe that should solve the issue:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=uk&​dlc=en&docname=c03640384&lc=en&jumpid=reg_r1002_uk​...
    If the issue remain, be sure to provide some more details - any specific error or behavior while trying to launch the HP Software?
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Button Color - not working

    I can't get the myButton.setBackground(Color.pink); nor setForeground() to work. Here is my code:
    // Created: 06/10/03
    // Author: Dustin McBeth
    // Button starts as color blue
    // One Click: color turns green
    // Next Click: back to blue
    import java.awt.Color.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ColorButton extends JFrame {
    public ColorButton() {
    super("My Color Button");
    JButton myButton = new JButton("Press Me!");
    JPanel masterPane = new JPanel();
    myButton.setBackground(Color.pink);
    masterPane.add(myButton);
    setContentPane(masterPane);
    public static void main(String[] arg) {
    JFrame frame = new ColorButton();
    WindowListener l = new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.addWindowListener(l);
    frame.pack();
    frame.setVisible(true);

    Change:import java.awt.Color.*;toimport java.awt.Color;

  • SetBackground() Is Not Working in Windows 7

    It looks like inheritance is broken in the component hierarchy for JFrame in Windows 7 JDK 1.6.0_23-b05. Run this code to reproduce the issue.
    public class Main
    public static void main(String[] args)
    JFrame frame = new JFrame();
    frame.setTitle("Test Background");
    frame.setLocation(200, 100);
    frame.setSize(600,400);
    frame.addWindowListener(new WindowAdapter()
    @Override public void windowClosing(WindowEvent e) { System.exit(0); }
    JPanel southPanel = new JPanel();
    frame.getContentPane().setLayout(new BorderLayout());
    frame.getContentPane().add(southPanel, BorderLayout.CENTER);
    frame.getContentPane().add(Box.createVerticalStrut(50), BorderLayout.NORTH);
    frame.getContentPane().add(Box.createVerticalStrut(50), BorderLayout.SOUTH);
    frame.getContentPane().add(Box.createHorizontalStrut(50), BorderLayout.WEST);
    frame.getContentPane().add(Box.createHorizontalStrut(50), BorderLayout.EAST);
    southPanel.setBorder(new LineBorder(Color.BLACK));
    frame.getContentPane().setBackground(Color.BLUE);
    frame.setVisible(true);
    }

    user13509659 wrote:
    Run this code to reproduce the issue.Which issue?
    It looks like inheritance is broken in the component hierarchy for JFrame in Windows 7 JDK 1.6.0_23-b05. The only thing remotely related to inheritance in your code snippet is the WindowListener, which does little. See camickr's advice about built-in exit management.
    EDIT - using the post title as a clue, I realize you may be talking about the component hierarchy, and whether the contentPane's background is visible through the upper layers. Instead of guessing, I'd prefer you describe your "issue" accurately (observed vs expected behavior).
    Edited by: jduprez on Feb 10, 2011 1:01 PM

  • Selection color not working with table that has DefaultTableModel

    hi folks,
    I noticed if a table has a AbstractTableModel, when you select a row, by default the highlight color is light blue. However, if a table has a DefaultTableModel, even if you invoke table.setSelectionBackgroun(color) and table.setSelectionForefround(color), the highlight color stays invisible. is this a bug? what's the cause of this problem?
    thanks!!

    Read this section from the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#renderer]Using Table Renderers. Here is a simple example to get you started
        class SimpleRenderer extends DefaultTableCellRenderer
            public Component getTableCellRendererComponent(
                JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
                super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
                if (hasFocus)
                    setBackground( Color.cyan );
                else if (isSelected)
                    setBackground( table.getSelectionBackground() );
                else
                    setBackground( table.getBackground() );
                return this;
        }

  • Bright Colors Not Working

    Hey all,
    So I start to work on something in Photoshop CS6 and suddenly certain colors don't show up right. Specifically bright bright blues and greens show as black. It seems to work in 32-bit RGB, but these colors have worked fine in standard 8-bit and I've worked with them before. Thumbnails, color picker, and saving for web seem to load the colors just fine. From what I can tell, in this random range it goes to black with saturation hits 100 in the color picker.
    Attached is a screenshot. The circle is supposed to be bright blue (00d4f6) and the central rounded square is supposed to be Twitter's blue. both don't show up except for some slight coloring on the edges.
    Anyone know how to fix this?
    Thanks!

    At least one of these questions comes in per day.  It's hard to imagine AMD has let it go this long.
    if nothing else it's a good way to make answer points. 
    I see that 13.2 has been at beta 7 level for 2 weeks now...  Probably means they've submitted it to Microsoft for WHQL certification, so hopefully we'll see a release soon.
    -Noel

  • JButton.setBackground(Color color) not working

    With JDK 1.4.2, my JButtons below have a blue background. When I compile with 1.5, they are gray. I tried using setOpaque(true) on one of them below. It didn't work. Any ideas?
    class MainMenu extends JFrame
        public MainMenu() throws Exception
            super("");// no title on main menu
            JPanel pane = new JPanel(null, true);
            pane.setBackground(new Color(4194496));
            Icon icon = new ImageIcon(BizThriveMenu.getResourceDir()+"\\BizThriveSmall.gif");
            JLabel lImage = new JLabel(icon);
            JButton bEditCustomers = new JButton("<html><FONT COLOR=WHITE>Customers</FONT></html>");
            bEditCustomers.setOpaque(true);
            bEditCustomers.setBackground(new Color(4194496));
            JButton bAccounting = new JButton("<html><FONT COLOR=WHITE>Accounting</FONT></html>");
            bAccounting.setBackground(new Color(4194496));
            JButton bEditReminders = new JButton("<html><FONT COLOR=WHITE>Reminders</FONT></html>");
            bEditReminders.setBackground(new Color(4194496));
            JButton bPublish = new JButton("<html><FONT COLOR=WHITE>Publish</FONT></html>");
            bPublish.setBackground(new Color(4194496));
            JButton bExit = new JButton("<html><FONT COLOR=WHITE>Exit</FONT></html>");
            bExit.setBackground(new Color(4194496));
            bEditCustomers.addActionListener(
                new ActionListener() {
                    public void actionPerformed(ActionEvent actionEvent) {
                        try {
                            new TableListFrame(MainMenu.this, "customers");
                        catch (Exception e) {
                            e.printStackTrace();
            bAccounting.addActionListener(
                    new ActionListener() {
                        public void actionPerformed(ActionEvent actionEvent) {
                            try {
                                new AccountCategoryListFrame(MainMenu.this, "accountCategories");
                            catch (Exception e) {
                                e.printStackTrace();
            bEditReminders.addActionListener(
                new ActionListener() {
                    public void actionPerformed(ActionEvent actionEvent) {
                        try {
                            new CurrentRemindersFrame(MainMenu.this);
                        catch (Exception e) {
                            e.printStackTrace();
            bPublish.addActionListener(
                new ActionListener() {
                    public void actionPerformed(ActionEvent actionEvent) {
                        try {
                            new Designer(MainMenu.this);
                        catch (Exception e) {
                            e.printStackTrace();
            bExit.addActionListener(
                new ActionListener() {
                    public void actionPerformed(ActionEvent actionEvent) {
                        System.exit(0);
            Font buttonFont = bEditCustomers.getFont();
            buttonFont = new Font("Times New Roman", Font.ITALIC+Font.BOLD, 24);
            bEditCustomers.setFont(buttonFont);
            bAccounting.setFont(buttonFont);
            bEditReminders.setFont(buttonFont);
            bPublish.setFont(buttonFont);
            bExit.setFont(buttonFont);
            pane.add(lImage);
            pane.add(bEditCustomers);
            pane.add(bAccounting);
            pane.add(bEditReminders);
            pane.add(bPublish);
            pane.add(bExit);
            int appWidth = 500;
            int appHeight = 700;
            this.setSize(new Dimension(appWidth,appHeight));
            this.setResizable(false);
            this.getContentPane().add(pane);
            Insets insets = pane.getInsets();
            lImage.setBounds(((appWidth-4-icon.getIconWidth())/2)+insets.left, 35+insets.top, icon.getIconWidth(), icon.getIconHeight());
            bEditCustomers.setBounds(((appWidth-4-235)/2)+insets.left,  200 + insets.top, 235, 40);
            bAccounting.setBounds(((appWidth-4-235)/2)+insets.left,  250 + insets.top, 235, 40);
            bEditReminders.setBounds(((appWidth-4-235)/2)+insets.left,  300 + insets.top, 235, 40);
            bPublish.setBounds(((appWidth-4-235)/2)+insets.left,  350 + insets.top, 235, 40);
            bExit.setBounds(((appWidth-4-235)/2)+insets.left,  400 + insets.top, 235, 40);
            //center application window on desktop
            Dimension screenSize = null;;
            screenSize = getToolkit().getScreenSize();
            this.setBounds((screenSize.width - appWidth)/2,
                (screenSize.height - appHeight)/2, appWidth, appHeight);
            // make the frame visible
            this.setVisible(true);
        }

    As a newbie to the forum you obviously didn't understand how to post a simple direct question, with only the relevant code to demonstrate the problem, which is why I provided you with all the extra information to help you get better answers in the future.
    Did you bother to read the link of creating an SSCCE?
    Your question is about setting the background color of a button. 99% of the code you posted is not related to that issue. Keep the code simple so we don't waste time reading through unnecessary code. That way we can determine whether the problem is with your code or the environment as I already mentioned.
    1) Though the information about setting the text color is helpful, the
    background color of the button is the subject of the posting. Please
    limit your replies to the subject of the posting.If the code posted was only related to the background color then we wouldn't have this issue now would we? When I see something strange or wrong I make a comment whether it is directly related to the question or not. It has been my experience that most people appreciate the bonus advice, so I will not change my behaviour for you. If you don't like the advice, then just ignore it.
    2) Regarding, "I don't use 1.5 so I can't really help you, but neither can
    anybody else...", please read Michael_Dunn's post, who remarkably
    was able to provide help.My comment was related to the code you provided. Nobody could use the code to compile and execute to see if it ran on their machine. So, Michael, had to waste time creating his own simple test program to see if it worked, which it did.
    My point was if you provided the same simple demo program that Michael did, then all he (or anybody else) would have had to do would be to copy, compile and test the program. You should be spending the time creating the simple test program not each of us individually. Think of how much time is wasted if everybody who wanted to help you had to create their own program? Thats why I included the link on creating an SSCCE, so the next time we don't need to waste time.
    3) ..... Otherwise, it's alright not to reply to a subject. Nobody will think less of you.Of course I don't have to replay to every question (and I don't), but if you don't learn to post a question properly you will make the same mistake again and again. That was the context of my answer. It was designed to help you ask a better question the next time.
    4) Your comment, "And don't forget to use the Code Formatting Tags > so the code retains its original formatting." That was a standard message I use for many newbies to the forum. I'm amazed at the number of people who think we are mind readers and can guess exactly what is causing the problem without posting any code. So I got tired of typing in a different message every time and I now just cut and paste. Yes I could have edited the last line out, but you would be amazed at how many people format the code the first time but then forget to do it when prompted for more detail. So I just keep it in all messages.
    Please keep your comments related to the problem. I think I've learned a think or two over the years on how to ask and answer a question.

  • Level color not working

    When I select text in an email and click reply, I get a new message that is supposed to set the text one level out and color it blue. It sets the level, but does not color the text. How can I fix this to work properly?

    I just bought my wife a new Mac Mini, now running OS 10.5.5 (after several updates). I can't get any program to activate any red color on our Samsung Syncmaster 720n, which works fine with our iBook running 10.4. The display's own self-test still shows a bright red.
    The display feature of Leopard was flaky from the beginning, showing horizontal stripes at random and then becoming washed out at random intervals for no apparent reason.
    It settled down a bit after I used the "Display" feature in "System Preferences" to calibrate. But I've recalibrated several times with several different profiles and now can't get the OS to activate any red in the display. Everything (including the color palettes for Word and Safari) shows only yellows, greens and blues, making my display as depressing as our economy.
    Seems like an OS problem.

  • TextFormat.color not working in Internet Explorer

    tf = new TextFormat();
    tf.bold = true;
    tf.color = 0xFFFFFF;
    box.textField.setStyle("textFormat", tf);
    box is a ComboBox component and this works in FireFox but not in Internet Explorer if anyone can help.

    O.k. I just figured something else out.  When the website first loads it doesn't work, but if you click on one of my links to go to a different frame and then click the home button to come back to frame one it works just fine.

  • Cross Dissolve, Dip to Color not working

    Hello. I am having trouble applying Cross Dissolve and Dip to Color to the transition between to separate clips. It works fine when I am transitioning between two clips originating from the same raw captured file (e.g. between two pieces I cut out of Raw 1), but I am unable to apply the transition to two clips from separate raw files (e.g. between a piece of Raw 1 and a piece of Raw 2).
    The timeline only allows me to place the transition just AFTER the cut between the two clips, rather than straddling the two for a smooth fade. Any idea why this might be? Thanks in advance for your help.
    Using Final Cut Pro 5.1.4, Tiger 10.4.9

    Enough handles?
    #1 Transitions "Insufficient Content"
    Shane's Stock Answer #1:
    You need to make sure that your clips have enough media (called 'handles') at the beginning of the incoming clip and at the end of the outgoing clip for the transition. For example, if you have a 1 second (30 frame) dissolve, your in and out point need to be at least 15 frames from the edge of the clip.
    What you are running into is that you are marking an out point at the end of a clip then adding a cross dissolve, say 20 frames in duration. Since the dissolve is centered on the cut, it will start 10 frames before the cut, and try to go 10 frames AFTER the cut...which it can't do.
    What you need to do is plan how long your dissolve will be and back-time your cut so that it works.
    a full 1 second crossfade reaches 15 frames into each clip. So, if you want to change a cut to a crossfade, there has to be at least 15 additional frames of each clip.
    Say you're trying to crossfade from one clip into the very first frame of a second clip. FCP cannot 'create' 15 more frames of the second clip to do a crossfade. If they're not there, you're out of luck.
    FCP has to extend the end of your first clip by 1/2 of your transition length, and the beginning of your second clip by 1/2 of your transition length, so those frames need to be in your system. The nature of a crossfade is mixing two clips together.
    Shane

  • Photoshop Print Screen/Paste colors not working any more

    System. Windows 7 Professional 64 bit with Adobe CS4
    One thing I do all the time is this:
    Have something like Windows Internet Explorer open on a web page.
    I want a screen shot of Windows IE. So I press Ctrl-Alt-Print Screen.
    Then I open Adobe Photoshop CS4 (11.0.2) and go File/New and accept all the defaults.
    Then I press Ctrl-V to paste in the screen capture.
    Pretty standard stuff and it used to work fine. But recently it stopped working. Now when I paste, the colors displayed in Photoshop for the screen capture are all off. However if I save the file as a GIF or something, and open the GIF outside of photoshop, it's all good.
    I've tried all sorts of things to fix this. Nothing seems to work.
    Anyone know what is really going on here? This seems to have happened after performing some Windows updates.

    gdkjunk912 wrote:
    So how do I set up a "good custom monitor profile"?
    This is why people calibrate and profile their monitors. If you had a calibrator this wouldn't be a problem (and they're not that expensive).
    What you need is a profile that accurately describes the behavior of your particular monitor. Chances are the Dell profile does that better than sRGB, and a custom profile from a calibrator would be even better. Then Photoshop, which is color managed, will use that profile to display the image - but Internet Explorer, which is not (or not fully) color managed, will not use the profile.
    So there will be a difference between the two right there, and Photoshop will be right, and IE wrong.
    The way this works is similar to any other profile conversion, like when you convert a document from, say, Adobe RGB to sRGB. Photoshop converts from the document profile to the monitor profile, on the fly, as it displays the image. This way it compensates for the peculiarities of your monitor and what you see is what the file "really" looks like.
    So you can see what happens if your document profile is sRGB, and your monitor profile is sRGB: nothing happens. No profile conversion, no color management. This way Photoshop behaves exactly as Internet Explorer does. Everything you see on-screen, color managed or not color managed, will match. But it won't be right. One way to simulate this (with a good monitor profile) is to proof to Monitor RGB.
    As for the screenshot: when you paste that into a new document, the RGB numbers will refer to the monitor profile, not the document profile. This is why you assign the monitor profile to make it look like the original. Then you convert that to sRGB (or Adobe RGB etc) to bring it into a standard color space.

  • Invert colors not working

    Hello all,
    I setup Yosemite in parallels to test...
    Strange as it may seem I like to use the inverted colors (dark mode is not enough)
    Wondering if anyone knows why invert colors does nothing now.
    Maybe a parallels bug but wanted to make sure it wasn't a
    Yosemite bug before I install it on my production machine.
    Thanks,
    Mark

    Invert colors in System Preferences > Accessibility is working fine on Yosemite here.

Maybe you are looking for

  • Keyboard keys different between models?

    I replaced the top case on a black Macbook 2.16 Core 2 Duo model, as the keyboard and trackpad were not being recognized and were not working. I had a white top case from a broken Macbook 2.0 Core 2 Duo which works okay. Finally a working keyboard an

  • Help me squash this bug please

    Post Author: eseidel CA Forum: General Hi, Im using VS2005 CR.  After playing around with my program for a while I think I have discovered a bug. I just don't know if it's me or Crystal? When I run the program and set the parameters and then generate

  • IPad 3 Battery quick ending

    Hi apple My ipad 3 battery quick ending after 6.1.3 In ios 5.1.1 good battery after update to 6.x bugs Need ios 6.1.4 or 6.2 without bugs

  • How do can we see the iplanet messaging server statistics?

    I need to know how many emails our iplanet messaging server is processing per day/month/year etc and the volume of data that this represents. How can I read the logs? Is there a tool for doing this? Thanks Paul

  • Unable to connect to Web Services error message

    I have read through the thread here and it seems like this has been a common issue -- but the final resolution seems to have been solved with a private message...I try to scan and send via email -- everything has been set up properly (and this, in fa