Background color of an applet

How can you set the backgroundcolor of an applet?

Applet extends Panel which extends Container which extends Component.
So the answer is "setBackground(Color)".

Similar Messages

  • Different background color when loading applets

    I can't find the information for when a browser loads an applet, to change the background color while the applet is loading.
    I know there are other "optional" applet tags as well, but I can't find the information.
    Any help is appreciated.

    Also to get rid of the java cup image
    <PARAM NAME="image" VALUE="" />
    Or you can replace the value with a real image of your own

  • Applet-Panel, background color and size problem

    I am writing an applet with simple form.
    Form is having 3 rows and 2 cols (label and textfield). Each row I want to display in different color. So I created each row with 2 separate panel (one for label and one for text field - of which I set the backgroung color).
    The total form is in one panel with grid layout (2 colmns).
    My problems are
    1)The space between label and text field (col width) can not be resized. I tried to use setSize but not giving any effect.
    2)Another problem is when I am seting the background color, the textfield is also changing the color (textfield I want to white color only). This does not have any effect on Choice
    3)The first label I wanted to use simple break but could not. I tried \n\t, \n, chr(13) + chr(10) etc but not getting any result so created separate panel.
    My code goes here:
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class test1 extends Applet{
    protected TextField refnoTextField=null, payerTextField=null, amtTextField=null;
    protected Choice typeChoice;
    public void init() {
         /* The mainPanel layouts components with BorderLayout manager
              which will hold form and button panel */
         Panel mainPanel = new Panel(new BorderLayout());
         Panel taxformPanel=new Panel(new GridLayout(3,2));
         Label l;
         //panel for tax ref no label
         Panel refnoLabelMainPanel = new Panel(new FlowLayout(FlowLayout.LEFT));
    //here wanted to use simple line break but \n\t does not seems to work not even chr (10), chr(13)
    //so created separate panel (Payment Voucher Or \n\t Reference no.
         Panel refnoLabelPanel = new Panel(new GridLayout(2,1));
         l = new Label("Payment Voucher Or");
    l.setFont(new Font("Helvetica", Font.BOLD,10));
         refnoLabelPanel.add (l);
         l = new Label("Tax Reference No:");
    l.setFont(new Font("Helvetica", Font.BOLD,10));
         refnoLabelPanel.add (l);
         refnoLabelMainPanel.add(refnoLabelPanel);
         refnoLabelMainPanel.setBackground(Color.blue);
         //panel for tax ref no text field
         Panel refnoTextFieldPanel = new Panel(new FlowLayout(FlowLayout.LEFT));
         refnoTextField = new TextField(20);
         refnoTextFieldPanel.add(refnoTextField);
         refnoTextFieldPanel.setBackground(Color.blue);
         //panel for tax type label
         Panel typeLabelPanel = new Panel(new FlowLayout(FlowLayout.LEFT));
         l = new Label("Tax Type:");
    l.setFont(new Font("Helvetica", Font.BOLD,10));
         typeLabelPanel.add (l);
         typeLabelPanel.setBackground(Color.yellow);
         //panel for tax type choice
         Panel typeChoicePanel = new Panel(new FlowLayout(FlowLayout.LEFT));
         typeChoice = new Choice();
         typeChoice.add("Personal Tax");
         typeChoice.add("Income Tax");
         typeChoicePanel.add(typeChoice);
         typeChoicePanel.setBackground(Color.yellow);     
         //panel for tax payers name label
         Panel payerLabelPanel = new Panel(new FlowLayout(FlowLayout.LEFT));
         l = new Label("Tax Payer's Name:");
    l.setFont(new Font("Helvetica", Font.BOLD,10));
         payerLabelPanel.add (l);
         payerLabelPanel.setBackground(Color.blue);
         //panel for tax payer field
         Panel payerTextFieldMainPanel = new Panel(new FlowLayout(FlowLayout.LEFT));
         Panel payerTextFieldPanel = new Panel(new GridLayout(2,1));
         payerTextField = new TextField(20);
         payerTextFieldPanel.add(payerTextField);
         l = new Label(" (as per NRIC or Passport)");
    l.setFont(new Font("Helvetica", Font.BOLD,8));
         payerTextFieldPanel.add (l);
         payerTextFieldMainPanel.add(payerTextFieldPanel);
         payerTextFieldMainPanel.setBackground(Color.blue);
         taxformPanel.add(refnoLabelMainPanel);
         taxformPanel.add(refnoTextFieldPanel);
         taxformPanel.add(typeLabelPanel);
         taxformPanel.add(typeChoicePanel);
         taxformPanel.add(payerLabelPanel);
         taxformPanel.add(payerTextFieldMainPanel);
         /* buttonPanel to hold all buttons */
         Panel buttonPanel = new Panel();
         buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
         Button continueButton = new Button("Continue");
         continueButton.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e) {
                        continueButtonAction();
         Button clearButton = new Button("Clear");
         clearButton.addActionListener(new ActionListener()     {
              public void actionPerformed(ActionEvent e)     {
                   clearButtonAction();
         Button cancelButton = new Button("Cancel");
         cancelButton.addActionListener(new ActionListener()     {
              public void actionPerformed(ActionEvent e)     {
                   cancelButtonAction();
         buttonPanel.add(continueButton);
         buttonPanel.add(clearButton);
         buttonPanel.add(cancelButton);
         mainPanel.add("Center", taxformPanel);
         mainPanel.add("South", buttonPanel);
         add(mainPanel);
    } // public void init()     
    public void continueButtonAction() {
         MessageDialog d=new MessageDialog("Confirm","Continue? ",true, 430, 150);
         System.out.println ("Continue Button Pressed");
    }//continueButtonAction
    public void clearButtonAction()     {
         System.out.println ("Reset Button Pressed");
    }//clearButtonAction
    public void cancelButtonAction()     {
         MessageDialog d=new MessageDialog("Confirm","Cancel Button ? ",true, 430, 150);
         System.out.println ("Cancel Button Pressed");
    } // cancelButtonAction
    } // TaxPaymentApplet3
    Please help,
    manisha

    I do not want to go into detail, but there are some hints you can follow.
    I am talking about AWT, not swing, you should decide which one you will use and don't mix the two of them.
    If you want to run your applet in current browsers without requiring the java plugin, you should be aware, that most browsers support old versions of java and many convenient methods and classes are missing :-(
    So
    You can change the size of a label by putting it in a panel ( labelPanel ), whose layout is set to FlowLayout. Then you put in labelPanel another empty panel ( emptyPanel ), whose layout is set to null, and you set the width of the empty panel to whatever you want ( this is the gap between the label and the next component ), an the height to the least nonsero number possible, i.e. 1. Well, you can add to the labelPanel more components, if you wish. So, when you want a gap, use an empty panel with a fixed size.
    You cannot use line break in a label. You should place more labels in a panel instead. I am not sure if the direction of FlowLayout can be set to vertical, but very probably it can. If so, that is your solution. If not - see what other layout managers you have available, but make sure your choice belongs to java.awt ! BorderLayout allows you to use up to three labels (=> 3 lines). And if nothing fits your needs, ... write a layout manager.
    Well, hope I could help.

  • Applets foregrouded with html body background color

    In our application we are using applets while loading applets ,applets controls are foregrounded with html background color thats why we are unable see applets properly.
    please give us suugesion, how can we solve this problem.
    thanks in advance..

    The HTML editor is the 'FCK Editor' of old, and the config for it is stored on the server where all of the javascript for your server instance is stored. You can modify much of the configuration of the HTML editor. The documentation for modifying the configuration of FCKEditor is here:
    http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_File

  • Applet's background color?

    Can I set new background color for applet?Gray is so boring.
    I maybe saw this somewhere,but I can't remeber where. :/
    Thanks for help.

    import java.awt.*;
    setBackground(Color.BLUE);
    -or-
    setBackground(java.awt.Color.BLUE);
    -or, if not blue, then -
    setBackground(new java.awt.Color(int R, int G, int B);
    ... check out java.awt.Color on the API docs

  • Need to set applet background color

    Hi, I try to write an applet in java and I need to
    set the back ground color of my applet to
    ==> RGB ( 66 , 144 , 216 )
    how can I do that??
    I have already looked at Java API and couldn't
    such a method: setBackGroundColor(66,144,216);
    please help
    thanks

    import java.applet.*;
    import java.awt.*;
    public class Example extends Applet {
         public void init() {
              setBackground(new Color(66,44,216));
    }

  • How to change object background color on  java run time

    Hi,
    I create object loading program. my problem is run time i change object background color using color picker. i select any one color of color picker than submit. The selecting color not assign object background.
    pls help me? How to run time change object background color?
    here follwing code
    import com.sun.j3d.loaders.objectfile.ObjectFile;
    import com.sun.j3d.loaders.ParsingErrorException;
    import com.sun.j3d.loaders.IncorrectFormatException;
    import com.sun.j3d.loaders.Scene;
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.io.*;
    import com.sun.j3d.utils.behaviors.vp.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.awt.Graphics ;
    import javax.swing.*;
    public class ObjLoad1 extends Applet implements ActionListener
    private boolean spin = false;
    private boolean noTriangulate = false;
    private boolean noStripify = false;
    private double creaseAngle = 60.0;
    private URL filename = null;
    private SimpleUniverse u;
    private BoundingSphere bounds;
    private Panel cardPanel;
    private Button Tit,sub;
    private CardLayout ourLayout;
    private BorderLayout bl;
    Background bgNode;
    BranchGroup objRoot;
    List thelist;
    Label l1;
    public BranchGroup createSceneGraph()
    BranchGroup objRoot = new BranchGroup();
    TransformGroup objScale = new TransformGroup();
    Transform3D t3d = new Transform3D();
    t3d.setScale(0.7);
    objScale.setTransform(t3d);
    objRoot.addChild(objScale);
    TransformGroup objTrans = new TransformGroup();
    objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    objScale.addChild(objTrans);
    int flags = ObjectFile.RESIZE;
    if (!noTriangulate) flags |= ObjectFile.TRIANGULATE;
    if (!noStripify) flags |= ObjectFile.STRIPIFY;
    ObjectFile f = new ObjectFile(flags,(float)(creaseAngle * Math.PI / 180.0));
    Scene s = null;
         try {
              s = f.load(filename);
         catch (FileNotFoundException e) {
         System.err.println(e);
         System.exit(1);
         catch (ParsingErrorException e) {
         System.err.println(e);
         System.exit(1);
         catch (IncorrectFormatException e) {
         System.err.println(e);
         System.exit(1);
         objTrans.addChild(s.getSceneGroup());
         bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
    if (spin) {
         Transform3D yAxis = new Transform3D();
         Alpha rotationAlpha = new Alpha(-1, Alpha.INCREASING_ENABLE,0,0,4000,0,0,0,0,0);
         RotationInterpolator rotator = new RotationInterpolator(rotationAlpha,objTrans,yAxis,0.0f,(float) Math.PI*2.0f);
         rotator.setSchedulingBounds(bounds);
         objTrans.addChild(rotator);
    //Background color setting
    Color3f bgColor = new Color3f(100,200,230);
    bgNode = new Background(bgColor);
    bgNode.setApplicationBounds(bounds);
    objRoot.addChild(bgNode);
    return objRoot;
    private void usage()
    System.out.println("Usage: java ObjLoad1 [-s] [-n] [-t] [-c degrees] <.obj file>");
    System.out.println("-s Spin (no user interaction)");
    System.out.println("-n No triangulation");
    System.out.println("-t No stripification");
    System.out.println("-c Set crease angle for normal generation (default is 60 without");
    System.out.println("smoothing group info, otherwise 180 within smoothing groups)");
    System.exit(0);
    } // End of usage
    public void init() {
    if (filename == null) {
    try {
    URL path = getCodeBase();
    filename = new URL(path.toString() + "./galleon.obj");
    catch (MalformedURLException e) {
         System.err.println(e);
         System.exit(1);
         //setLayout(new BorderLayout());
         //setLayout(new GridLayout(5,0));
         //setLayout(new CardLayout());
         //setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));
    GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
    Canvas3D c = new Canvas3D(config);
    add(c);
    BranchGroup scene = createSceneGraph();
    u = new SimpleUniverse(c);
    ViewingPlatform viewingPlatform = u.getViewingPlatform();
    PlatformGeometry pg = new PlatformGeometry();
    Color3f ambientColor = new Color3f(45,27,15);
    AmbientLight ambientLightNode = new AmbientLight(ambientColor);
    ambientLightNode.setInfluencingBounds(bounds);
    pg.addChild(ambientLightNode);
    Color3f light1Color = new Color3f(111,222,222);
    Vector3f light1Direction = new Vector3f(1.0f, 1.0f, 1.0f);
    Color3f light2Color = new Color3f(1.0f, 1.0f, 1.0f);
    Vector3f light2Direction = new Vector3f(-1.0f, -1.0f, -1.0f);
    DirectionalLight light1 = new DirectionalLight(light1Color, light1Direction);
    light1.setInfluencingBounds(bounds);
    pg.addChild(light1);
    DirectionalLight light2 = new DirectionalLight(light2Color, light2Direction);
    light2.setInfluencingBounds(bounds);
    pg.addChild(light2);
    viewingPlatform.setPlatformGeometry(pg);
    viewingPlatform.setNominalViewingTransform();
    if (!spin) {
    OrbitBehavior orbit = new OrbitBehavior(c,OrbitBehavior.REVERSE_ALL);
    BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
    orbit.setSchedulingBounds(bounds);
    viewingPlatform.setViewPlatformBehavior(orbit);     
    u.addBranchGraph(scene);
         public ObjLoad1(String[] args) {
              if (args.length != 0) {
                   for (int i = 0 ; i < args.length ; i++) {
                        if (args.startsWith("-")) {
                             if (args[i].equals("-s")) {
                                  spin = true;
                             } else if (args[i].equals("-n")) {
                                  noTriangulate = true;
                             } else if (args[i].equals("-t")) {
                                  noStripify = true;
                             } else if (args[i].equals("-c")) {
                                  if (i < args.length - 1) {
                                       creaseAngle = (new Double(args[++i])).doubleValue();
                                  } else usage();
                             } else {
                                  usage();
                        } else {
                             try {
                                  if ((args[i].indexOf("file:") == 0) ||
                                            (args[i].indexOf("http") == 0)) {
                                       filename = new URL(args[i]);
                                  else if (args[i].charAt(0) != '/') {
                                       filename = new URL("file:./" + args[i]);
                                  else {
                                       filename = new URL("file:" + args[i]);
                             catch (MalformedURLException e) {
                                  System.err.println(e);
                                  System.exit(1);
    public void actionPerformed(ActionEvent e)
         if (e.getSource() == Tit)
    //Color Picker tool
              Color c1 = JColorChooser.showDialog(((Component)e.getSource()).getParent(),"Zaxis Color Picker", Color.blue);
              cardPanel.setBackground(c1);
              objRoot.removeChild(bgNode);
              int a = c1.getRed();
              int b = c1.getBlue();
              int c = c1.getBlue();
              System.out.println(a);
              System.out.println(b);
              System.out.println(c);
              Color3f ccc = new Color3f(a,b,c);
              bgNode.setApplicationBounds(bounds);
         objRoot.addChild(bgNode);
         else
              System.out.println("mathi");
    public ObjLoad1()
    Tit = new Button("BG Color");
    sub = new Button("Object Color");
    cardPanel = new Panel();
    cardPanel.add(Tit);
    cardPanel.add(sub);
    //cardPanel.add(l1);
    //cardPanel.add(thelist);
    sub.addActionListener(this);
    Tit.addActionListener(this);
    // thelist.addActionListener(this);
    //setLayout for applet to be BorderLayout
    this.setLayout(new BorderLayout());
    //button Panel goes South, card panels go Center
    this.add(cardPanel, BorderLayout.SOUTH);
    //this.add(cardPanel, BorderLayout.CENTER);     
    this.setVisible(true);
    public void destroy() {
    public static void main(String[] args) {
         new MainFrame(new ObjLoad1(args),400, 400);

    hi,
    i am using setColor(Color3f color) method
    like
    if (e.getSource() == Tit)
              Color c1 = JColorChooser.showDialog(((Component)e.getSource()).getParent(),"Zaxis Color Picker", Color.blue);
              bgColor = new Color3f(c1);
              System.out.println(bgColor.get());
         bgNode.setColor(bgColor);
         bgNode.setApplicationBounds(bounds);
         objRoot.addChild(bgNode);
    but error will be displayed
    like
    javax.media.j3d.CapabilityNotSetException: Background: no capability to set color
         at javax.media.j3d.Background.setColor(Background.java:307)
         at ObjLoad1.actionPerformed(ObjLoad1.java:230)
         at java.awt.Button.processActionEvent(Unknown Source)
         at java.awt.Button.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    pls help me

  • How do I ge tthe background color of a browser window.

    How do I get the default backgound color of a browser. I made my Applet with white as the background color. My supervisor's IE settings makes his IE background color tan. Is there any way I can read that "tan" from somewhere and use that as my Applet background color?

    I am trying that, but it doesn't look like it is taking the parameters...
    I display the text on the html page as well, it seems to display ok, but the applet is not taking the parameter.
    <applet
      codebase = "."
      code     = "graphapplet.GraphApplet.class"
      name     = "TestApplet"
      width    = "400"
      height   = "300"
      hspace   = "0"
      vspace   = "0"
      align    = "middle"
    >
    <SCRIPT LANGUAGE="JavaScript">
    document.write("<param name = \"bgColor\" value = \"" + document.bgColor + "\">");
    </SCRIPT>
    <param name = "Filename" value = "data.txt">
    </applet>
    <SCRIPT LANGUAGE="JavaScript">
    document.write("param name = \"bgcolor\" value = \"" + document.bgColor + "\"");
    </SCRIPT>

  • [SOLVED] Gnome notification area has wrong background color

    I'm using the Shiki-Brave theme on Gnome and all (yes, all) of the tray icons have the wrong background color.  The color changes slighty if I select another Shiki theme, but is pretty close to the default gray.  Strangely, I only have this issue on my desktop at home -- none of my other machines (two laptops and a desktop at work) exhibit the problem.  I have ensured that the theme is exactly the same on all machines.  Another oddity is that other themes (e.g. high contrast inverse) have the right background color!
    The only thing I have managed to find via Google is a bug report against Gnome.  Here is what I have tried:
    * Removing and readding the applet to the panel.
    * Blowing away all my settings (rm -rf .gnome2 .gconf .gconfd .local) and setting things up again.  To be sure I did not miss anything, I also tried creating a new user with a clean home.  Still the same issue.
    * Removing and reinstalling all of the gnome and gnome_extra groups.  I even cleared the pacman cache to force a redownload.
    Any ideas?  I'm at a loss on what to try next.
    Thanks!
    Last edited by kdorf (2011-04-09 06:29:51)

    I figured out the problem.
    I have an NVIDIA card and I recently modified my X server to use Xinerama instead of TwinView.  Xinerama was responsible for all this nastiness.  Reverting to TwinView fixed the problem (and some other weird ones that started popping up).
    Those of you with NVIDIA cards, avoid Xinerama!

  • Problem with changing background colors in JPanels

    Hi,
    I have made an applet with Grid Layout and I have added JPanels in each grid. I have assigned a background color to all panels.
    Now what i am trying to do is, change the clicked JPanel's background color to "blue" on a mouse click and convert the previous changed JPanel's background to originally assigned color.
    This is the code that I have used:
    JPanel temp=null, m;
    String tempc, m_color;
    public void mouseClicked(MouseEvent me)
              m=(JPanel)me.getComponent();
              if(m!=temp)
              m_color=m.getBackground().toString();   // retaining current background color so as to change later
              m.setBackground(Color.blue);
                   if(temp!=null) 
                        temp.setBackground(Color.getColor(tempc));  // change back to original color
              tempc=m_color;       //tempc and m_color are Strings
              temp=m;               //temp and m are JPanels
         }When I am executing the above logic, background color changes to blue on a mouse click but the previously changed JPanel is not changing back to original color.
    Can anyone please tell where is the above logic going wrong??
    Thanks
    Rohan

    Hi Camickr,
    I tried to do it without changing Color to Strings but i was getting an error in the line temp.setBackground(Color.tempc);, so i decided to change it to String and retrieve it's value in the method.
    SSCCE for my code is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.lang.reflect.InvocationTargetException;
    <applet code="test" width=400 height=400>
    </applet>
    public class test extends JApplet
         JPanel t[][]=new JPanel[8][8];
         JPanel p[][];
         public void init()
         try{
         SwingUtilities.invokeAndWait(new Runnable()
              public void run()
                   t=makeGUI(8,8);
                   logic(t,8,8);
         }catch(InterruptedException e){e.printStackTrace();}
         catch(InvocationTargetException e){e.printStackTrace();}
    /* Board*/
    private JPanel[][] makeGUI(int rows, int cols)
        p = new JPanel[rows][cols];
        Container contentPane = getContentPane();
        contentPane.setLayout(new GridLayout(rows, cols));
        for (int i = 0; i < rows; i++)
          for (int j = 0; j < cols; j++)
            p[i][j] = new JPanel();
            contentPane.add(p[i][j]);
            if (i % 2 == j % 2)
              p[i][j].setBackground(Color.white);
              else
              p[i][j].setBackground(Color.darkGray);
         return p;
    private void logic(JPanel p[][], int rows, int cols)     
              for (int i = 0; i < rows; i++)
              for (int j = 0; j < cols; j++)
              final int k=i, l=j;
              p[i][j].addMouseListener(new MouseListener()
                   JPanel temp=null,m;
                   String tempc, m_color;
                   public void mouseClicked(MouseEvent me)
                        m=(JPanel)me.getComponent();
                        if(m!=temp)
                        m_color=m.getBackground().toString();     //retaining current background color
                        m.setBackground(Color.blue);
                        if(temp!=null)     // this method sets the panel
                             {               //     to its original color
                             temp.setBackground(Color.getColor(tempc));
                        tempc=m_color;     //color Strings
                        temp=m;          //JPanels
                   public void mouseEntered(MouseEvent me){}
                   public void mouseExited(MouseEvent me){}
                   public void mousePressed(MouseEvent me){}
                   public void mouseReleased(MouseEvent me){}
    }

  • Losing background color in IE6/7

    Hi all. I seem to be losing my background color in IE6/7
    where my text ends in the content area. Firefox displays fine. I
    would like the entire content area to be white all the way down to
    the blue footer. I'm not sure if it's because I'm using float or if
    I've made a mistake somewhere. This is the page:
    http://www.thecreativeadvantage.com/clientzone/Ordway/sec_page.html
    This is the styles, thanks in advance!!!

    Not sure why you have the "" in your background-image:
    url("../images/hexbg.jpg");
    "sarahcole" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi all. I seem to be losing my background color in IE6/7
    where my text
    > ends in
    > the content area. Firefox displays fine. I would like
    the entire content
    > area
    > to be white all the way down to the blue footer. I'm not
    sure if it's
    > because
    > I'm using float or if I've made a mistake somewhere.
    This is the page:
    >
    http://www.thecreativeadvantage.com/clientzone/Ordway/sec_page.html
    >
    > This is the styles, thanks in advance!!!
    >
    > * {margin:0;padding:0}
    >
    > html, body, div, span, applet, object, iframe, h1, h2,
    h3, h4, h5, h6 {
    > margin: 0;
    > padding: 0;
    > border: 0;
    > outline: 0;
    > font-size: 100%;
    > }
    >
    > body {
    > background-attachment: scroll;
    > background-image: url("../images/hexbg.jpg");
    > background-repeat: repeat;
    > color: #000;
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 11px;
    > margin: 20px 20px 20px 20px;
    > text-align: center;
    > }
    >
    >
    > #outerWrapper {
    > margin: 0 auto 0 auto;
    > padding: 0px 0 0px 0;
    > text-align: left;
    > width: 869px;
    > }
    > #outerWrapper #header {
    > margin: 0 auto 0 auto;
    > padding: 0px 0 0px 0;
    > font-size: 10px;
    > font-weight: bold;
    > }
    > #outerWrapper #contentWrapper {
    > background-color: #fff;
    > line-height: 20px;
    > position:relative;
    > }
    > #outerWrapper #contentWrapper #rightColumn1 {
    > margin: 20px;
    > padding: 0px;
    > background-color: #fff;
    > float: right;
    > width: 629px;
    > font-size: 12px;
    > line-height: 20px;
    > }
    > #outerWrapper #contentWrapper #rightColumn1 p {
    > padding: 0px 0px 14px 0px;
    > }
    > #outerWrapper #contentWrapper #rightColumn1 ul {
    > margin-left: 20px;
    > }
    > #outerWrapper #contentWrapper #content {
    > margin: 0 auto 0 auto;
    > padding: 20px 5px 0px 15px;
    > background-color: #fff;
    > text-align: left;
    > vertical-align: top;
    > font-weight: bold;
    > line-height: 20px;
    > color: #0012b4;
    > }
    > #outerWrapper #contentWrapper #content p {
    > padding: 0px 0px 14px 0px;
    > }
    > #outerWrapper #contentWrapper #content ul {
    > margin-left: 10px;
    > margin-bottom: 10px;
    > }
    >
    > #outerWrapper #contentWrapper .clearFloat {
    > clear: right;
    > display: block;
    > }
    > #outerWrapper #footer {
    > font-size: 10px;
    > color: #fff;
    > }
    > #outerWrapper #contentWrapper {
    > background-color: #fff;}
    >
    > .topLeftCorner {
    > background-attachment: scroll;
    > background-image: url("../images/header_lt_corner.gif");
    > background-repeat: no-repeat;
    > width: 18px;
    > height: 27px;
    > background-position: top left;
    > margin: 0 0 0 0;
    > padding: 0 0 0 0;
    > }
    >
    > .topMiddle {
    > background-attachment: scroll;
    > background-image: url("../images/header_middle.gif");
    > background-repeat: repeat-x;
    > width: 834px;
    > background-position: top left;
    > margin: 0 0 0 0;
    > padding: 0 0 0 0;
    > }
    >
    > .topMiddle a {
    > color: #fff;}
    >
    > .topRightCorner {
    > background-attachment: scroll;
    > background-image: url("../images/header_rt_corner.gif");
    > background-repeat: no-repeat;
    > width: 17px;
    > height: 27px;
    > background-position: top right;
    > margin: 0 0 0 0;
    > padding: 0 0 0 0;
    > }
    >
    >
    > .bottomLeftCorner {
    > background-attachment: scroll;
    > background-image: url("../images/footer_lt_corner.gif");
    > background-repeat: no-repeat;
    > width: 18px;
    > height: 27px;
    > background-position: top left;
    > margin: 0 0 0 0;
    > padding: 0 0 0 0;
    > }
    >
    > .bottomMiddle {
    > background-attachment: scroll;
    > background-image: url("../images/footer_middle.gif");
    > background-repeat: repeat-x;
    > width: 834px;
    > height: 27px;
    > background-position: top left;
    > text-align: center;
    > margin: 0 0 0 0;
    > padding: 0 0 0 0;
    > vertical-align: middle;
    > }
    >
    > .bottomRightCorner {
    > background-attachment: scroll;
    > background-image: url("../images/footer_rt_corner.gif");
    > background-repeat: no-repeat;
    > width: 17px;
    > height: 27px;
    > background-position: top right;
    > margin: 0 0 0 0;
    > padding: 0 0 0 0;
    > }
    >
    > .newsTable a, .subheadLink a {
    > color: #0012b4;
    > font-weight: bold;
    > font-size: 13px;
    > line-height: 30px;
    > text-decoration: none;
    > padding: -1px 2px -1px 2px;
    > border-bottom: 1px solid #0012b4;
    > border-top: 1px solid #fff;
    > }
    >
    > .newsTable a, .newsTable a:link, .subheadLink a,
    .subheadLink a:link {
    > color: #0012b4;
    > font-weight: bold;
    > text-decoration: none;
    > padding: -1px 2px -1px 2px;
    > border-bottom: 1px solid #0012b4;
    > border-top: 1px solid #fff;
    > }
    >
    > .newsTable a:visited , .subheadLink a:visited {
    > color: #0012b4;
    > font-weight: bold;
    > text-decoration: none;
    > padding: -1px 2px -1px 2px;
    > border-bottom: 1px solid #0012b4;
    > border-top: 1px solid #fff;
    > }
    >
    > .newsTable a:hover, .subheadLink a:hover {
    > color: #0012b4;
    > font-weight: bold;
    > text-decoration: none;
    > background-color: #ceddf2;
    > padding: -1px 2px -1px 2px;
    > border-bottom: 1px solid #0012b4;
    > border-top: 1px solid #0012b4;
    > }
    >
    > .newsTable a:focus, .subheadLink a:focus {
    > color: #0012b4;
    > font-weight: bold;
    > text-decoration: none;
    > background-color: #ceddf2;
    > padding: -1px 2px -1px 2px;
    > border-bottom: 1px solid #0012b4;
    > border-top: 1px solid #0012b4;
    > }
    >
    > .newsTable a:active, .subheadLink a:active {
    > color: #0012b4;
    > font-weight: bold;
    > padding: -1px 2px -1px 2px;
    > border-bottom: 1px solid #0012b4;
    > border-top: 1px solid #fff;
    > }
    >
    > .searchField {
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 11px;
    > color: #666;
    > text-align: center;
    > vertical-align: middle;
    > }
    >
    > #searchButton {
    > padding-left: 5px;
    > vertical-align:middle;}
    >
    > #search_box {
    > display: block;
    > padding-bottom: 0px;}
    >
    > .newsTable {
    > width: 450px;
    > text-align: center;
    > margin-left: 40px;
    > }
    >
    > .bannerPadding {
    > padding-bottom: 0px;}
    >
    > .bottomTextPadding {
    > background-color: #fff;
    > text-align: center;
    > padding-bottom: 15px;}
    >
    > .navMargin {
    > margin-top: 1px;
    > }
    >
    > #topMainImage {
    > background-attachment: scroll;
    > background-image: url("../images/infections_bg.jpg");
    > background-repeat: no-repeat;
    > background-color:fff;
    > width: 869px;
    > height: 241px;
    > background-position: top left;
    > margin: 0 0 0 0;
    > padding: 0 0 0 0;
    > }
    > #topMainImage table td.rightSide {
    > text-align:right;
    > vertical-align:bottom;
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 28px;
    > color: #fff;
    > background-color:fff;
    > }
    > #topMainImage table td.leftSide {
    > width:200px;
    > background-color:fff;
    > text-align:center;
    > vertical-align:bottom;
    > padding-bottom: 30px;
    > }
    >
    > #content a, #content a:link #content a:visited {
    > color: #0012b4;
    > font-weight: normal;
    > font-size: 10px;
    > line-height: 30px;
    > text-decoration: none;
    > padding: -3px 2px -3px 2px;
    > border-bottom: 1px solid #0012b4;
    > border-top: 1px solid #fff;
    > }
    >
    > #content a:hover, #content a:focus {
    > color: #0012b4;
    > font-weight: normal;
    > font-size: 10px;
    > line-height: 30px;
    > text-decoration: none;
    > background-color: #ceddf2;
    > padding: -3px 2px -3px 2px;
    > border-bottom: 1px solid #0012b4;
    > border-top: 1px solid #0012b4;
    > }
    >
    >
    > .newsTable a:active, .subheadLink a:active {
    > color: #0012b4;
    > font-weight: bold;
    > padding: -1px 2px -1px 2px;
    > border-bottom: 1px solid #0012b4;
    > border-top: 1px solid #fff;
    > }
    >

  • Problem during upgrade from 10g R1 to R2 - background color

    We are using Oracle 10g Forms , where we will have date and time display in every page of the form. Now we have upgraded the version from 10g R1 to R2.
    In R1 , when the date&time flickers the background color will be in white color.
    But in R2, when the date&time flickers the background color is in Grey color.
    How to change the background color back to white. the date & time display calls the jar file to display the time. No change in the jar file.. I have changed the background color in the property palette of the date&time as white.. but still the problem exist..
    Any suggestions or solutions , plsssss.......

    In R2:
    HTMLbeforeForm=<SCRIPT LANGUAGE="JavaScript">window.opener = self;</SCRIPT>
    # HTMLbeforeForm=
    # HTML to add after the form
    HTMLafterForm=
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms/lservlet
    # Forms applet parameter
    codebase=/forms/java
    # Forms applet parameter
    imageBase=DocumentBase
    # Forms applet parameter
    width=750
    # Forms applet parameter
    height=600
    # Forms applet parameter
    separateFrame=false
    # Forms applet parameter
    splashScreen=
    # Forms applet parameter
    background=
    # Forms applet parameter
    lookAndFeel=Oracle
    # Forms applet parameter
    colorScheme=teal
    # Forms applet parameter
    logo=
    # Forms applet parameter
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar
    # Forms applet archive setting for Microsoft Internet Explorer native JVM
    archive_ie=frmall.cab
    # Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
    archive=frmall.jar
    heartBeat=30
    # Number of times client should retry if a network failure occurs. You should
    # only change this after reading the documentation.
    networkRetries=0
    # Page displayed to Netscape users to allow them to download Oracle JInitiator.
    # Oracle JInitiator is used with Windows clients.
    # If you create your own page, you should set this parameter to point to it.
    jinit_download_page=/forms/jinitiator/us/jinit_download.htm
    # Parameter related to the version of JInitiator
    jinit_classid=clsid:CAFECAFE-0013-0001-0026-ABCDEFABCDEF
    # Parameter related to the version of JInitiator
    jinit_exename=jinit.exe#Version=1,3,1,26
    # Parameter related to the version of JInitiator
    jinit_mimetype=application/x-jinit-applet;version=1.3.1.26
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
    # Parameter related to the version of the Java Plugin
    jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    # Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    # EM config parameter
    # Set this to "1" to enable Enterprise Manager to track Forms processes
    em_mode=1
    In R1 :
    HTMLbeforeForm=
    # HTML to add after the form
    HTMLafterForm=
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms90/l90servlet
    # Forms applet parameter
    codebase=/forms90/java
    # Forms applet parameter
    imageBase=DocumentBase
    # Forms applet parameter
    width=750
    # Forms applet parameter
    height=600
    # Forms applet parameter
    separateFrame=false
    # Forms applet parameter
    splashScreen=
    # Forms applet parameter
    background=
    # Forms applet parameter
    lookAndFeel=Oracle
    # Forms applet parameter
    colorScheme=teal
    # Forms applet parameter
    logo=
    # Forms applet parameter
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet archive setting for JInitiator
    archive_jini=f90all_jinit.jar
    # Forms applet archive setting for Microsoft Internet Explorer native JVM
    archive_ie=f90all.cab
    # Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
    archive=f90all.jar
    # heartBeat 8/16/2006 czlapinski
    # heartBeat changed to 30 8/29/2006 czlapinski
    heartBeat=30
    # Number of times client should retry if a network failure occurs. You should
    # only change this after reading the documentation.
    networkRetries=0
    # Page displayed to Netscape users to allow them to download Oracle JInitiator.
    # Oracle JInitiator is used with Windows clients.
    # If you create your own page, you should set this parameter to point to it.
    jinit_download_page=/forms90/jinitiator/us/jinit_download.htm
    # Parameter related to the version of JInitiator
    jinit_classid=clsid:CAFECAFE-0013-0001-0026-ABCDEFABCDEF
    # Parameter related to the version of JInitiator
    jinit_exename=jinit.exe#Version=1,3,1,26
    # Parameter related to the version of JInitiator
    jinit_mimetype=application/x-jinit-applet;version=1.3.1.26
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    jpi_download_page=http://java.sun.com/products/plugin/1.3/plugin-install.html
    # Parameter related to the version of the Java Plugin
    jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
    # Parameter related to the version of the Java Plugin
    jpi_codebase=http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0
    # Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;version=1.3
    # EM config parameter
    # Set this to "1" to enable Enterprise Manager to track Forms processes
    em_mode=1
    Using the same Jinitator version , but the version for jpi differs.

  • How to give Common Background color for all JPanels in My Swing application

    Hi All,
    I am developing a swing application using The Swing Application Framework(SAF)(JSR 296). I this application i have multiple JPanel's embedded in a JTabbedPane. In this way i have three JTabbedPane embedded in a JFrame.
    Now is there any way to set a common background color for the all the JPanel's available in the application??
    I have tried using UIManager.put("Panel.background",new Color.PINK);. But it did not work.
    Also let me know if SAF has some inbuilt method or way to do this.
    Your inputs are valuable.
    Thanks in Advance,
    Nishanth.C

    It is not the fault of NetBeans' GUI builder, JPanels are opaque by default, I mean whether you use Netbeans or not.Thank you!
    I stand corrected (which is short for +"I jumped red-eyed on my feet and rushed to create an SSCCE to demonstrate that JPanels are... mmm... oh well, they are opaque by default... ;-[]"+)
    NetBeans's definitely innocent then, and indeed using it would be an advantage (ctrl-click all JPanels in a form and edit the common opaque property to false) over manually coding
    To handle this it would be better idea to make a subclass of JPanel and override isOpaque() to return false. Then use this 'Trasparent Panel' for all the panels where ever transparency is required.I beg to differ. From a design standpoint, I'd find it terrible (in the pejorative sense of the word) to design a subclass to inconsistently override a getter whereas the standard API already exposes the property (both get and set) for what it's meant: specify whether the panel is opaque.
    Leveraging this subclass would mean changing all lines where a would-be-transparent JPanel is currently instantiated, and instantiate the subclass instead.
    If you're editing all such lines anyway, you might as well change the explicit new JPanel() for a call to a factory method createTransparentJPanel(); this latter could, at the programmer's discretion, implement transparency whichever way makes the programmer's life easier (subclass if he pleases, although that makes me shudder, or simply call thePanel.setOpaque(false) before returning the panel). That way the "transparency" code is centralized in a single easy to maintain location.
    I had to read the code for that latter's UI classes to find out the keys to use (+Panel.background+, Label.foreground, etc.), as I happened to not find this info in an authoritative document - I see that you seem to know thoses keys, may I ask you where you got them from?
    One of best utilities I got from this forum, written by camickr makes getting these keys and their values very easy. You can get it from his blog [(->link)|http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/]
    Definitely. I bit a pair of knucles off when discovered it monthes after cumbersomely traversing the BasicL&F code...
    Still, it is a matter-of-fact approach (and this time I don't mean that to sound pejorative), that works if you can test the result for a given JDK version and L&F, but doesn't guarantee that these keys are there to stand - an observation, but not a specification.
    Thanks TBM for highlighting this blog entry, that's the best keys list device I have found so far, but the questions still holds as to what specifies the keys.
    Edited by: jduprez on Feb 15, 2010 10:07 AM

  • Can I change the background color of a video thumbnail to view a silhouettes transparancy in Bridge

    I see this question asked a ton on here, and never EVER am I finding an answer.  I know in the past (Adobe CS 5) in Bridge you could view the transparency of a black silhouette image against a medium grey so you could see the content of the clip.  Adobe changed that with CS 5.5 & on, and never seems to want to answer question when we members ask.  PLEASE ADOBE ANSWER!!
    How can I view a black silhouette image in Bridge when Adobe had decided to make the transparency black instead of grey? (Ideally the transparency of a video file should show as a grid as it does in ALL OTHER Adobe products.
    PLEASE HELP.  We use bridge heavily in production to organize our assets, and this change not being addressed kills our asset searching time because we have to open each clip to view it, rather than being able to preview it, which is what the Bridge is for.
    Thanks.
    P.S.  Do not tell me how to change the programs background color as this is not the question.  The question is how do I change the color of the transparency display for video clips.

    Hi Peter
    The associated FCM file provides us a clue as to Captivate's
    pedigree. What we know today as Captivate is a product that was
    born into the world and dubbed "FlashCam". This file contains
    information about margins. So FCM means, FlashCam Margins.
    If all you are doing is adjusting the colors a bit, you may
    copy the associated files to new names. Then modify the colors as
    desired and all should be well.
    Cheers... Rick

  • How to get background color in MVC programming

    Hi Experts,
    I am new to BSP.
    I am working in CRM 7.0 version and designing a view using MVC method in BSP.
    I have two doubts::
    1. How can i get background color in a view ?
    2. How can i attach a picture, that is in paint-brush, in background ?
    Thanks in Advance.
    Nitin Karamchandani.
    Edited by: Nitin Karamchandani on Jun 3, 2009 8:10 AM

    Hi,
    several html tags have the attribute bgcolor, like
    <body bgcolor="red">  or <body bgcolor="RRGGBB">  where RR, GG, BB is an hexadecimal value according to RGB color palette.
    you can also work with CSS and in this case you affect the attribute style, which is also available in several tags:
    document.body.style.backgroundColor="#EEEEEE"

Maybe you are looking for

  • Is the Mac Book Pro worth the purchase?

    Hey there, I have a G4 Titanium laptop, and the LCD is starting to fritz. I'm going to get it repaired, but I'm also considering just chucking it and buying a new machine. What do you recommend? Is the Mac Book Pro worth the purchase? I just went and

  • Number of Channels: AppleTV3 vs. Roku2

    I've always been an Apple Evangelist since 1985. In addition to my Mac Pro, Macbook Pro, iPhone 5, iPad 1, I have an AppleTV Gen 3 and love it. Especially mirroring. Excellent. My girlfriend just bought a Roku Gen 2 and we were hooking it up today an

  • Elements 10 shutting down in edit

    hi, could someone help me.  i am fairly new to elements, just loaded elements 10 mac on lion.  it installed perfectly (or so i think).  i have never used the organize part of it fo nt familair.  when i open elements, if i chose "edit" and work then w

  • After updating my 5S to ios 8.1.2 sync calendar to outlook no longer works

    After updating my 5S to ios 8.1.2 sync calendar to outlook no longer works, using iTunes 12.0.1.26. It will sync from Outlook to the phone, but not from the phone to Outlook.  This was working last week with the last version of iTunes and ios 8.1.1

  • Iphoto 2011 problems

    i opened iphoto 2011 on my 21.5 imac and it shows that the last import was 1137 photos but they are all thumbnail icons of weird stuff like hp printer icons and exclamation points and stuff like that. There are about 229 folders called resources and