How to make JTable appear disabled??

Hi,
I have searched the forum, and I couldn't find a suitable answer to my problem.
I have a disabled table, but I want to give it that "Disabled Look" that other components have when they are disabled. For instance, I want the column headers to look like disabled JButtons, and I want the JTable itself to look like a disabled JCheckbox.
Thanks in advance!

Try this on the JTable and JTableHeader
public static void setChildrenEnabled(Component comp, boolean enabled)
        comp.setEnabled(enabled);
        if(comp instanceof Container)
            Container container = (Container)comp;
            for(int idx = 0; idx < container.getComponentCount(); idx++)
                setChildrenEnabled(container.getComponent(idx), enabled);
    }

Similar Messages

  • Under bookmarks the Organize bookmark option does not appear, new computer Firefox 4.0, and Windows 7, how to make it appear, thanks

    Under bookmarks the Organize bookmark option does not appear, new computer Firefox 4.0, and Windows 7, how to make it appear, thanks

    "Organize Bookmarks" has been renamed to "Show All Bookmarks" in the bookmarks menu.

  • How to make arrows appear???

    Hey, I was wondering how to make arrows appear so I can point out what people did wrong in their softball swing and arm. Can you help me? Thanks.
    -Channing

    Hi Channing,
    searching the "usual suspects" I found:
    Stupendous - has some "highlighten" effects...
    and
    Geethreeoffers some "painting" (e.g. arrows) onto the video...
    I'm sure, searching at www.virtix.com and www.imovieplugins.com, you'll find more.....
    I don't profit from any recommendation or link, I'm a user, not a salesman.

  • Unable to see Inspection lot stock tab in UD??? how to make it appear?

    Hello Friends
    Some how i am getting three unexpected observation
    1. Inspection lot stock tab in UD is not there.....how to make it appear so that i can do the quantity posting can be done.
    For your information this is against good receipt & QA32 quantity to be posted is showing the qty correctly.....which means stk is in quality
    2. In MMBE transaction i am not able to view batch & qty posting
    3  In MB51 i can see the document details but qty is showing in unrestricted....which means stk in unrestricted which contractdory to my first statement.
    Kindly let me know
    1. How to make Inspection lot stock table available in UD
    2 Any clue for 2 & 3 point if possible.
    Thanks & Regards
    Swanand

    Thanks for reply
    But the problem is not of stock going to quality or not.....anyway i checked it and it's correct.
    Problem is i am not getting Inspection lot stock tab in UD.......here this inspection lot is created due to good receipt (inspeciton type 01)
    My query is not yet answered
    Thanks & Regards
    Swanand

  • I cant find sharing folder under Internet & Wireless,How to make it appear(?)

    I cant find sharing folder under Internet & Wireless,How to make it appear(?)

    Does it still exist here?
    /System/Library/PreferencePanes/SharingPref.prefPane
    You can copy & paste this in Finder > Go > Go To Folder... (Command+Shift+G)

  • Hi! Since I installed Mavericks, all the messages in mail I receive are marked as read, when they're not! Can anyone explain to me how to make them appear as not read, so I notice them? Thank's

    Hi! Since I installed Mavericks, all the messages in mail I receive are marked as read, when they're not! Can anyone explain to me how to make them appear as not read, so I notice them? Thank's

    I don't know if it will work, but try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox

  • How to Make Hair Appear in Front of and Behind an MC Object?

    Hello again,
      I am making a character with lots of hair. I would like to know how to make the hair appear both in front of and behind the Movie Clip object.
      I'll explain further. I have the "frontHair" connected to the "head" MC. When I pivot the head, a bare spot shows in an outlined shape of the arms/legs/torso. I thought I'd remedy this by making "hairBack" and then layer it behind the object. This opens up a can of troubles.
      I can't seem to get the "hairBack" to appear behind the torso and arms. Also, the "frontHair" is now blocking me from grabbing onto the arms and legs.
      It's crucial that this character has all of the hair, but I can't seem to figure out how to make it happen.
      Please, help!
    Thank you,
       Mike
    p.s. While returning from a beer run, I thought about masking. I'm still trying to work out the logic on this one.

    Thank you for replying. II didn't know which specific layers and objects you were referring to, but I figured out the problem I was having.
      I used only one newly created "hair" object and set it to "Guide" to get it out of the way (in a sense). I then selected all the body parts (movie clips) that I could and selected "Move to Front" for each one. I used the Selection Tool to move the head (with connected hair) out of the way. After doing this I was able to select the "torso"; which was previously hidden behind the Armature Layer. I then put the head back in place and I was set to roll.
      Ah, but then I encountered another error. My animations are set to 24fps, but they are moving at least 10 times slower. This happens within Flash and in the exported swf files.
    The topic deals with "text field variable names" errors and compiler errors dealing with "Symbol 'fps' ".
    This is the address to that topic. http://forums.adobe.com/thread/1009225
    Thank you (again),
      Mike

  • How to make tornado appear at a distance in a video.

    I made an energy torndo effect with CC particle world, its on a black solid with the blend mode on screen (two weeks in learning this stuff haha). How can I add it to the video and make it appear as if its right in front of me on the far distance?

    I might also consider using a different method to create the tornado.  If you're looking for realism I'm not sure CC Particle World will do it for you.  Personally I would create this effect practically by building a tornado box, like the ones kids make for elementary school science fares.  Then I would light your tornado in a black room, and film it.  Then take it into After Effects, mask it out, flip it vertically, set the blend mode to screen and composite it using the same suggestions Rick has offered.  There are plenty of links that will show you how to create a tornado box using dry ice.  Here's the first one I found:
    Also this is a very useful tutorial for doing horizon replacement using Mocha AE:

  • How to make some fields disable mode in BAPI?

    Dear sir,
    I want to know in Bapi, In Import parameters of output display screen as we are entering values i want to make some fields disable mode (as in report program, in output screen, suppose 2 entry fields are der so i need only one and another one in disable mode)how to do in BAPI?  please explain with example by taking 2 or 3 predefined tables? and in Bapi how to do ranges programs.. please explain with example? is it posiible in bapi to display the output in ALV_GRID method?
    regards
    patil

    Hi Rachu Patil,
    I think there is no posibility to disable fields in import parameter of bapi but you can select optional check box to make the field as an optional field in import parameter. Like wise you cant set range. If you want to set range than declare two variable for low and high.
    Regards,
    Harish

  • How to make drives appear on desktop on os lion

    How to make drives (and flash drives) appear on desktop on os lion?

    Finder > preferences > General
    select the items to show on the Desktop

  • How to make bookmarks appear in all user accounts w/out importing and exporting everytime.

    Hello, all. I'm imaging a couple of laptops to be sent out. I want the bookmarks on the admin user account to be applied to the network domain user accounts or roaming profile is you will. Is there a way to this without have to import/export?

    I am trying to do the same thing. I also cant get it to work. I am
    thinking it may have something to do with the concept of ScopedResponse, but
    I am not sure. There is very little documentation and more importantly
    examples of how to make sense of the getOuterResponse() method. Dev2Dev and
    Google are of no help.
    Anyone care to explain this to us?
    Michael.
    "Zhenhao Qi" <[email protected]> wrote in message
    news:3fd4f634$[email protected]..
    >
    Hi All,
    I have a jsp page to display a table. I want to add a "excel download"button
    in this page, once user click this button, it will invoke the microsoftexcel
    and all table content will appear in the excel spreadsheet.
    I tried to set the content: <%@ pagecontentType="application/vnd.ms-excel"%>
    the rest code as following. However, it won't work for me. Does anyone hasany
    experience in doing this?
    <%@ page contentType="application/vnd.ms-excel"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    Web Application Page
    </title>
    </head>
    <body>
    <table border="1">
    <tr style="background-color:#3366ff;font-family:arial;">
    <td>Structure</td>
    <td>Compound</td>
    <% // Get the Items from the request stream
    Vector mr_names = (Vector) request.getAttribute("method_result_names");
    for (int f=0;f<mr_names.size();f++) {
    out.println("<td>" + mr_names.get(f) + "</td> ");
    Vector mrs = (Vector)request.getAttribute("method_results");
    for (int g=0; g<mrs.size(); g++)
    out.println("</tr><tr>");
    Vector row1 = (Vector)mrs.get(g);
    for (int f=0;f<mr_names.size()+1;f++) {
    String s = (String)row1.get(f);
    if (f==0) {
    %>
    <td><embed src="structure.jsp?Sample_code=<%=s%>"width="120" height="100"></embed></td>
    >
    <%
    out.println("<td>" + s + "</td> ");
    out.println("</tr>");
    %>
    </table>
    </body>
    </netui:html>
    Thanks!
    Zhenhao

  • How to make textfield appear inside a jtable ????

    hi,
    is there any way that i can make mi textfield show up inside a jtable which i have created ??

    you may have to describe exactly what you are trying to do
    in this thread, you want a textfield for additional values entered
    http://forum.java.sun.com/thread.jspa?threadID=737376&messageID=4234595#4234595
    in this thread, you want the cells uneditable
    http://forum.java.sun.com/thread.jspa?threadID=740286&messageID=4246562#4246562
    and, by the look of the posted code, you want a textfield separate from the table
    here's a simple uneditable table.
    if I click on 'fred', what do you want to happen?
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    class Testing extends JFrame
      public Testing()
        setLocation(400,100);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        String colNames[] = {"Name", "Age"};
        Object[][] data = {{"joe","21"},{"fred","31"},{"mary","22"}};
        DefaultTableModel dtm = new DefaultTableModel(data,colNames);
        JTable table = new JTable(dtm){
          public boolean isCellEditable(int row,int column){
            return false;}};
        JScrollPane sp = new JScrollPane(table);
        sp.setPreferredSize(new Dimension(300,100));
        getContentPane().add(sp);
        pack();
      public static void main (String[] args){new Testing().setVisible(true);}
    }

  • How to make text appear underneath an image on rollover

    Hi guys,
    I woul really like to creat an effect like this site:
    Showcase21
    If you click on past and hover over an image, you get to see text underneath as well as the image in color.
    Any thoughts on how I can make that in Muse?
    Kind regards,
    Lester

    This can be done with the Composition Widget Tooltip Preset. The images would be created with the triggers, the text that appears would be the Target content for each.

  • How to make dock appear in all monitors, and keep new windows to same monit

    I've got an unusual setup: two screens at my desk, and another one in front of a recliner nearby so that it is not physically adjacent to the other two. This means that when the cursor moves off the side of two of the monitors and goes to the third one, I can't see it. I don't want to mirror all the displays because half the time I use the two adjacent ones from the desk, and sometimes I just want to use the one separate one. Can someone tell me if it's possible to
    1) make the same dock appear in all monitors? I want access to the dock no matter which monitor I'm looking at. Is there a utility or hack that will give me a dock in each screen?
    2) any way to have apps open and create new windows in whatever monitor I'm currently working? it's very annoying that sometimes I run a app and it throws up a window in the monitor I'm not looking at. Any way to keep it to the set of two or to the 3rd one, depending on which I'm using at the time?
    thank you!
    Mike

    Hi Mike, Might have a look at the bottom of this page for Dock-It 2.6.1 for Mac OS X 10.5.x and earlier...
    http://www.macupdate.com/info.php/id/8288/dock-it
    As far as the other problems, I'd try Mirroring #1 & #3.
    Move Off-Screen Windows to the Main Screen...
    http://zach.in.tu-clausthal.de/software/
    http://www.macosxhints.com/article.php?story=2007102012424539
    http://www.jonathanlaliberte.com/2007/10/19/move-all-windows-to-your-main-screen /

  • How to make Messages appear on a specific View?

    Hi,
    we are bulding a webdynpro application which uses several views in different components. We are using the IWDMessageManager to display messages. The strange thing is, that the messages do not always appear in the view You would expect. For example if a message is raised in the component-controller of component A, the message might appear in a View of component B, or even does not appear at all.
    I guess that the messages tend to show up in a view which has been loaded first, but I can not reproduce this clearly.
    How may I control on which view a message appears?
    Thanks in advance and regards
    Jan Hempel

    Hi,
    The messages are always displayed in the Message Area that is loaded first in a perspective(Combination of DC's views). This is an extract from Message Area documentation.
    <-----
    If there are several suitable instances, the oldest one (with respect to creation time) is used. Note that it's the application developer's responsibility not to place a MessageArea in a view in such a way that MessageArea is not permanently visible, except if the visibility (or enabled) property of the MessageArea is set accordingly. Also beware that the tooltip property might have no effect.
    >
    Check this link too !
    Re: Error getting messeges in Webdynpro
    Regards
    Bharathwaj

Maybe you are looking for