How to put image to JXTreeTable?

I am using JXTreeTable which is component of SwingX project.
My TreeTable allows drag & drop for file object.
I'd like put an image('Drag here~~') to inform the function -Drag &
Drop.
I tried it, but I couldn't.
How to implement it?

I am using JXTreeTable which is component of SwingX project.this is a swing forum, not swingX.
now, if you get to swingXXX, post back with links (gotta love them XXX sites)

Similar Messages

  • How to put images on buttons?

    I am currently working a project and need to mount an image onto a button, so when the image is clicked on it makes the button event work?

    set icons? , do i have to have the image in the same
    folder as where the code is saved? I have not been
    able to find any code showing how to apply images
    onto buttons on a GUI.Did you atleast read reply 2 and 4?Have you ever read the JButton API?There's no necessity that the image has to be in the same folder.You use have to specify the absolute path of the image when you create an instance representing it.

  • How to put images on graph?

    Hello,
    I want to put images on graph whereever I want.
    I have TDMS file like this.
    My "x Axis" is (km) and "y axis" is MKTY.  If MKTY is 3 I want to put image3 on graph places in the y-axis. If MKTY is 2 then I put "image2" on graph.
    I uploaded my TDR file.
    Yasemin Barutçu
    Electrical And Electronics Engineer
    Attachments:
    graph.zip ‏5 KB

    For me, not. But yes I have to do this. Maybe I manual have a table which includes the y axis coordinates. X axis is dicrete then when I get the value 2 I will look at its y axis and take the coordinates of the y-axis corresponds to the table
    Is it difficult? 
    Yasemin Barutçu
    Electrical And Electronics Engineer

  • Please tell me how to put Image on MDI window

    Brothers i am new in swings please help me in this matter that i want to put image an image on JdesktopPane in swings please give me some code or guide me in this matter. thanks in advance.

    public class MDIDesktopPane extends JDesktopPane {
    private ImageIcon DesktopImage;
    public MDIDesktopPane() {
    DesktopImage=new ImageIcon(new java.net.URL("http://80.96.36.11:8080/hq/RBMS.jpg"));
    public void paint(java.awt.Graphics g)
    Rectangle r = g.getClipBounds();
    Color c = getBackground();
    if(c == null)
    c = Color.black;
    g.setColor(c);
    g.fillRect(r.x, r.y, r.width, r.height);
    g.drawImage(DesktopImage.getImage(),this.getWidth()/2-DesktopImage.getIconWidth()/2,this.getHeight()/2-DesktopImage.getIconHeight()/2,c,null);
    super.paint(g);

  • How to put Images at runtime in Adobe form.

    Hi All,
    I have a simple query but got confused finding a note related to this, so need your suggestion to address this issue.
    We developed several Adobe Non interactive forms using ADLC 8.2.3 in CRM 7.0 ADS 7.0 Adobe reader 10.X.
    The forms have multiple master pages with embedded images, the form increases to multiple pages based on the data.
    The form is not heavy but to increase performance we thought of putting the images in MIME repository and fetch them at runtime.
    while searching for this we found SAP Note: 0001249492 which says due to improved security features dynamic images are not supported from Adobe Reader 8.1 on wards and the images are to be embeded at design time.
    This note is published in 2009 Can somebody confim me if this is still applicable and we sud go with design time images only.
    If we can still use runtime images please give me some steps or document how to acheive this.
    Thanks in Advice for your help,
    Regards,
    Sai Krishna.

    They'll help you over here.
    Microsoft C# ASP.Net forum
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How to put image in table selection column in advanced table

    i need to put some image(not a picture, its just a traingalur shape image with different colour which indicates some messages to the user if suppose user adds a data which is duplicate with other row or he may copy existing row and dont change it.) can any one give me an idea of how to achieve this

    Are you looking for image in selection column or as a separate column?
    --Shiv                                                                                                                                                                               

  • How to put image files on fs directory instead of in DB?

    Hi,
    Currently I have logo image file (ie: logo.jpg) in DB. But I want to put it in file system directory for performance reason. So I
    1) put logo.jpg file in BOTH $ORALCE_HOME/apex/images AND $ORACLE_HOME/apex3.2/Apex3.2Download/apex/images (since I did an upgrade to 3.2 and unsure which ApEx location it's exactly).
    2) changed Shared Components -> Application Definition -> Logo -> FROM #WORKSPACE_IMAGES#logo.jpg TO /i/logo.jpg
    And yes, /i/ is defined as an image prefix.
    However, the logo does NOT show up.
    Any idea?
    Thanks much,
    Helen

    First, how are you accessing APEX? Via Embedded Gateway or HTTP Server?
    When put the logo file into the "images" directory, did you do this on the Database Server, or Application Server?
    - If Embedded Gateway, the only way that files are served is through the APEX interface, unless you explicitly path them from a different web server (same host is fine, but different port obviously). It's via Embedded Gateway in 11g db. Currently the image is loaded into database, but I want to change to filesystem.
    So I
    1) put logo.jpg file in BOTH $ORALCE_HOME/apex/images AND $ORACLE_HOME/apex3.2/Apex3.2Download/apex/images (since I did an upgrade to 3.2 and unsure which ApEx location it's exactly).
    2) changed Shared Components -> Application Definition -> Logo -> FROM #WORKSPACE_IMAGES#logo.jpg TO /i/logo.jpg
    And yes, /i/ is defined as an image prefix.
    However, the logo does NOT show up.
    Any suggestions/ideas?
    Thanks,
    Helen

  • How to put image in tooltip?

    I know that to create a tooltip I would put the following code into the HTML Form Element Attributes property of a page item.
    onmouseover="toolTip_enable(event,this,'my tooltip text');"
    But, how do I get an image in the tooltip?
    Thanks,
    Maggie

    Hi,
    What is your Apex version?
    Regards,
    Jari

  • How to put images on JPanel one at a time?

    Hi, guys. I am trying to put 7 images to a panel one by one,each takes one second so that users can see the process each images being shown on the panel.
    But the fact is the system freeze for 7 seconds and then display them all once. Altho the "one image has been dealt" showsin the console every one second.
    Thank you
    Here is the code :
    for (int i=0;i<7 ;i++ )
                   try
                   thisTile[i] = new tiles(BBV.string,"BlackBack",100,100);
                   thisTile.setBounds(x1,y1,27,49);               
                   JP1.add(thisTile[i]);                              
                   y1=y1+54;
                   System.out.println("one image has been dealt");
                   Thread.sleep(1000);
                   catch (InterruptedException e)
                        System.out.println("this should not be printed");

    for example, I want to print "all 7 images has been dealt" after the images have been put on the JPanel, by using swing timer it prints the "all 7 images has been dealt" during/before the images being put. Here is the code example(thisTile is a array of 7 images):
    public void showImages()
    t = new javax.swing.Timer(1000, new ActionListener() {
    public void actionPerformed(ActionEvent e) {
                   thisTile[j] = new tiles(BBV.string,"BlackBack",100,100);
                   thisTile[j].setBounds(x1,y1,27,49);               
                   JP1.add(thisTile[j]);
                   JP1.validate();
                   JP1.repaint();
                   y1=y1+54;
                   j++;
                   if (j==7)
                        t.stop();
              //AI1 gets his tiles
              for (int i=0;i<7 ;i++ )
                   t.start();               
              System.out.println("all images has been dealt");
              }

  • How to put image file on client machine through JBOSS

    I need to imlement the functionality like google map on website, where my server is JBOSS
    server. We used the newest technology SVG(scalable vector graphics) which doesn't loose the
    image quaility on increasing the size of the image.
    we are doing backend processing of the image and throwing the png images on the client.
    machine. I already written a program which can be used at the time of zooming and panning
    of the image and can throw the image but that is all PC based. but when I am implementing
    on the server it is giving error because code is not getting any output directory to save
    the image on sever.
    Please tell me if that can be happen through caching or how can I save image on
    client machine without user authenication and can retrieve on the web page. so that my
    server doesn't have extra load.

    hi jagdish,
    Check this thread. discussed uploading file step by step
    Re: How to upload and search a document in KM
    Regards,
    Ganesh N

  • How to put image into pdf file in which image is set it in particuler frame size

    hi, i m creating app for generate pdf in which i can set image into pdf but the image sizze is large so the image is display over the text and how can i set text into pdf and also how to set textfilelds data into pdf or tableview data into pdf.help me plz

    Are you looking for image in selection column or as a separate column?
    --Shiv                                                                                                                                                                               

  • How to put image behind text on new pages?

    Hey I usually drag photos into my pages doc and then write text over them by selecting "place object in background" or whatever it was. I do that to make flyers and tourbooks. On the new pages it is not clear to me how to do this.

    Due the rewrite of Pages v5, about 100 features and functionality are missing from the prior release of Pages, the original that now resides in your /Applications/iWork '09 folder. My recommendation is to use the older, but more functional Pages ’09 v4.3.
    If you want text to flow over a background image in Pages v5, do the following:
    Under the Format panel Arrange tab, set Text Wrap to None.
    Drop your image in your document and position it where you want. Even opaquely over existing text.
    Menu > Arrange > Section Masters
    Select Move Object to Section Master
    Make Master Objects Selectable
    Immediately, your image is now in the background with yellow grips, and any existing text is above it. At any time, you can move or resize that image behind the text.
    Still suggest you retreat to the older Pages though.

  • How to put image in Frame?

    How do I paint images (gif/jpg) in Frames?
    getCodeBase(), "... command doesn't work in Frame
    the getToolkit stuff to get images compiles, but my image doesn't show up. What can I do now?
    This is a part of a larger class.
    class Win extends Frame{
    Image helpD = Toolkit.getDefaultToolkit().getImage("icon.gif");
         Image img;
         Graphics helpG;
    Win(String name)
    setSize(455,455);
    setTitle("Instructions:");
    setResizable(false);
    addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent evt)
    dispose();}
    public void update(Graphics g) {
         paint(g);
    public void paint(Graphics g){
              img=createImage(455,455);
              helpG=img.getGraphics();
    helpG.drawImage(helpD,0,0,this);
    g.drawImage(img,0,0,this);
    Does the getTookit stuff has some image restrictions?
    Thanks,
    Gant

    Is this what you're after? JFrame jf = new
    JFrame("Title");
    jf.add(new JLabel(new ImageIcon(img)));
    No, that's addin a ImageIcon. I want to place a gif/jpg background image in the window frame.

  • How to put image

    hello guyz,,,i just want to ask if it's possible to put "my picture" in my code..at the JOptionPane??
    ex:
    if i run my program,,the first that will appear is my picture before i start to input anything in the JOptionPane..
    is it possible???
    i hope you can help me guyz,,
    thanks ahead...

    [earlier post|http://forums.sun.com/thread.jspa?threadID=5282956&messageID=10190167]
    AC

  • How to change a background to an image? and how to put a 'clear' button.

    Hi guys, im new here & i really newbie in java. Recently i found code for java applet that can draw a line. I want put image as a background and draw some lines over the image and provide a button to clear the lines. Is there any one can help me to solve my problem. Here is the code :
    import java.awt.*;
    import java.applet.*;
    public class DrawLines extends Applet {
        //Variables
        Point Start[] = new Point[20];   //X,Y info of start of lines
        Point End[] = new Point[20];     //X,Y info of end of lines
        Point current_start;
        Point current_point;
        int numlines= 0;
        Point boundary;   //to represent the boundary of the applet
        //Set background to yellow, register listeners
        // get boundary of applet
        public void init() {
          setBackground(Color.white);
          current_point = null;
          boundary = new Point(this.size().width,this.size().height);
        //Mouse Clicked Down...save in current_start
        public boolean mouseDown(Event e, int x, int y) {
           if(numlines < 20) {
              current_start = new Point(x,y);
              return true; }
           else
             { System.out.println("Can Not Take Any More Input Lines");
               return false; }
        //Mouse Drag....reset current_point to current position
        public boolean mouseDrag(Event e, int x, int y) {
            if(numlines <20) {
              current_point = new Point(x, y);
              repaint();  //will draw this current line
              return true;
            else
              return false;
        //Mouse Up ...save created line if can and call repaint
        //  to draw it.  Make sure the end point is inside the applet
        public boolean mouseUp(Event e, int x, int y) {
           if( (numlines < 20) && (x < boundary.x) &&
               (y < boundary.y) )
             {  Start[numlines] = current_start;
                End[numlines] = new Point(x, y);
                numlines++;
                //Reset current points to empty
                current_point = null;
                current_start = null;
                //repaint will draw all lines including this one
                // just created.
                repaint();
                return true;
           else
             return false;
        //Draw all of the lines stored in Start[], End[].
        //Draw the current line from current_start to current_point
        public void paint(Graphics g) {
             //set drawing color
             g.setColor(Color.red);
             //Draw stored lines
             for (int i=0; i<numlines; i++) {
                g.drawLine(Start.x, Start[i].y,
    End[i].x, End[i].y);
    //Draw current line if one exists
    g.setColor(Color.blue);
    if (current_point != null)
    g.drawLine(current_start.x, current_start.y,
    current_point.x, current_point.y);
    //Set numlines back to zero
    public void start() {
    numlines=0;
    //In case mouse exits the applet region...reset current points
    public boolean mouseExit(Event e, int x, int y) {
    current_point = null;
    return true; }
    and this is code in HTML
    <HTML>
    <HEAD>
    </HEAD>
    <BODY BGCOLOR="Grey">
    <CENTER>
    <APPLET
         code     = "DrawLines.class"
         width     = "500"
         height     = "500"
         >
    </APPLET>
    </CENTER>
    </BODY>
    </HTML>
    Thanks & appreciate for the help.

    Hey thanks, but i find another way by looking other ppl code for image back ground. And its working! but i still dont know how to create the button (im so very noob in java sigh)
    The link u gave to me is very good but its hard for very newbie like me to understand. I just change the code like this :
    Using offscreen image
    Image off, back;      //to represent background image
         Graphics offG;          //to represent offscreen image                          
        public void init() {
         off = createImage(getSize().width, getSize().height);      // create your offscreeen image
         offG = off.getGraphics();
         back = getImage(getDocumentBase(),"images/Area.jpg");     // load your background image
        current_point = null;
        boundary = new Point(this.size().width,this.size().height);
    // Draw all of the lines stored in Start[], End[].
        // Draw the current line from current_start to current_point
        public void paint(Graphics g) {
              offG.drawImage(back, 0, 0, this);      // draw everything to your off screen first
              g.drawImage(off, 0,0, this);          // copy your off screen to on screen now
            g.setColor(Color.red);                    // set drawing color
            //Draw stored lines
            for (int i=0; i<numlines; i++) {
                g.drawLine(Start.x, Start[i].y,
    End[i].x, End[i].y);
    //Draw current line if one exists
    g.setColor(Color.blue);
         if (current_point != null)
    g.drawLine(current_start.x, current_start.y,
    current_point.x, current_point.y);
    Now my problem is the 'clear' button, i really dun know how to make button which is can clear the lines. Any one have idea?

Maybe you are looking for

  • Sending PDF by mail but PDF is not opening because of PDF Size.

    Hi all, I am sending a sapscript in PDF format through Email. Sapcript is going fine in PDF file for a test case in which file size is small but for PDF files where file size is Big in the mail while opening the file PDF is giving an Error message  t

  • All SCOM 2012 R2 dashboards are blank on Windows 7 for any user

    All SCOM dashboards are showing up completely blank on several (but not all) Windows 7 machines and a 2008 R2 server (with RDS)...for any type of user. It's not a permissions issue as the same user can RDP to the SCOM Mgt server and view the dashboar

  • Disk Utility Reports Permissions Repaired, but Don't Verify

    I run permissions repair (as I've been having kernel panics), and there is a bunch of stuff that gets reported as fixed. However, as soon as the repair is complete, if I run Verify Disk Permissions, it reports back the same errors. See the log below:

  • RC4 and JavaTM 2 SDK, Standard Edition , v1.4

    Hello, I am new to Java Cryptography and wanted to find out if the new JavaTM 2 SDK, Standard Edition , v1.4 includes the 128 bit RC4 algorithm or do we need to download the RSA Security, Inc. JCE 1.2.1 compliant provider? Need information fast! Than

  • Idoc - Account Group

    Hi All, I want to bring replicate customer master from one sap system to another. In one system, the account group is DEBI and in the other the account group should be ZABC. I have entered in settings in BD79 where account group was set to constant Z