Default background color and Focuslistener disapair on table?

When I imp. TableCellRenderer on my table the default background color and Focuslistener disapair. What can I do to get it back and still keep TableCellRenderer on my table? This is how my TableCellRenderer looks:
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {
        JFormattedTextField beloeb = new JFormattedTextField();
        beloeb.setFormatterFactory(new DefaultFormatterFactory(new NumberFormatter()));
        beloeb.setBorder(null);
        beloeb.setHorizontalAlignment(JTextField.RIGHT);
        if (value != null) {
            if (value instanceof Double) {
                Double val = (Double) value;
                beloeb.setValue(val);
                if (val.doubleValue() < 0) {
                    beloeb.setForeground(Color.RED);
        beloeb.setFont(new Font("Verdana",Font.PLAIN, 11));
        beloeb.setOpaque(true);
        return beloeb;
    }

I'm sorry to say this is a terrible example of a renderer. The point of using a renderer is to reuse the same object over and over. You don't keep creating Objects every time a cell is renderered. In your example your are creating:
a) JFormattedTextField
b) NumberFormatter
c) DefaultFormatterFactory
d) Font.
So you start by extending the DefaultTableCellRenderer. A JLabel is used to display the text. There is no need to use a JFormattedTextField. All you want to do is format the data. So in your constructor for the class you would create a NumberFormatter that can be reused to format your data. Then your code in the renderer would look something like:
if (value instanceof Double)
    Double val = (Double)value;
    setText( formatter.format(val) );
    if (negative)
      setForeground(Color.RED)
    else
        setForeground(table.getForeground());
}Here is a really simple [url http://forum.java.sun.com/thread.jsp?forum=57&thread=419688]example to get you started

Similar Messages

  • Change default background color in Dynamic pages

    Anyone knows how to change the default background color of a
    dynamic content page in WEBDB 2.2?.
    I want to display some information with a query in a Dynamic
    Content Page but the background color is, by default, beige.
    I try to force the the background color placing the html tag
    <td bgcolor=#FFFFFF> but there is still a beige strip at the
    left side of the table.
    Thanks

    Hi Richard,
    For about how to inspect page element, you can use IE Developer Tools:
    https://msdn.microsoft.com/en-us/library/ie/bg182326%28v=vs.85%29?f=255&MSPPError=-2147217396
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Flex 4.5.1 SDK & default-background-color Compiler Argument

    Hey guys,
    I was scanning the available compiler arguments list (http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html) for Flex 4.5 SDK and noticed that the -default-background-color argument is gone (I realize it's been gone since 4 just haven't used the SDK much lately).  My background shows up as black when I run my app (it's an AS3 app with the new Away3D 4.0 Broomstick library) and there is no Flex code in my app so I was depending on this compiler argument to set my background color to white.
    How can I achieve this now that the argument is no longer available?  I just simply want to have a white background without physically having to create a white sprite in the back of my scene.  Is this possible anymore?
    Matt

    Simeon,
    Thanks for that, I had a brainfart and forgot you can have the properties defined in that manner.  I changed it but it still wasn't working which made me realize I had to change the backgroundColor property on the view in Away3D.  I realized this after trying the params for the class and then not adding the view (which had a white bg) and then i looked at the docs and bam, there it was.  Thanks!
    Matt

  • Print outs have thin border when -default-background-color is set

    Hey everyone.  In my application the print out have this very thin border.  The -default-background-color is set to #333333 (dark grey) and this is the problem.  When I set the color to #FFFFFF (white), the thin borders go away.
    When I set the default-backgroun-color to #FFFFFF, my loading screen is white.  I don't want that.
    Does anyone know how I can have my loading screen with a #333333, but not have the thin border lines around my print outs?  Setting the border properties on the printed component doesn't work.  The problem is with the background color.
    Thanks for reading.
    Tom

    Still hacking away at this problem.
    I thought I had the fix until I deployed the AIR application.  Setting the -default-background-color to white worked fine when running from flex builder, but when I installed the application.  The "borders" are still showing.
    Has anyone had any experience with this?  I'm printing Point of Sale receipts and they look like crap with these lines around them.  On top of this, some printers print differently.  The HPs print a border around the whole component. The Brother printers just print the left and right.  One of my customer's printers just prints the bottom and right borders.

  • Default background color issue

    Hi,
    I am trying to change themes at run-time using
    StyleManager.loadStyleDeclarations(). Whenever I switch to a theme,
    the default theme's background color shows up for a fraction of a
    second. I tried using the "StyleEvent.COMPLETE" event handler but
    it doesn't seem to work. Is there a way to remove this? I want the
    transition from my current theme to the next theme to be smooth
    without the default background color appearing. If anybody can
    please provide a solution for this, It would be a great help.
    Thanks,
    Jai

    quote:
    Originally posted by:
    LuigiL
    Project -> Properties -> Flex Compiler -> add the
    default color:
    -default-background-color 0xFFFFFF
    That's not what he's talking about... He's saying if you load
    a CSS file with loadStyleDeclarations(), it will momentarily flash
    the default, green Halo theme before switching to the new style...
    If I load up my white theme (White.swf -- compiled to swf from css)
    and then I want to change to my red theme (Red.swf) like:
    StyleManager.unloadStyleDeclarations("White.swf");
    StyleManager.loadStyleDeclarations("Red.swf");
    At the * point in the execution, it will flash the green Halo
    theme instead of just making a smooth transition from white to
    red... It doesn't look so professional...
    I have the same problem when switching themes, and it's very
    annoying... Guess I'll keep an eye on this thread...

  • Setting a default background color

    Hi All,
    I would like to set a default background color for all the
    components that I'm going to draw. What is the best
    way to achieve this?
    Thanks.
    Syed

    You can set using UIManager of the Look and Feel.
    UIManger.put("Button.background", Color.blue);
    will set the color of all the JButtons to blue. Like that you can change for all the components you need.
    Mohan

  • Flex 4 lacks the default-background-color compiler option?

    Hello,
    started converting my Flex 3 applications to Flex 4 and noticed that Flex 4 lacks the default-background-color compiler option.
    Flex 3 has it: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
    Flex 4 doesn't: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html
    This raises a question: how am I supposed to keep my background from flashing from grey to white when the RIA is loaded? Is it possible to use preloader with background set to whatever color I like to see? Any easier solutions?
    Best regards,
    Jukka

    This works for me:
    @namespace mx "library://ns.adobe.com/flex/mx";
    mx|Application{
         background-color:#ffffff;
    Of course if you have changed the Application element to spark equivalent, you have to change the namespace.
    Regards,
    Jukka

  • Background color and float problems

    Hello all,
    I am having a problem with the background color and the left
    float for a navigation sidebar (also with the background color for
    the footer). The body color is set to gray, and the main page is
    centered with a white background. I set up the pages using mostly
    CSS, with a few tables where they seemed necessary. I set up the
    navigation side bar as a div with a green background and a left
    float. The footer is set up as a div with a green background. All
    text is aligned left.
    When I preview in Safari, everything looks as expected.
    In Firefox and IE5: The background color of the navigation
    sidebar has white showing up behind the type that are not links
    (e.g., mailing address and subheads). The div does not float all
    the way to the left edge of the page. The background color of the
    footer should be green but shows up as white. I validated the code
    in DW, and it reports no problems (at least, it checked out after I
    made a few corrections).
    I am not that concerned about the background color for the
    footer -- it is either all there (in Safari) or not there at all
    (in Firefox and IE). But I would like to see if I can make it show
    up. For the navigation sidebar, would putting it in a table cell
    make it work correctly in Firefox and IE?
    Regarding the left float issue for the nav sidebar IE5: At
    the top of the page, my logo banner (it's placed in a div) shifted
    to the right (in IE only). When I added a left float to the banner,
    the banner lines up fine with the rest of the page, but a white
    margin appears along the left side of the entire page.
    None of my pages are uploaded to a web host yet. This is my
    first website. I am working in DW8 on a Mac.
    Thanks in advance,
    Kathy (Daylilybud)

    Mista,
    Here is my home page based on the template I sent previously.
    Thanks in advance!
    Kathy (Daylilybud)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>Loon Song Gardens: Home Page</title>
    <link href="externalcss/informationcss.css"
    rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    a {
    font-weight: bold;
    -->
    </style></head>
    <body>
    <div id="container">
    <div id="banner"><a name="topofpage"
    id="topofpage"></a><img
    src="graphics/thumbnailsheader/lsgheadergraphic_760x110.jpg" alt=""
    width="760" height="110" />
    <div id="heading"><img
    src="graphics/thumbnailsheader/hotcolorstrip760.jpg" alt=""
    width="760" height="76" /></div>
    <div id="navsidebar">
    <p class="navsidebarnormal">Loon Song Gardens,
    LLC<br />
    10910 109th Ave N<br />
    Champlin MN 55316<br />
    763.422.0015</p>
    <ul class="ulnavsidebar">
    <li class="ulnavsidebarli"><a
    href="../donotuse/indextest4.html">Homepage</a></li>
    <li class="ulnavsidebarli"><a
    href="about_loonsonggardens/aboutus.html">About
    Us</a></li>
    <li class="ulnavsidebarli"><a
    href="about_loonsonggardens/our_daylilies/aboutourintroductions.html">Our
    Introductions</a></li>
    <li class="ulnavsidebarli">Seedlings</li>
    <li class="ulnavsidebarli">Photo Gallery</li>
    <li class="ulnavsidebarli"><a
    href="pricelist2008/pricelist2008ab2.html">2008 Price
    List</a></li>
    <li class="ulnavsidebarli"><a
    href="pricelist2008/lsgorderform2008website.pdf">Order Form
    (PDF)</a></li>
    <li class="ulnavsidebarli"><a
    href="about_loonsonggardens/shippingandterms.html">Shipping and
    Terms</a></li>
    <li class="ulnavsidebarli"><a
    href="about_loonsonggardens/visitus.html">Visit
    Us</a></li>
    <li class="ulnavsidebarli"><a
    href="mailto:[email protected]">Email Us
    </a></li>
    </ul>
    <p> <span class="navsubheadbold">ABOUT
    DAYLILIES</span> </p>
    <ul class="ulnavsidebar">
    <li class="ulnavsidebarli"><a
    href="about_daylilies/howtoplant.html"
    class="ulnavsidebarli">How to Plant</a></li>
    <li class="ulnavsidebarli"><a
    href="about_daylilies/growingtips.html"
    class="ulnavsidebarli">Growing Tips</a></li>
    <li class="ulnavsidebarli"><a
    href="about_daylilies/howtodivideadaylily.html"
    class="ulnavsidebarli">How to Divide</a></li>
    <li class="ulnavsidebarli"><a
    href="about_daylilies/moreaboutdaylilies.html"
    class="ulnavsidebarli">More About Daylilies</a></li>
    </ul>
    <p> <span class="navsubheadbold">OTHER
    LINKS</span> </p>
    <ul class="ulnavsidebar">
    <li class="ulnavsidebarli"><a href="
    http://www.daylilies.org"
    class="ulnavsidebarli">American Hemerocallis <br />
    Society (AHS)</a></li>
    <li class="ulnavsidebarli"><a href="
    http://www.daylilies.org/ENews.html"
    class="ulnavsidebarli">AHS Daylily E-News <br />
    (FREE SUBSCRIPTION) </a></li>
    </ul>
    </div>
    <div id ="content">
    <h1>Welcome to Loon Song Gardens! </h1>
    <ul>
    <li class="contentli">We specialize in northern-hardy
    daylilies (<em>Hemerocallis</em>).</li>
    <li class="contentli">Our daylilies are field
    grown.</li>
    <li class="contentli">We offer competitive
    prices.</li>
    <li class="contentli">Loon Song Gardens, LLC, is a
    licensed and inspected nursery.</li>
    <li class="contentli">We are an American Hemerocallis
    Society Display Garden. </li>
    <li class="contentli">Visitors are welcome by
    appointment.</li>
    </ul>
    <p>Loon Song Gardens is a specialty daylily nursery
    and the home of Mike and Kathy Lamb in Champlin, Minnesota, USDA
    hardiness zone 4. We grow over 1,000 named daylily cultivars in a
    wide range of colors, sizes, and forms, from classics to cutting
    edge. If you are looking for northern-hardy daylilies, check with
    us! We will gladly share our growing experiences with you so you
    may have the best possible success.Kathy hybridizes daylilies and
    has introduced four daylily cultivars to date. For details, see
    <a
    href="about_daylilies/about_loonsonggardens/our_daylilies/ourintroductionsmain.html">Our
    Introductions </a> and <a
    href="about_daylilies/about_loonsonggardens/our_daylilies/seedlingsandfutures.html">Seedl ings.</a></p>
    <h2>Are you new to the world of daylilies? </h2>
    <p>Learn more about daylilies! Use the links in the
    left sidebar to find answers to your questions. Check back for
    updates. If you have questions, send us an email, and we will try
    to help.</p>
    <h2>To place your order</h2>
    <p class="contentp">Use our on-line <a
    href="about_daylilies/pricelist2008/pricelist2008v215ab.htm">2008
    Price List </a> to make your selections. We are a small
    nursery and quantities are limited, so it is best to confirm your
    order via email.</p>
    <p class="contentp">To place your order, print the
    <a
    href="about_daylilies/pricelist2008/lsgorderform2008website.pdf">Order
    Form (PDF)</a>, fill it in, enclose payment by check or money
    order (payable to Loon Song Gardens, LLC), and mail to:</p>
    <blockquote>
    <p class="contentp"> Loon Song Gardens<br />
    10910 109th Ave N <br />
    Champlin MN 55316</p>
    </blockquote>
    <p>We ship at least a double-fan size plant unless
    otherwise noted in our listings, we include a bonus for orders of
    at least $35, and we guarantee that our plants are true to
    name.</p>
    <h2>Visit Loon Song Gardens</h2>
    <p>Loon Song Gardens is an official American
    Hemerocallis Society (AHS) Daylily Display Garden, open by
    appointment. If you will be in the Minneapolis area and would like
    to stop by, please contact us to schedule a time. For details,
    click on <a
    href="about_daylilies/about_loonsonggardens/visitloonsonggardens.html">Visit
    Us</a>. </p>
    <h2>Join the American Hemerocallis Society
    (AHS)</h2>
    <p>The AHS website includes lots of great daylily
    information, so be sure to take a look. </p>
    <p>Join AHS today and take advantage of the voucher
    program! New AHS members receive a voucher good for at least $25.00
    toward daylilies from participating vendors (a minimum purchase may
    apply). To join AHS, go directly to <a href="
    http://www.daylilies.org/AHSmemb.html">AHS
    Membership</a>.</p>
    <p>Kathy is currently on the AHS Board of Directors as
    Chair of Publicity and Media Relations. She produces <em>AHS
    Daylily E-News,</em> an e-newsletter free for AHS members and
    non-members alike. To subscribe, click on <a href="
    http://www.daylilies.org/ENews.html">AHS
    Daylily E-News</a>. </p>
    </div>
    <div id="topofpage"><a href="#topofpage">Top of
    Page</a></div>
    </div>
    <div id="footer"><!-- #BeginLibraryItem
    "/Library/footer1.lbi" -->
    <p class="footer">&copy; 2008 Loon Song Gardens,
    LLC. All rights reserved. | Loon Song Gardens, LLC | 10910 109th
    Avenue North | Champlin MN 55316<br />
    <a href="mailto:[email protected]">Email
    us</a>| | 763.422.0015 | Fax 763.422.0131 | This page was
    last updated
    <!-- #BeginDate format:Am1 -->March 30, 2008<!--
    #EndDate -->
    </p>
    <!-- #EndLibraryItem --></div>
    </div>
    </body>
    </html>

  • I cannot see the background color and borders when exporting

    I created a 10 page document with a background color and borders around the images (I am usiong InDesign 5.5), when I export it to PDF I only see white pages with my images, what am I doing wrong?

    I suspected as much. [Paper] is the absence of ink -- it means don't put anything here and let the paper stock show through and in the PDF it is essentially transparent ( the PDF only shows a white background to keep you from seeing the insides of the monitor -- well not really, but Acrobat doesn't dispaly transparency with grid the way Photshop does). The ability to edit the swatch is a convenience to make it easier for you to visualize what your design will look like on colored stock.
    If you want a colored background you either need to print on colored stock, or you need to print the color in the background by creating a frame and filling it with the color of your choice. I doubt you will be printing on a dark brown, especially since there are areas of white in your design, and the only way you get white is by leaving the paper blank iin those areas, or using an opaque white ink, which is bothexpensive and not very practical in photos, especially over a dark color.

  • Hover over image will change background color and size since IE8

    Hello,
    I have a problem that only occurs in IE8 without compability view.
    I have in CSS set all textlinks to change background color on hover.
    Now my sliced imageslinks also change background color and for a larger background area than the actual image.
    It filles out the area outside the sliced image.
    This hasnt happened before in any other versions of IE and it looks fine in Firefox.
    Please can some one help me !
    I have been searching net for hours.
    I tried to change the background color when hovering imagelinks. Maybe I did something wrong but it didnt help.
    BR,
    Peter

    Noone that can give me a clue?
    I have been trying to figure this out all day

  • What can I use to create a photo banner/collage that is free formed. I'll need background colors and ability to place 5 or more pics in a horizontal row? Does adobe have a product i can use to create this?

    what can I use to create a photo banner/collage that is free formed. I'll need background colors and ability to place 5 or more pics in a horizontal row? Does adobe have a product i can use to create this? I'm not looking for templates when creating.
    thanks
    tracy

    You can select 5 (or more images) and place them by dragging in Adobe InDesign. After creating document go to File > Place, navigate to images and select them. In InDesign start dragging and press right arrow key couple of times then release mouse button. You can export file as PDF, JPG, PNG image from File > Export.

  • Table background colors and images

    This should be easy, but I am not seeing it. I have a few pages with existing tables, probably created in DW CS3. In DW CS4, I need to select a table inside a cell of another table and assign a solid color for the background. Currently, the larger table has a textured background image and it is also filling the background of the table inside it.
    I can easily select the smaller table, but I don't see the old familiar information bar where I'd assign a color to the entire table.
    Any help would be appreciated.
    M. Jackson

    Hi Nancy O,
    I started a long time ago with Adobe Page Mill, then had to move to GoLive, and later into DW.
    The appeal of Page Mill was the GUI, letting a non-programmer make web pages visually, and letting the program write the code for me. Each upgrade have moved farther from that concept in my opinion.
    I just want to add tables and if DW wants to apply CSS to them, then fine. Maybe I will have to learn to do it in CSS, but it is not high on my current list of priorities. I'd prefer to spend most of my learning time in Photoshop. For now, I have quite a few pages that just need some tweaking and I don't have the extra time to dig into this venture.
    Thanks for taking the time to try to counsel me.  A couple of my photographer friends have suggested looking into Site Grinder as a plug-in to Photoshop. As I read the reviews, the artist group think it is the greatest and the code writers say it is not great at writing code.
    For now, I installed DW CS3 and made a few changes I can live with. CSS some other day or some other way.
    Best regards,
    M. Jackson

  • Regarding Design of background color in a Web Dynpro Table

    Hi
    I have a Web Dynpro UI Element Table having two colums and some rows. I wished to set the background color of the rows to white instead of default blue.
    Can anyone help me how to implement this?
    Regards
    Sreekar

    HI
    Shekar,
    Go thorugh the follwing Web Dynpro Java
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/nw04stack09themes.zip
    To know how to use it and for the steps to be followed please follow the tutorial here
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to edit web dynpro themes.pdf
    the last url gives you a step by step procedure with wizards..
    I hope your problem is solved..
    don't forget to reward
    RK

  • How to change background color of row of a table in a panel table

    hi! im trouble right now, somebody help me. i have a matrix of row and column, panel row and panel table in jsp. my problem is how can i change the background color of a row once it clicked. i have row in table which have panel table with panel column and panel row.
    i have already work for it but i only change the background color once i clicked is the first row and first column then the rest row and column is not working..pls.. give me sample code for it..thnx a lot!!!
    Thnank's,
    froilet

    Ok! I have 2 jsp, the input jsp and display.jsp! Once i input value on input.jsp, it will display on display.jsp. I have also my javascript named updateBin.js. Now, how can i update each row once i clicked it... the succeeding rows and columns..hope u help me with this..here is my code:
    Display.jsp
    <html:html locale="true">
    <head>
         <html:base/><meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Strip Map Loader</title><script type="text/javascript" src="js/updateBin.js"></script>
    </head>
         <%      
              int intRow = Integer.parseInt(request.getParameter("intRows"));
              int intColumn = Integer.parseInt(request.getParameter("intColumns"));
              int intPanelRow = Integer.parseInt(request.getParameter("intPanelRows"));
              int intPanelColumn = Integer.parseInt(request.getParameter("intPanelColumns"));
         %>
    <BODY bgcolor="#33b9ec" leftmargin="50%">
         <b>Strip ID:  </b><font color="red" face="arial"><b><bean:write name="strStripID" scope="request" /></b></font>
         <br><br>
         <font size="3" face="tahoma"><b>Bins Updater Tool:</b></font>
         <table border="1" width="365px" bgcolor="#1ea6f7" height="15">
              <tr>
                   <td valign="top" align="center">
                        <table><tr><td><font size="2">Select Bin Type:</font></td>
                        <td><select id="binType" onchange="updateBin()" size="1">
                             <OPTION></OPTION>
                             <OPTION value="green">Good Bin</OPTION>
                             <OPTION value="red">Reject Bin</OPTION>
                        </select></td></tr></table>
                   </td>
    </tr>
    </table>
    <table id="tbl" align="center" border="1" cellspacing="3" cellpadding="5" bgcolor="#CC9900">
    <tr>
    <td>                                                  
         <%for (int pnlrows=1; pnlrows<=intPanelRow; pnlrows++){%>     
              <table id="table" width="100%" border="1" bgcolor="#CC9900" cellspacing="7" cellpadding="0" align="center">
              <tr>
              <%for(int pnlcols=0; pnlcols<intPanelColumn;pnlcols++){%>               
              <td>
                        <%for (int rows=1;rows<=intRow; rows++){%>                    
                        <table cellspacing="5" width="100px" align="center" bgcolor="#CC9900">
                        <tr>
                             <td>                    
                             <%for(int cols=1; cols<intColumn; cols++){%>
                             </td>     
                             <td id="col" bgcolor="#008000" align="center" ondblclick="changeCol()"> X </td>          
                             <%}%>
                             <td id="row" bgcolor="#008000" align="center" ondblclick="changeRow()"> X </td>
                             <td></td>     
                             <%}%>                                                  
                        </tr>
                        </table>
              <%}%>
              </td>
              </tr>
              </table>     
         <%}%>
    </td>
    </tr>
    </table>
    and this is my javascript code:
         function updateBin()
              var binType=document.getElementById("binType")
              if(binType.value == "green")
              [binType.selectedIndex].value
              //binType = changeR();
              //alert('Good Bin Selected');
              if(binType.value == "red")
              [binType.selectedIndex].value
              //binType = changeC();
              //alert('Reject Bin Selected');
              if(binType.value == "")
                   alert('Please select only on the category!')
         function changeRow()
              if(binType.value=="green")
              x=document.getElementById('row').style.background="green";     
              alert('Updated!')     
              if(binType.value=="red")
              x=document.getElementById('row').style.background="red";
              //alert('Reject Bin Updated!')
         function changeCol()
              if(binType.value=="green")
                   x=document.getElementById('col').style.background="green";     
                   alert('Updated!')     
              if(binType.value=="red")
              x=document.getElementById('col').style.background="red";
              //alert('Reject Bin Updated!')
    this code only updates the first row and column..but the succeeding panel row and panel column can't update...what will i do? theres something wrong in my javascript or in my jsp...pls help me......thanx.....in advance!!

  • How to retrieve default background color for JPanels or other containers?

    Hi everybody, I've written a small class extending the default JTextArea, intended to provide the functionality of a small, descriptive item in JPanels.
    import java.awt.*;
    import javax.swing.*;
    public class JInfoTextArea extends JTextArea{
         public JInfoTextArea(String text){
              super(text);
              setEditable(false);
              setFont(Font.decode("SansSerif"));
              setFocusable(false);
              setLineWrap(true);
              setWrapStyleWord(true);
    //          setBackground(contentPane.getBackground());
              setAlignmentX(Component.LEFT_ALIGNMENT);
              setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    }As you can see, there formerly used to be a third parameter, namely contentPane, which contained a reference to the parent Container in order to set the TextArea's background color appropriately for transparency.
    Now, is there ANY way to retrieve the background color without either passing a dedicated parameter or doing something like
    setBackground((new JPanel()).getBackground());Any help is greatly appreciated!
    Yours, Stefanie

    To answer your original question the UIManager contains properties of the various components. In case your interested the following program has a fancy GUI display of all the components:
    http://www.discoverteenergy.com/files/ShowUIDefaults.java

Maybe you are looking for

  • Mini-Display Adapter Not Working?

    Hello, Has anyone had issues with the Apple mini-display to Dual-Link adapter? Any problems getting it connected to the DVI cable (very tight fit) or have a dead on arrival adapter? I have a Mac Pro 6-core. I just received my 27-inch monitor and plug

  • How does one take a PDF document and transfer it to a Word Power Point doc?

    I have signed up for yearly plan with Adobe. And cannot figure out how to take my PDF doc and transfer it to a Power Point doc? Any help would so be appreciated. Thanks!

  • View flash video

    i am trying to play a flash video in dreamweaver, on my website, and it is not working at all. it seems like some of the text glitches once in a while. it works fine though in the editor when i run it. i have also tried to play another video on my we

  • Pictures not showing on PDF file

    I have converted a word file into a PDF file, my original file included some logos and pictures, the pictures came out okay, but the logos are not showing. All you can see is the frame with a small square with an X on one of the corners. Can you assi

  • Help - updatd to 7.3 this morning and getting error

    i got the error that 'cannot run because it has detected a problem with your audio configuration' does anyone know what that means and how I fix. I can't get iTunes to open at all anymore.