How to set picture instead of any color to Frame

hello friends.i justwanna to know that how can we set a picture as a background of any Frame.is there any way through glasspane.

You should override the paintComponent() method, not the paint() method. Here is a link to the Swing tutorial on "Painting" which will explain why:
http://java.sun.com/docs/books/tutorial/uiswing/overview/draw.html
Don't forget to click on the "Working With Graphics" link on the bottom.
Here is a little program to get you started:
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
public class TestBackground extends JFrame
     ImageIcon img;
     public TestBackground()
          img = new ImageIcon("????.jpg");
          JPanel panel = new JPanel()
               public void paintComponent(Graphics g)
                    g.drawImage(img.getImage(), 0, 0, null);
                    super.paintComponent(g);
          panel.setOpaque(false);
          panel.add( new JButton( "Hello" ) );
          setContentPane( panel );
     public static void main(String [] args)
          TestBackground frame = new TestBackground();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(300, 300);
          frame.setVisible(true);

Similar Messages

  • I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    The way that Dropbox works is that it keeps a copy of all your files in your local Dropbox folder on your hard drive (which is, by default, directly under your home folder). Adding files to that folder will sync them to the Dropbox server.
    You do of course have to download the Dropbox application to enable this (download link at the top right of http://dropbox.com ).
    Matt

  • How to set default value and bg color of cross tab cell?

    Hi all
    Which way can I set default value and background color for a crosstab cell where there are no any data?
    I try to pass it in following way
    if isnull(CurrentFieldValue) then
    But is has no effect.

    Hi,
    If your field is numeric
    if currentfieldvalue =0 then cryellow else crnocolor
    if the field is numeric but you don't see the 0 check check if : Suppress if zero is ticked in the Number format tab.
    Regards

  • HT201726 How to set again your windows background color

    I  used to have a pleasant blue color as a background for my files, documents, applications, but when I looked for a file and clicked on the screen the color was gone becoming a white background.
    I used to see the view options but now it has the point on one selection and cannot click on the color to change it back again. Any solutions and/or suggestions on how to do it? Thank U.

    I';ll try to make it as clear as I can to cover all bases. I set before the blue color I wanted, it changed once I update the OS System to Maverick.
    When I open the finder window on the left column appears 8 (eight) icons, another one for shared plus other for tags.
    All the first 8 used to have the blue color set. Now only iCloud, Desktop, and Ilabra (home). All my files, documents and applications the background used to be blue they turned White..
    ON the three options of White, Color or Picture, The selection appears on White and the other two are shaded. Before the View had the three option when I applied the blue color. Now I can not, and I do not know why this occurred.
    I hope I have been clear with the explanation. Any more suggestions? I will certainly appreciate them and your time and patience.

  • How to set the 4th Y axis color for a line graph

    Hello experts,
    I have developed a multiple y axis line graph using oracle reports 10g.
    It has got 1 x axis and 4 axes. I am able to set the color of the the first three y axes
    but the reports designer automatically assigns yellow color to the 4th axis.
    I mean there is no option in the graph wizard for changing the 4th color)
    How to change the color of this 4th y axis to a desired color?
    Cheers
    Sri

    Assuming you mean that your graph has 4 series, not 4 Y axes, you might try something like this:
    1. Save a backup copy of your current report in case the changes you are about to make don't work out and you want to revert to the backup copy.
    2. Using the Property Inspector, display the current value of the Graph Settings property for your graph. The value of the property should be something like:
    <rw:graph id...
    </rw:graph>3. Look for a <SeriesItems> tag and a matching </SeriesItems> tag in the property value. If you don't find them, add the following two lines immediately before the </Graph> tag.
    <SeriesItems>
    </SeriesItems>4. Between the <SeriesItems> tag and the matching </SeriesItems> tag, add (or update) a <Series> tag for each series that you want to specify the color for. For example, to specify the color of the fourth series as red, you would use a <Series> tag like this:
    <Series id="3" color="#ff0000"/>Note that the id numbers start at 0 for the first series, 1 for the second, and so on. The color value is a hexadecimal number specifying the RGB value of the color.
    You can also use the <Series> tag to specify other features like the marker shape.
    For more information on what you can do using the Graph Settings property, see this FAQ and Technical Note.
    Hope this helps.

  • Why is the History Brush only painting white on my picture instead of the colors from my text file?

    I am working on a project for my online class and am having difficulties with the History Brush.  Note that both files are identical in size etc.
    1.  I created a color text file and saved it with a specific name.
    2.  I copied an existing photo from iPhoto, as I couldn't import into PhotoShop,  and pasted it in a new file.  I then removed the white background layer and then saved it with its now specific name and closed the file.
    3. I re-opened the Color Text File.
    4.  I then re-opended my photo.
    5.  I performed a "Select All" from the menu bar of my active Photo then selected Edit - Copy and then closed my Photo file.
    6.  From my Color Text File I selected Edit and then Paste from the menu bar.
    7.  I selected Layer and Flatten Image from the menu bar.
    8.  I right clicked the background image from the Layers Panel and created a snapshot (which is my photo)
    9.  I selected the History brush and verified that this also displayed in the gray box associated with the Color Text file within the History Panel.
    10.  I verified that my photo image was displayed in my work area.
    11.  I start to fill the photo with my History Brush and the only color I get is White.
    Any assistance would be appreciated.

    You seem to think that a History State equals a Layer.  That couldn't be farther from the truth.
    aswencak wrote:
     …We are then suppose to click the History brush from the Tools Panel and verify that the little box next to the Tie-Dye image is selected and displays the History Brush.  Now the document area should display the photo, at this point we are suppose to paint the photo with 1 stroke.  The painted colors would be that from the Tie-Dye image…
    That's not clearly phrased, but it sounds totally wrong.  Again, a History State will not just show you what you just pasted, but your entire image, with ALL its layers.
    Normally, to use the History Brush one goes back one step in the History Panel AFTER you have created your snapshot, so that you'll be selectively applying the changes to your image as it was before the filter.  Here's an example:
    You've finished editing an image.  Fine.  Now you apply an Unsharp Mask filter (to the whole image, of course) and immediately create your Snapshot.
    Now you step back in the History Panel to the state BEFORE you applied the sharpening.  You make sure your History Brush is targeting the sharpened Snapshot, but you start painting on the History State BEFORE you applied the sharpening.
    Now you can start applying selective sharpening with your History Brush in whatever blending mode you wish.  For selective sharpening, the History Brush in Luminosity blending mode gives you fantastic results.
    Just remember:  History States are not like layers at all.
    In my opinion that's a lousy instructor who would make you use the Clipboard to illustrate the use of the History Brush.  … but that's just me.

  • How to set page margin for any site being viewed without back and forth scrolling?

    Some sites and most forums, the threads cannot be read without scrolling the screen back and forth. How can these be set where all information is read without moving screen short of up or down and not side ways back and forth.

    Thank you all for attempts to satisfy my needs. The last concerning my screen is 19 inches and 800 resolution. I'm very long in the tooth and if I go higher in
    resolution I have to play squint the fonts are so small. Crank them up and I'm back to scrolling back and forth on the screen.
    Again thanks for help but I' m not interested in spending money on newer
    haha state of the art equipment just to satisfy the need of cyber space Ad
    purveyors to post their wares. Graphics I can do without as well. If they want
    me to see what they have to offer, then stop messing with what once worked just fine.
    I still have Word where I can do with whatever I copy n paste to get done what I need. The convenience of doing so right at the site isn't a requirement as such. Being a retired Master Electronics Technician, I'm short on computer orientations but long on other kinds of smarts.
    Again, Thank you all for the help.
    Gizmoman

  • How to set to NOT use any flash?

    Two questions... sorry, they are dumb:
    1- Does Safari 4.0.5 support flash?
    2- If so, how can you turn it off totally so I can see what web sites might look like on iPad etc with no flash?
    thanks,
    tom

    Tom,
    No dumb questions...
    Yes, Safari 4.0.5 supports Flash but just make sure you have the most recent Flash plugin version installed which is: Adobe Flash Player version 10.0.45.2 You can view installed plugins in Safari by clicking Help/Installed Plugins from the Safari Menu Bar.
    You can install ClicktoFlash but you really don't need to install 3rd party software. If you visit a site that requires the Flash plugin on an iPad, all you will see is a blue square. You may not see the same results on a Mac running Safari with Flash disabled.
    If you watch these videos you'll see what I mean.
    Watch the iPad Keynote video here... http://www.apple.com/ipad/#video
    and here. http://www.apple.com/quicktime/qtv/specialevent0110/
    Carolyn
    Message was edited by: Carolyn Samit

  • How to set text and background color of current row in a adf table?

    Hi,
    In jdev 11.1.2.3,
    How to set text fond and background color of current row in a adf table?
    I tried to set Background color in table property, but that is not what i want.
    Thanks.

    Hi,
    We almost had the same requirement, but we just needed to color a specific column.
    Here goes the solution to that, you might do the same for your row highlighting
    Changes are required in jsff and one method to be added in backing bean
    1. JSFF :
    <af:column headerText="Amount"
                     id="c4" width="100"
                     inlineStyle="#{backingBeanScope.BackingBean.cellColor}">2. Backing Bean
    //searchResultTableVO is Table's VO
    public String getCellColor() {
          FacesContext ctx = FacesContext.getCurrentInstance();
          ExpressionFactory ef = ctx.getApplication().getExpressionFactory();
          ValueExpression ve = ef.createValueExpression(ctx.getELContext(), "#{row}", FacesCtrlHierNodeBinding.class);
          FacesCtrlHierNodeBinding node = (FacesCtrlHierNodeBinding)ve.getValue(ctx.getELContext());
          Row row = node.getRow();
        if(row.equals(searchResultTableVO.getCurrentRow())){
    //You can add your inline style for font-style too
          return "background-color:Red;";
             return null;
      }Hope this is helpful :)
    Regards,
    Neha..

  • Set a particular column's Color when importing a list to Excel

    Hi all,
    I am displaying a list by using REUSE_ALV_LIST_DISPLAY.
    It works fine.Now i import this List to Excel sheet by custom program to set the formatting part and for color prospect which is not working with standard Import functionality.I am using the Methods of Interface  I_OI_SPREADSHEET.
    Now my query is that how to set a particular column's Color ?
    And how to set the width of a particular column ?
    Suggess.
    Points will be sured.
    Thanks
    Sanket sethi

    check this
    downloading my report output with the same color on my report to excel .
    Download alv output to an excel file

  • Any one know how to set a picture background in JPanel

    I am study java at collage and need to know this for a project
    How to set a picture gif or bmp etc to a background in JPanel in Swing
    CAN ANYONE HELP!

    If you want to just add an image to a JPanel, create a JLabel and add the image to that, then add the JLabel to the JPanel. If you want it to be the background of the JPanel, check this out:
    http://manning.com/sbe/files/uts2/Chapter15html/Chapter15.htm
    15.2 is where you'll find your answer along with sample code. The whole book is useful, take a look through it if you're interested.

  • How can i set  picture as background using JPanel

    hello can you kindly tell me how i can set picture as the background of my jpanel instead of using set
    setBackground(Color.bule)

    you can use a JLayeredPane ; put a JPanel containing a JLabel based on an ImageIcon on the lowest layer of your JLayeredPane
    then, use upper layers to add components
    edit: another possibility is to override the "paint()" method of your JPanel container, and use drawImage() to paint the picture as a background

  • How to set background color for a JFrame

    Hi,
    i am new to swing programming. I have created a JFrame called framehelp and i placed some labels in the frame.
    I have set the background color as yellow for the frame ie by setBackground(new java.awt.Color(255, 255, 204));
    But after compiling the program i am still getting the background color of frame as gray.
    How can i change the background color of frame as lightish yellow.
    I have used NETBEANS to generate this code and i am posting the code..
    Kindly help me
    Thanks in adavance
    public class framehelp extends javax.swing.JFrame {
        /** Creates new form framehelp */
        public framehelp() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            jLabel3 = new javax.swing.JLabel();
            jLabel4 = new javax.swing.JLabel();
            jLabel5 = new javax.swing.JLabel();
            jLabel6 = new javax.swing.JLabel();
            jLabel8 = new javax.swing.JLabel();
            jLabel9 = new javax.swing.JLabel();
            jLabel10 = new javax.swing.JLabel();
            jLabel11 = new javax.swing.JLabel();
            jLabel12 = new javax.swing.JLabel();
            jLabel13 = new javax.swing.JLabel();
            jLabel7 = new javax.swing.JLabel();
            jLabel14 = new javax.swing.JLabel();
            jLabel15 = new javax.swing.JLabel();
            jLabel16 = new javax.swing.JLabel();
            jLabel17 = new javax.swing.JLabel();
            jLabel18 = new javax.swing.JLabel();
            jLabel19 = new javax.swing.JLabel();
            jLabel20 = new javax.swing.JLabel();
            jLabel21 = new javax.swing.JLabel();
            jLabel22 = new javax.swing.JLabel();
            jLabel23 = new javax.swing.JLabel();
            jLabel24 = new javax.swing.JLabel();
            jLabel25 = new javax.swing.JLabel();
            jLabel26 = new javax.swing.JLabel();
            jLabel27 = new javax.swing.JLabel();
            jLabel28 = new javax.swing.JLabel();
            jLabel29 = new javax.swing.JLabel();
            jLabel30 = new javax.swing.JLabel();
            jLabel31 = new javax.swing.JLabel();
            jLabel32 = new javax.swing.JLabel();
            jLabel33 = new javax.swing.JLabel();
            getContentPane().setLayout(null);
            setBackground(new java.awt.Color(255, 255, 204));
            setForeground(new java.awt.Color(204, 204, 204));
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            jLabel1.setText("The CAME framework software measurement process evaluation is used to determine the Level of  measurement in the ITarea. This measurementprocess evaluation is ");
            getContentPane().add(jLabel1);
            jLabel1.setBounds(40, 50, 41, 16);
            jLabel2.setText("performed individually for software coomponents ie SoftwareProduct, SoftwareProcess and SoftwareResource.");
            getContentPane().add(jLabel2);
            jLabel2.setBounds(40, 70, 41, 16);
            jLabel3.setText("Below we describe the steps which will guide through the measurement process evaluation. There are two types of evaluation considerd here, General evaluation");
            getContentPane().add(jLabel3);
            jLabel3.setBounds(40, 100, 913, 16);
            jLabel4.setText("and Evaluation with respect to a standard. The measurement intensions considerd by varoius measurement standards will be used in our tool based method.  ");
            getContentPane().add(jLabel4);
            jLabel4.setBounds(40, 120, 893, 16);
            jLabel5.setText("Information about the measurement standards can be found at     www.iso.org ,    www.ieee.org.");
            getContentPane().add(jLabel5);
            jLabel5.setBounds(40, 140, 542, 16);
            jLabel6.setText("Steps to calculate the MetricsLevel");
            getContentPane().add(jLabel6);
            jLabel6.setBounds(40, 190, 199, 16);
            jLabel8.setText("2 )  The opened frame consists of several  metrics and measures, evaluation level buttons, result textfields and selection choice lists. To calculate");
            getContentPane().add(jLabel8);
            jLabel8.setBounds(70, 240, 41, 16);
            jLabel9.setText("general Metricslevel without any standard, select general from Measurement standard choice list. then select Both from scaleType choice list and finally select metrics ");
            getContentPane().add(jLabel9);
            jLabel9.setBounds(90, 260, 949, 16);
            jLabel10.setText(" and measures from the frame and press MetricsLevel Button. The metricslevel for the selected metrics will be displayed in textfield1.");
            getContentPane().add(jLabel10);
            jLabel10.setBounds(90, 280, 756, 16);
            jLabel11.setText("3 ) To determine MetricsLevel with respect to a standard select a standard from MeasurementStandard choice list, select Both from ScaleType choice list and finally ");
            getContentPane().add(jLabel11);
            jLabel11.setBounds(70, 300, 933, 16);
            jLabel12.setText("select darkened metrics and measures and press MetricsLevel Button. The Metrics Level for the selected Metrics and standard will be diplayed in textfield1.");
            getContentPane().add(jLabel12);
            jLabel12.setBounds(90, 320, 883, 16);
            jLabel13.setText("4 ) Repeat steps 1 2, 3  for ProcessMeasurementEvaluation and ResourceMeasurementEvaluation menu items from the select menu.");
            getContentPane().add(jLabel13);
            jLabel13.setBounds(70, 340, 751, 16);
            jLabel7.setText("1 ) Select ProductMeasurementEvaluation menu item from the select menu,a frame called CAME framework software product measurement evaluation will be opened. ");
            getContentPane().add(jLabel7);
            jLabel7.setBounds(70, 220, 946, 16);
            jLabel14.setText("Steps to calculate MeasurementLevel");
            getContentPane().add(jLabel14);
            jLabel14.setBounds(50, 390, 214, 16);
            jLabel15.setText("1 ) Select ProductMeasurementEvaluation menu item from the select menu,a frame called CAME framework software product measurement evaluation will be opened.");
            getContentPane().add(jLabel15);
            jLabel15.setBounds(80, 420, 943, 16);
            jLabel16.setText("2 ) The opened frame consists of several  metrics and measures, evaluation level buttons, result textfields and selection choice lists. To calculate");
            getContentPane().add(jLabel16);
            jLabel16.setBounds(80, 450, 822, 16);
            jLabel17.setText("general Measurementlevel without any standard, select general from Measurement standard choice list. then select Quantitative measures from scaleType choice list ");
            getContentPane().add(jLabel17);
            jLabel17.setBounds(100, 470, 943, 16);
            jLabel18.setText("and finally select metrics and measures from the frame and press MeasurementLevel Button. The MeasurementLevel for the selected metrics will be displayed in textfield2.");
            getContentPane().add(jLabel18);
            jLabel18.setBounds(100, 490, 973, 20);
            jLabel19.setText("3 ) To determine MeasurementLevel with respect to a standard select a standard from MeasurementStandard choice list, select Quantitative measures from ScaleType choice list");
            getContentPane().add(jLabel19);
            jLabel19.setBounds(80, 510, 1009, 16);
            jLabel20.setText("and finally select darkened metrics and measures and press MeasurementLevel Button. The MeasurementLevel  will be diplayed in textfield2.");
            getContentPane().add(jLabel20);
            jLabel20.setBounds(100, 530, 799, 16);
            jLabel21.setText("4 )Repeat steps 1 2, 3  for ProcessMeasurementEvaluation and ResourceMeasurementEvaluation menu items from the select menu.");
            getContentPane().add(jLabel21);
            jLabel21.setBounds(80, 550, 748, 16);
            jLabel22.setText("Steps to calculate MeasurementProcessLevel");
            getContentPane().add(jLabel22);
            jLabel22.setBounds(50, 600, 262, 16);
            jLabel23.setText("1 ) Select ProductMeasurementEvaluation menu item from the select menu,a frame called CAME framework software product measurement evaluation will be opened.");
            getContentPane().add(jLabel23);
            jLabel23.setBounds(80, 630, 943, 16);
            jLabel24.setText("2 )The opened frame consists of several  metrics and measures, evaluation level buttons, result textfields and selection choice lists. To calculate");
            getContentPane().add(jLabel24);
            jLabel24.setBounds(80, 650, 819, 16);
            jLabel25.setText("general MeasurementProcesslevel without any standard, select general from Measurement standard choice list. then select Quantitative measures from scaleType ");
            getContentPane().add(jLabel25);
            jLabel25.setBounds(100, 670, 930, 16);
            jLabel26.setText("choice list, enter migrated metrics if any in textfield  below migrated metrics label and finally select metrics measures from the frame and press ");
            getContentPane().add(jLabel26);
            jLabel26.setBounds(100, 690, 818, 16);
            jLabel27.setText("MeasurementProcessLevel Button. The MeasurementProcessLevel for the selected metrics will be displayed in textfield3.");
            getContentPane().add(jLabel27);
            jLabel27.setBounds(100, 710, 691, 16);
            jLabel28.setText("3 ) To determine MeasurementProcessLevel with respect to a standard select a standard from MeasurementStandard choice list, select Quantitative measures from ");
            getContentPane().add(jLabel28);
            jLabel28.setBounds(80, 740, 937, 16);
            jLabel29.setText("from ScaleType choice list, enter migrated metrics if any in textfield below migrated metrics and finally select darkened metrics and measures and press  ");
            getContentPane().add(jLabel29);
            jLabel29.setBounds(100, 760, 873, 16);
            jLabel30.setText("MeasurementProcessLevel Button. The MeasurementprocessLevel for the selected metrics will be displayed in textfield3");
            getContentPane().add(jLabel30);
            jLabel30.setBounds(100, 780, 687, 16);
            jLabel31.setText("4 ) Repeat steps 1,2,3 for ProcessMeasurementEvaluation and ResourceMeasurementEvaluation menuitems.");
            getContentPane().add(jLabel31);
            jLabel31.setBounds(80, 800, 618, 16);
            jLabel32.setText("Steps to calculate MeasuredSoftwareProcessLevl");
            getContentPane().add(jLabel32);
            jLabel32.setBounds(60, 830, 285, 16);
            jLabel33.setText("1 ) Follow the same steps as MetricsLevel calcualtion but select metrics and measures covered by CAME Tools only.");
            getContentPane().add(jLabel33);
            jLabel33.setBounds(90, 860, 657, 16);
            java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-1100)/2, (screenSize.height-940)/2, 1100, 940);
        /** Exit the Application */
        private void exitForm(java.awt.event.WindowEvent evt) {
            System.exit(0);
         * @param args the command line arguments
        public static void main(String args[]) {
            new framehelp().show();
        // Variables declaration - do not modify
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel10;
        private javax.swing.JLabel jLabel11;
        private javax.swing.JLabel jLabel12;
        private javax.swing.JLabel jLabel13;
        private javax.swing.JLabel jLabel14;
        private javax.swing.JLabel jLabel15;
        private javax.swing.JLabel jLabel16;
        private javax.swing.JLabel jLabel17;
        private javax.swing.JLabel jLabel18;
        private javax.swing.JLabel jLabel19;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel20;
        private javax.swing.JLabel jLabel21;
        private javax.swing.JLabel jLabel22;
        private javax.swing.JLabel jLabel23;
        private javax.swing.JLabel jLabel24;
        private javax.swing.JLabel jLabel25;
        private javax.swing.JLabel jLabel26;
        private javax.swing.JLabel jLabel27;
        private javax.swing.JLabel jLabel28;
        private javax.swing.JLabel jLabel29;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JLabel jLabel30;
        private javax.swing.JLabel jLabel31;
        private javax.swing.JLabel jLabel32;
        private javax.swing.JLabel jLabel33;
        private javax.swing.JLabel jLabel4;
        private javax.swing.JLabel jLabel5;
        private javax.swing.JLabel jLabel6;
        private javax.swing.JLabel jLabel7;
        private javax.swing.JLabel jLabel8;
        private javax.swing.JLabel jLabel9;
        // End of variables declaration
    }

    1. When you post code, post a minimal example. Did we have to scroll through
    all those bloody labels.
    2. Can't say much for the quality of code NetBeans generates.
    3. To answer your question (sorry, I don't have an autographed copy of the photo):
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class Example {
        public static void main(String[] args) throws MalformedURLException {
            final JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            Container cp = f.getContentPane();
            cp.setBackground(new Color(0xff, 0xff, 0xee));
            cp.add(new JLabel("set the color on the content pane, not the frame"), BorderLayout.SOUTH);
            URL url = new URL("http://today.java.net/jag/bio/JagHeadshot-small.jpg");
            cp.add(new JLabel(new ImageIcon(url)));
            f.pack();
            SwingUtilities.invokeLater(new Runnable(){
                public void run() {
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • How to set background color in af:inputText in an af:table

    Hi,
    how to set background color in af:inputText in an af:table depending on the value of af:inputText.
    For example, how to set background red if the af:inpuText is empty
    Thanks

    Hello Pavo,
    it's also possible to take the code from ebitar and use the expression within styleClass instead of inlineStyle.
    E.g. you can define a custom style "StyleClassEmptyText" in your skin and set this styleclass if af:inputtext is empty.
    By using style classes you can have the same style in the whole application and you are able to change this style on a single point(in the styleclass) for the whole application.
    br
    Peter

  • Any ideas of how to set up a meal list in Numbers?

    Hey.
    I just got Numbers and I love it. This app is great.
    Does anyone have an idea of how to set up a meal list for a family in Numbers? I used to use TextEdit to type the meals in, separated with hard returns. It was one long list. I'd like to use someething a little more robust.
    Any ideas?

    Hi Ashka.
    Thanks, that's giving me some ideas. Sometimes I overcomplicate my thought process, only to streamline it once I've gotten the big picture. Your idea looks very close to what I can use.
    In the meantime, I made two weeks worth of breakfast, lunch, and dinner ideas. That helped me tremendously. I made a grocery list, based loosely off of the menu template, as Johnny mentioned above. It has an ingredient column (that lists all of the things that I would purchase), Have it column (with checkboxes. I'm sure that I'll be able to sort by that, later), Quantity (how many or much I'll need), How sold (pound, box, can, pieces...), Price, Estimate, and Store (you like the check boxes, I LOVE the selection menus! I set the cells in this column to have a list of the stores that I shop from. When I get to a particular item I choose the store from the selection menu. I love it!).
    Thanks for the help!
    -Scott

Maybe you are looking for

  • ADF 11.1.1.2 Partical Triggers not firing

    We are working with JDeveloper 11.1.1.2 using ADF BC with ADF Rich Faces and have found that the <af:commandMenuItem> and <af:commandToolbarButton> do not appear to be firing off the partialTriggers. Both have been replaced with <af:commandButton> an

  • Help on Oracle Support / customer on msg customization Q

    latest discussed on [oracle internal forum|http://myforums.oracle.com/jive3/thread.jspa?messageID=6637259] : - Customer is looking to implement new messages in their Fusion HCM application (Warning type of messages). First they want to know if this i

  • DBCONSOLE START ERROR

    Hi all, When I try to start my em dbconsole, I get the following error: emctl start dbconsole OC4J Configuration issue. /u02/app/db11g/product/11.2.0.1/db_1/oc4j/j2ee/OC4J_DBConsole_suse_orcl not found. db11g@SUSE:/u02/app/db11g/product/11.2.0.1/db_1

  • Adobe After Effects importiert nicht in Adobe Premiere Pro durch Adobe Audition bearbeiteten Sound

    Hallo liebe Community, ich versuche mich mommentan im Bereich der Videotechnik. Dabei habe ich mir ein Template für spätere Videos mit immer wiederkehrendem Intro und Co. erstellt. Das Endprodukt wird in Adobe After Effects erstellt und durch den Ado

  • NI GPIB card and Keithley 181 nanovoltmeter

    I'm trying to control a Keithley 181 nanovoltmeter via a NI GPIB (AT-GPIB/TNT). If I scan for instruments in Measurement and Automation, none of the devices connected are found. However, if I go into Interactive control, use IBDEV with the meter turn