Help! i Cannot put image on a JToolbar in my java application

hi! i am new in developing java application via mac osx Xcode. i cannot put image in my JToolbar..please help me how to put icon in my JToolbar in Xcode.thanks..

add a button to toolbar and use the setIcon property of the JButton.
jButton1.setIcon(new javax.swing.ImageIcon(.............

Similar Messages

  • Help-how can i connect to the XE through my java application?

    Hi, i am trying to connect to the XE through my java application. I have downloaded the jdbc driver tho. but the error occured: cant find the symbol (class oracledatasource not found) . could anyone here tell me what else should i try to fix it? where should i put the jdbc packages ? anyone's prompt reply would be much appreciated! thanks a lot.

    Hi ,thank you very much for your guide.
    i am actually trying to connect to the XE server through my JSP files.
    i download the Oracle jdbc driver packages and put them in the same folder with JSP files. but i did not set the class path tho.
    do i have to set the enviroment variables for the classpath of Oracledatasource class? thanks a lot.
    another problem i got is installing the JDeveloper, it seemed my computer just got stuck there when installing JDeveloper. my laptop is with 256MB memory tho.
    the code i used to connect to the XE server in my jsp file is as below:
    <%@ page language="java" contentType="text/html"%>
    <%@ page import="java.sql.*" %>
    <%@ page import java.sql.Connection%>;
    <%@page import java.sql.SQLException%>;
    <%@page import oracle.jdbc.pool.OracleDataSource%>;
    <%@ page import="java.io.*" %>
    <% String jdbcUrl = "jdbc:oracle:thin:@localhost";
    Connection conn;
    OracleDataSource ds;
    ds = new OracleDataSource();
    ds.setURL(jdbcUrl);
    conn = ds.getConnection(jdbcUrl);
    %>
    dose it have some problems there?
    thanks a lot.
    Message was edited by:
    Novice

  • Pl help ! ! Opening a servlet URL using stand aline java application

    Hi Guys, I have a standalone java application. This application will get executed after some by some thread. What I want to do is when this java application is executed, automatically open a URL in internet explorer which is of my servler/jsp and pass the parameters to this servlet/jsp. This servler jsp will intern use EJB and other services to get the data and display it.
    How should I automatically open a IE window and pass parameters using this standalone application.
    Pl help ! ! !
    thanks , Ava

    do you want to open internet explorer, or just access the servlet without internet explorer?
    if you want to use internet explorer, you'd want to use
    Runtime.exec,
    if you want to access the Servlet w/o ie, you would use
    URL, and HttpURLConnection classes

  • Images not getting Loaded while running Java Application through jar file

    Hello Friends,
    I have a problem while starting my application.I have written my application using pure java.There is no JSP or anything just pure swings.Mine is a standalone appplication.So i used to run it using a batch file.And when i used to start my application it used to not show me the images.so what i did was i mentioned the starting directory in the properties of the batch file (ie in the start in column field).But that was when i was using weblogic server.And i have lot of people working on the same application.so i used ZAC publisher in weblogic and along with that i used to publish the batch file also.so the users dint have any problem.But now what is my problem is i m trying to use JAVA Webstart instead of weblogic ZAC.Now in webstart what happens is that i have to run the appliaction thru jar file.so where do i mention the class path so that the images get loaded.As of now the imaes are not getting loaded.i feel this is a class path problem.but where do i mention it that is my problem.It would be really helpfule if someone could help me out.
    thanx and regards,
    [email protected]

    try out this
    ImageIcon img1=new ImageIcon(this.getClass().getResource(imagename));
    for exmaple
    Imageicon img1=new ImageIcon(this.getClass().getResource("name1.jpg"));
    dont 4get to include the image files in the jar file

  • Cant put image on top of another image

    Hi,
    I'm using keynote 09 with the 'Blueprint' theme. I'm attempting to edit the master slides by putting a company logo in the corner of each slide. This works fine on slides without images, but on slides with images, keynote will not let me put my logo over the image placeholder. The placeholder image always blocks my logo, even when I choose 'Send backward' on the place holder.
    Is there a way around this?
    thanks

    Sorry, I was typing fast.
    The problem is that you cannot put images above media placeholders on master slides. One suggestion was to make my image (my logo comprised mostly of white text) a media placeholder as well, therefore I could edit the master slide and layer my new media placeholder (logo) above the default-already-existing placeholder (some architectural image in the blueprint theme).
    This works but has an additional problem.
    Since my logo is white text, I wanted for it to stand out from the picture beneath it. As I sometimes do, I thought I should place my white-text-logo on top of a small black rounded rectangle with transparency (like a cartouche).
    I like to do that because it makes my logo legible, while still showing the picture through the transparency. INdeed, this is easy to do if you are only dealing with pictures and shapes (and not the magical placeholder versions of them)
    You can make the shape a text placeholder, and you can make the image (logo) a media placeholder, but you can't group the two together as a unit. And if you group them first, then you cannot make your group (shape+image-logo) a placeholder at all, so you then cannot layer it on top of the default image place holders.
    I was saying that I'd have to open my logo in photoshop and put it on top of a 'cartouche' and then import that modified image, and THEN make it a media placeholder.
    But obviously it would be easier if keynote just let us properly layer elements as you would expect it to work.
    I mean, setting images aside, why can't I create a shape and put it in front of a media placeholder without making the shape a text placeholder?
    Of course I can edit my logo and add dropshadow or glow to make it stand out, but even then, I would need to make it a placeholder before keynote would let me layer on top of another placeholder. And if I'm going through the trouble of using photoshop to add shadows or glows, I might as well just put the image on top of a cartouche as originally desired.

  • I updated my ipod on my computer to the ios 5 and it updated but all of the music, movies, and apps were cleared off. I cannot put any of it back on please help! :(

    I updated my ipod on my computer to the ios 5.1.1 and it updated but all of the music, movies, and apps were cleared off. I cannot put any of it back on please help!

    Go to iTunea>Preferences>Devices and see if there is a backupright at the time you did the update. Then try restoring from that backup. If the apps are in your iTunes library, any app data will be restored to the iPod.
    When restoring from an iOS 4 (or later) backup, if the device had a passcode set, iTunes will ask if you want to set a passcode (and remind you that you had protected your device with a passcode). iTunes will not ask you to set a passcode when restoring from iOS 3.x and prior backups.
    Therefore, remembe the passcode that you enter this time.
    It appears that if you restore from a backup, that backup is not subseqyently overwritten by the next backup.

  • HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    You must remember the code, if you can't then take the phone and proof of purchase to an Apple Store.

  • My touch screen is not responding, I have reset the phone, plugged into different charger and tried to update it to itunes but they will not connect because I cannot put my passcode in, HELP please!

    My touch screen is not responding, I have reset the phone, plugged into different charger and tried to update it to itunes but they will not connect because I cannot put my passcode in, HELP please!

    ME TOO.  NOW MY IPHONE 6 PLUS IS SAME LIKE YOU.
    iphone is diabled- connect to iTunes because i forget passcode.
    i cannot connect iTunes because it's always asking to enter passcode on iphone.
    So, i cannot make restore my iphone 6+. And then, I cann't erase "device" in icloud.
    My iphone is new. No icloud. didn't connect to itune backage.
    That's why I try to connect iTunes but it need to enter passcode.
    So, my iphone just keep "iphone is disbled-connect to iTunes".
    IPHONE 6 PLUS

  • When I  put apps from my PC to my iPhone it copies it but it doesn't install in my phone??? I just my iPhone 5s so when i put images from my laptop I cant delete them so can you help me??

    When I  put apps from my PC to my iPhone it copies it but it doesn't install in my phone??? I just my iPhone 5s so when i put images from my laptop I cant delete them so can you help me??

    You might not have enough space on your phone. 
    Look on iTunes and see how much space the photos you copied over is consuming.

  • HT201406 My iPod touch screen is so in larger I cannot put in my password to open the iPod can anybody help please

    MY iPod touch screen is so large I cannot put my password in to open my iPod can envy body help please

    Is  the "Zoom" feature activated?
    Turn on accessibility features using iTunes: Connect iPod touch to your computer and select iPod touch in the iTunes device list. Click Summary, then click Configure Universal Access at the bottom of the Summary screen.
    or try to double-tap the screen with three fingers to zoom out.

  • Cannot put files please help!

    I have just switched to DW8 and changed computers to a Mac
    Pro. I've rebuilt the site I created on DWMX and now I am getting
    error messages when putting images (jpeg from photoshop) and flash
    texts created in DW8.
    This is the specific message for the image:
    error occurred - An FTP error occurred - cannot put
    inspire.html. Access Denied. The file may not exist, or there could
    be a permission problem.
    I didn't save the flash text error message.
    Suggestions?
    Thanks

    I found my answer...I had exceeded my space limits on my
    server.
    Deleted old bits and the images upload fine.
    No need for replies, but thanks anyway!

  • Ok I got my iPod from my brothers friend and my IPod says "iPod is disabled connect to iTunes" then my computer says cannot get onto iPod because I need the iPod passcode and of course I cannot put it in so I need some help please

    Ok i got my iPod from my brothers friend and my IPod says "iPod is disabled connect to iTunes" then my computer says cannot get onto iPod because I need the iPod passcode and of course I cannot put it in so I need some help please

    Try placing in DFU mode and then restoreing.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • Im having a problem opening my itunes i cannot put music on to my ipod touch and its really frustrating ans i want this to be fixed as soon as possible, someone help me please

    im having a problem opening my itunes i cannot put music on to my ipod touch its getting really frustrating and it will mean heaps if someone will help me please and thank you

    every time i click to open itunes it will come up with the license agreement and for eme to confirm, decline or save i have click all of these and every time i tunes does not appear 

  • I cannot open images in my email since the Firefox update. Help!

    I cannot open images in my email or view the embedded photo in a new tab since the Firefox Update. "IE" will let me open them, but not Firefox... How can I fix this?

    Hi Pat..When I tried to run Fix It the computer pops up a screen that says this trouble shooter does not apply to this computer .The article refers to Internet Explorer 10 and Im running Internet Explorer 11. I did try to see it it would fix my problem but the registry entry does not exist on my computer (HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\TabProcGrowth) I can get as far as HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer but I dont have the option to choose Main. I only have the option to choose New Window which does not open up when clicked. Internet Explorer also has no value. Is there anything else I should try?

  • Help! Please!  I cannot view images on any website or button as in submit, delete, previous, next...

    I cannot view images on any website, or buttons only text.  I can view youtube videos but none of the video thumbnails on the sidebar.  I have never had this problem and have searched the forums for an answer. 

    Hi F. Carl
    The clip is intact and it has video and audio.
    I have worked on it before and all was fine until I lost the work when it got frozen!
    The issue is:
    I have a (MOV.) ready clip that I wanted to edit a bit, hence I have imported the clip (import media) and whenever I try to work on it, the black screen prohibits me from doing anything.
    Any ideas please ... It's really strange !

Maybe you are looking for