Which Swing component could load a picture just like picturebox in VB?

Dear all:
I need show a picture on the wihdow I programmed with Swing,yet I did not know which component can load a picture just like picturebox in Visual Basic.If you knew about,please tell me.Thanks.
Kindly regards!

The "bold" tags are used to highlight important words or phrases in your question, not the entire question.
I don't know what a "picture box" is so I'll just point you to the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html#popup]A Visual Index to Swing Components. Many components support images.

Similar Messages

  • An app which plays music from the resume point just like videos for iphone 4

    Hi,
               I am using iPhone 4. I would like to get an app which plays music from the resume point just like what we are having for videos.
    Thank you very much in advance!!!

    Thanks for all of your responses
    I've been researching and trying different things and have yet to come up with a viable solution. I prefer to go the free route when I purchase my media streaming software, however, I don't mind paying to have something once I feel it works. I would also like to mention, I want a media server which streams media(music/video) to all of my devices(xbox360, Wii, PS3, Iphone).
    Here is my current configuration:
    Imac 20"( 2 GH intel core 2 duo, 4 gb memory, running ps3 Media Server)
    Apple Extreme Router
    Sony Vaio Laptop(winamp remote)
    My media has been produced by using my Imac with handbrake software(video) and Itunes for music.
    I have tried PS3 media server and it seems to work wirelessly with my xbox360 just fine, however, the PS3, Wii and Iphone are a different matter. I get errors on ps3("this video content cannot be played "(8002288d8). The Wii and iphone wont recognize PS3 Media Server.
    My windows PC(Sony Vaio-Windows 7) has software I've downloaded called WINAMP Remote which seems to do all I want except, my xbox, Wii, PS3 all work but the video quality stinks(digitized flickering, poor quality overall). The iphone app(Orb-Free) video has a great picture but stutters frequently and stops. Audio over 3g stutters(meaning I have to hit play very frequently cause it stops) also.
    All this being said, I still am searching for a media server which can stream seemlessly to any of my devices. Any input would be greatly appreciated.

  • Firefox loads a picture just before as a new page is requested. how do i stop this

    Just as I load a page a picture will quickly appear and disappear. dont know where it comes from but on page load there is a pause and if present picture will appear and disappear in a small instance before requested page loads.

    this does not happen every load so it is difficult to tell what is effective. I have Java toolkit but is deactivated. After requesting a new page there is a pause state, also obvious when photo not present, but when photograph is presented it is displayed. Believe that the connection is hacked and this is how photographs become available 2-3 times a night photographs of a local nature so two issues for me. 1. trace the hack. 2. Stop photographs displaying. would also like to capture photographs but this has evaded me so far. Would appreciate guidance on what mechanisms are being deployed.

  • Swing component prohibits loading web applet?

    Hi all,
    I imported a JFilechooser using this java class:
    import javax.swing.JFileChooser;
    public class FXfilechooser {
    public static JFileChooser create() {
    JFileChooser fc = new JFileChooser();
    return fc;
    } {color:#ff6600}FXfilechooser.java{color}
    and then I use it in the .fx file using the SwingComponent.wrap() metho like this:
    import javafx.scene.*;
    import javafx.stage.*;
    import javafx.ext.swing.*;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.control.Button;
    var fc =FXfilechooser.create();
    var fcComp=SwingComponent.wrap(fc);
    Stage {
    title: "File Chooser Sample"
    width:800
    height:600
    scene: Scene {
    content: [
    Text {
    font : Font {
    size: 24*
    x: 10, y: 30
    content: "Text"
    Button {
    layoutX:50
    layoutY:150
    text: "Browse"
    action: function() {
    fc.showOpenDialog(fc);
    }{color:#ff6600}graphUI.fx{color}
    When I run the project in Netbeans it works perfectly, but when I run it in the web browser I get only a grey box.
    So I did a little test and changed the {color:#ff6600}graphUI.fx{color} to this one:
    import javafx.scene.*;
    import javafx.stage.*;
    import javafx.ext.swing.*;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.control.Button;
    Stage {
    title: "File Chooser Sample"
    width:800
    height:600
    scene: Scene {
    content: [
    Text {
    font : Font {
    size: 24
    x: 10, y: 30
    content: "Text"
    Button {
    layoutX:50
    layoutY:150
    text: "Browse"
    action: function() {
    var fc =FXfilechooser.create();   // create and wrapping moved in the action function
    var fcComp=SwingComponent.wrap(fc);
    fc.showOpenDialog(fc);
    }{color:#ff6600}modified graphUI.fx{color}
    When I run this in the browser, I can see the button now and the text, but the filechooser dows not appear when I click the button.
    I tested this in linux and windows using FF.
    Any suggeestions?
    Regards
    Edited by: babil on Jul 12, 2009 6:29 AM
    Edited by: babil on Jul 12, 2009 6:30 AM

    Sorry for the code, I messed somehow with the rich text editor here.
    This is the output from the console.
    Thanks
    Reading certificates from 315286 http://dl.javafx.com/javafx-rt-linux-i586__V1.2.0_b233.jar | /home/peppe/.java/deployment/cache/6.0/6/34260e86-6dd1daa6.idx
    Exception in thread "AWT-EventQueue-4" java.lang.Error: Couldn't launch FX Stage graphUI
         at com.sun.javafx.runtime.adapter.AppletStartupRoutine.run(Unknown Source)
         at com.sun.javafx.tk.swing.SwingToolkit$StartupRoutine.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
         at java.lang.System.getProperty(System.java:650)
         at javax.swing.filechooser.FileSystemView.getHomeDirectory(FileSystemView.java:380)
         at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFileChooserUI.java:253)
         at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:136)
         at javax.swing.plaf.metal.MetalFileChooserUI.installUI(MetalFileChooserUI.java:126)
         at javax.swing.JComponent.setUI(JComponent.java:673)
         at javax.swing.JFileChooser.updateUI(JFileChooser.java:1763)
         at javax.swing.JFileChooser.setup(JFileChooser.java:360)
         at javax.swing.JFileChooser.<init>(JFileChooser.java:333)
         at javax.swing.JFileChooser.<init>(JFileChooser.java:286)
         at FXfilechooser.create(FXfilechooser.java:15)
         at graphUI.javafx$run$(graphUI.fx:22)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 10 more

  • How to drag and drop a swing component that can make it behave like Visio.

    1) How to make a JComponent drag and drop that behave like visio? I understand it's possible to drag and drop a text or image, but no idea on how to do that on JComponent. 2) After the JComponent is dragged and dropped, how to make the JComponent to be able to resize by the user using mouse 3) The area that the JComponent dropped should it be GrassPane, LayerPane, or ContentPane?

    I see where you're going. I'm drawn to Thunderbird because it puts open emails in separate tabs, which makes finding a particular open message easier than searching the task bar for an open outlook message. I do see your point that tab happy programmers, probably too young to remember how cool we thought drag and drop was when it first came out, don't think much of it. As with a lot of software, each programmer has a very limited view of how it their program should be used vs how it is actually used in the wild.
    People work in different ways. When I schedule an appointment with a client, this is often preceded by a series of emails related to whatever the client wants to discuss. I drag and drop those messages into the appointment window so that on the date of the appointment, I have a nice neat summary of the issues right there in the appointment window. I could use workarounds (save email and then attach to the appointment), but that's like a trip back to Windows 3.0 and it's, if I'm not mistaken, 30+ years later. I guess I'll continue to use Tbird for email and outlook for calendar, not my preferred solution, I'd like to flip MS the bird and cut all ties to outlook, and was hoping Tbird was the solution. Not yet, and perhaps not ever, based on your thoughts.

  • Searching a calendar swing component

    Hello friends.
    I'm looking for a calendar swing component, to make a schedule aplication (like Outlook).
    I found "Mig Java Calendar" (http://www.migcalendar.com/index.php) but it isn't free, i need one like this free.
    Do you know someone free?
    Thank you.

    And if you think, as I do, that a date picker is
    standard component and should be part of the jdk,
    please vote here:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=473
    0041
    -Pucethat is really helpful. I voted for it.

  • When Firefox loads I get an error saying 'the applications security component could not initiallize'. I have a 64-bit PC based system.

    When I load Firefox I get an error message that tells me that the application security component could nt be initiallized. The suggestion from the error meddage was to see if there is a read/write restriction for the application profile directory. I have looked and found no such restriction on that directory. Firefox will load and allow me to look on the web, but many of the functions do not work. I have a 64-bit system using Windows 7 (64-bit version).

    Rename secmod.db (secmod.db.old) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case there is a problem with the file.
    You may have to rename cert8.db (cert8.db.old) as well.
    Firefox will create new files.
    The file cert8.db stores user certificates and intermediate certificates send by websites, so if you have certificates that you want to keep then you may want to export them now and import them after having removed cert8.db.
    See Tools > Options > Advanced > Encryption: Certificates: View Certificates
    If that works then you can delete the renamed files or undo the changes if you want to revert the process.
    Also make sure that you allow the loopback connection with the Software Security Device in the firewall.<br />
    * [[Firefox makes unrequested connections]]

  • I have created some music tracks as aiff files which I want to load onto my iPod Shuffle 4th Generation, but it won't play them - it just bleeps at me. I have changed them to AAC which works - what settings do I need to use to make aiffs work?

    I have created some music tracks as aiff files which I want to load onto my iPod Shuffle 4th Generation, but it won't play them - it just bleeps at me. I have changed them to AAC which works but would rather use aiffs. Can anyone tell me what settings do I need to use to make aiffs work? The info on the iPod says that it accepts aiff files!!

    I have created some music tracks as aiff files which I want to load onto my iPod Shuffle 4th Generation, but it won't play them - it just bleeps at me. I have changed them to AAC which works but would rather use aiffs. Can anyone tell me what settings do I need to use to make aiffs work? The info on the iPod says that it accepts aiff files!!

  • I have a macbookpro. when I connect any camera to the mac it does not show as a device. How do I load my pictures to either iPhoto or Aperture? It worked before but just stopped working. Any suggestions?

    I have a macbookpro. I use Aperture and Iphoto. When I connect any camera to the Mac it does not open it as a device in Iphoto, Aperture or in Finder. It use to work but just stopped. Any sugestions?

    Here is the full story. It may be long so please bear with me. I take a lot of pictures and movies. Since I have over 30,000 pictures I decided to place the Iphoto library on an external drive to save space on my internal drive since ot was getting very full. After I did that it worked fine for a while. Then one day I could not open the Iphoto library. Since I was overseas at the time I brought it to the IStudio ( not an Istore) overseas. They said to rebuild the library and they would do that for me. It took all day since I had so many pictures. When they called me and told me it was ready, I went to pick it up. They started to show me the new library. It crashed again. Not knowing how to fix this at the ISudio, they installed Aperture and imported the Iphoto library. This worked fine for a short time.When back in the states, it crashed again just like Iphoto. I took it to the IStore. They did not know why the overseas Istudio did what they did what they did  and rebuilt my aperture library. Again it worked fine. Now that I am overseas again. It crashed again. However, I concluded that the reason for these crashes is becuase I have the file on an external drive that derives its power from the Mac and not by itself. When I use it and stop for a while the MAC will go to sleep and this cuases the external drive to shut down. This then causes the library to have inconsistancies. Therefore, when it happened this time I tried to repair the library and after 36 hours it would close down Aperture. Therefore I decided to rebuild the library. That did not work either. So I tried opening the Aperture library with Iphoto. That seemed like it was going to work but after importing half of the 30,000 plus pictures. I photo shut down. I then made a new aperture libary and erged the old library with it. This worked. I now have an aperture library that works. However, when I plug my camera into the MAC nothing happens. The camera does not show up in devices in either Aperture, I photo nor in Finder. The USB port and cord I use works fine becuase I can read my external hard drives fine. I checked as SIG suggested in this thread and everything is set to open aperture when the camera is connected.
    I have the newest OS version 10. 7. 2 and the computer frequently updates all my programs. I have not installed any ne software lately. The problem happens both if I am on battery or plugged in. Just before I came overseas the IStore replaced the Battery.   I can go back to the IStudio  here overseas but the last time I was there and told them about the problem ( I did not have my computer with me) they did not impress me with their wisdom. I will be back in that city in a month and can go there if need be.  Thanks for all the help so far. God bless.

  • Hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    Finder > Preferences > General > Always open folders in a new window: uncheck

  • I just ordered a macbook air today and need to know if the 128gb SSD is enough space. I presently have a macbook pro and am using only 30gb hard drive space so, the apple rep said 128 is enough as I do not load much pictures or gaming etc. Also is i5 ok.

    I just ordered a macbook air today and need to know if the 128gb SSD is enough space. I presently have a macbook pro and am using only 30gb hard drive space so, the apple rep said 128 is enough as I do not load much pictures or gaming etc. Also is i5 ok.

    Id choose the I5 yes, depends on what your usage is going to be,
    ....your question about "128 gig being enough" begs the question for IDEALIZED USE of your macbook AIr
    In the case of a Macbook Air with ‘limited’ storage on the SSD, this distinction becomes more important in that in an ever rapidly increasing file-size world, you keep vital large media files, pics, video, PDF collections, music off your SSD and archived on external storage, for sake of the necessary room for your system to have free space to operate, store future applications and general workspace.  You should never be put in the position of considering “deleting things” on your macbook SSD in order to ‘make space’.
    *Generally, unless you NEED the data at least once every few weeks or once a month,...it really does'nt NEED to be on the SSD of your Macbook Air.
    Professionals who create and import very large amounts of data have almost no change in the available space on their computers internal HD because they are constantly archiving data to arrays of external or networked HD.
    Or in the case of the consumer this means you keep folders for large imported or created data and you ritually offload and archive this data for safekeeping, not only to safeguard the data in case your macbook has a HD crash, or gets stolen, but importantly in keeping the ‘breathing room’ open for your computer to operate, expand, create files, add applications, for your APPS to create temp files, and for general operation.
    Ive got more APPS than any human should have on my 128gig AIR,..(50 or so),....and 10gig of working data, important files etc etc.
    Still have 82gig available....... the entire point is that someone shouldnt consider the Air a "storage device" for tons of pics, music, vids, etc.
    *Never consider any computer a data storage device at any time under any circumstance, rather a data creation, sending, and manipulation device. Anyone who thinks data is safe on any computer, even copied upon multiple partitions is making a mistake that will, without fail, strike.
    For needs of packing around a LOT of "big data" with your Air in its case..., get a nice 1TB HD for $70, or even a 2TB drive not much bigger.
    Perfect 2TB HD, very slim, the "little giant"   made by Toshiba (have several of these) $119
    http://www.amazon.com/Toshiba-Canvio-Connect-Portable-HDTC720XK3C1/dp/B00CGUMS48 /ref=sr_1_4?s=electronics&ie=UTF8&qid=1379182740&sr=1-4&keywords=2tb+toshiba
    *This one is the BEST  external HD available that money can buy:
    $75
    HGST Touro Mobile 1TB USB 3.0 External Hard Drive
    http://www.amazon.com/HGST-Touro-Mobile-External-HTOLMX3NA10001ABB/dp/B0062FZ2WS /ref=sr_1_1?s=electronics&ie=UTF8&qid=1379185002&sr=1-1&keywords=hitachi+extern a l+hard+drive

  • I've got a iPod classic 80g I've got loads of pictures on there and I want to get them off. I've tried something where the files I get off come up as thumbnails which I can't open. Is there any way of getting them off and viewing them as a normal photo?

    I've got a iPod classic 80g I've got loads of pictures on there and I want to get them off. I've tried something where the files I get off come up as thumbnails which I can't open. Is there any way of getting them off and viewing them as a normal photo?

    Oh no... NOT THE 99-PAGER!!! Anything but THAT!!!

  • Re AD002357145UK I have just subscribed to Adobe Send. I am sure that v revently I used Adobe Send Now for free. Is that still possible (which means I could cancel AdobeSendNow subscription) or do I have to subscribe to Adobe Send to carry out file transf

    Re AD002357145UK I have just subscribed to Adobe Send. I am sure that v revently I used Adobe Send Now for free. Is that still possible (which means I could cancel AdobeSendNow subscription) or do I have to subscribe to Adobe Send to carry out file transfer. Incidentally I have Adobe Creative Suite. Thanks. Nadim Othman

    [topic moved to Adobe Send forum]

  • How could i know where can i find my picture just taken by camera roll.

    Hi Friends,
    I am using iPhone 5s via window 7.
    I have no icloud sync or other things complicated.
    I can't use itunes to move picture from my phone to office computer, so i use iPhone cable, and select trust on the plugged computer.
    However, when the time being, there are more and more folders appear, naming like : 815KMYLY , 823WGTMA, 990WNQLR, 966VWNR something like that and it's about 18 folders already.
    It occupied space in my phone, but the most trouble thing is... i can't locate my my picture just taken and i need to open the folder one by one to search it.
    Any genisus can suggest how could i do about it ?
    thanks
    Jackson

    Hi,
    I also facing the same problem as you and I try to find the best answer from Google.
    This is the basic way that I found,
    1.go to the DCIM folder
    2. Search *
    3.then you can see and manipulate all the pictures in the subfolders at once
    4.Change your view function --> select --> details
    5. Then you can re-arrange all items by Date modified.
    Hope this can help.

  • Using OSX 10.5.8, just downloaded latest version of Firefox which now refuses to load with the message "Application quit unexpectedly".

    I am unable to load Firefox on my iMac using OSX 10.5.8. Having just downloaded the latest version of Firefox, every time I try to load it, I just get the message "Application quite unexpectedly." When I go to the Firefox website to re-load the software, nothing happens when I click on download.

    Hello.
    Hopefully this support article is what you need:
    http://support.mozilla.com/en-US/kb/Firefox+crashes+when+you+open+it
    In any case, it's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem does not disappear when all add-ons are disabled, please tell me, so we can work from there. Please have no fear of following my instructions to the line, as all can be easily undone.

Maybe you are looking for