How do I add a background image to my JFrame?

How do I add a background image to a table in html?

  • This is what I want to do: An image that's in the background with scrolling text boxes. If that's clear enough, can anyone tell me what kinds of codes I should be using? Thank ...show more

  • Answer:

    Either use your external .css file or do inline .css.. External .css: .classname { background: url("your-image-path.jpg") no-repeat; width: 500px; height: 600px; } Inline .css: <table style="background: url(your-image-path.jpg) no-repeat; width:500px;height:600px;"> Obviously you have to change the image path and with and height pixels but this should work for you.

ZBBQC7BXTPOMXRG5ENJ56UX2HI at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

<table background="File path" > <tr> <td background="File path"> </td> </tr> </table> http://www.w3schools.com/TAGS/att_body_background.asp

RadZad

Invisible Pink Unicorn

<table height="200" width="300" background="http://www.tizag.com/pics/ht... > <tr><td>This table has a background image</td></tr> </table>

wael a

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.