How can i make a simple image viewer in JAVA?

i know this is a silly doubt...but 'm new to java
i have to make an image viewer which can also zoom the image
please help me
advance thanx

Create an java.awt.Image object
Display it in a java.awt.Panel object
using java.awt.Graphics.drawImage
some of the drawImage methods let you scale, clip, and flip the image.
That's AWT. It may be easier in Swing.
I think this could be written in under 50 lines of code. Maybe under 25.
Read the tutorials and the API. All will become clear.
If you're new to java, you might be better off posting to the New To Java forum.

Similar Messages

  • How can I make the tab image instead of text.

    Hi guys,
    How can I make a tab displayed as image instead of text?
    Best Wishes,
    Fateh

    Thanks Jari,
    I use Apex 4.0.2 and the theme is Builder Blue 2. When I click edit tab, I get "Tab Label" that is required field and a region called "images". As I got from you, I cannot utilize images in my case.
    Regards,
    Fateh

  • How can I make a simple slideshow on iDVD?

    As opposed to the majority of Apple apps that are "user-friendly" I find using iDVD a very awkward, un-friendly application. It offers "drop zones" without me understanding what I should "drop" into them.
    I just want to make a simple DVD of a slideshow with some background music ... nothing fancy. I don't need any theme and I don't need to add any movies.

    To simply create a slide show in iDVD 7 onwards from images in iPhoto or stored in other places on your hard disk or a connected server, look here:
    http://support.apple.com/kb/HT1089
    If you want something a bit more sophisticated:
    There are many ways to produce slide shows using iPhoto, iMovie or iDVD and some limit the number of photos you can use (iDVD has a 99 chapter (slide) limitation).
    If what you want is what I want, namely to be able to use high resolution photos (even 300 dpi tiff files), to pan and zoom individual photos, use a variety of transitions, to add and edit music or commentary, place text exactly where you want it, and to end up with a DVD that looks good on both your Mac and a TV - in other words end up with and end result that does not look like an old fashioned slide show from a projector - you may be interested in how I do it. You don't have to do it my way, but the following may be food for thought!
    Firstly you need proper software to assemble the photos, decide on the duration of each, the transitions you want to use, and how to pan and zoom individual photos where required, and add proper titles. For this I use Photo to Movie. You can read about what it can do on their website:
    http://www.lqgraphics.com/software/phototomovie.php
    (Other users here use the alternative FotoMagico:  http://www.boinx.com/fotomagico/homevspro/ which you may prefer - I have no experience with it.)
    Neither of these are freeware, but are worth the investment if you are going to do a lot of slide shows. Read about them in detail, then decide which one you feel is best suited to your needs.
    Once you have timed and arranged and manipulated the photos to your liking in Photo to Movie, it exports the file to iMovie  as a DV stream. You can add music in Photo to Movie, but I prefer doing this in iMovie where it is easier to edit. You can now further edit the slide show in iMovie just as you would a movie, including adding other video clips, then send it to iDVD 7, or Toast,  for burning.
    You will be pleasantly surprised at how professional the results can be!

  • How can i make a simple app?

    Hi,  i just became an apple develiper,  Im wondering how to make a simple app like a "flashlight" like app,  Can anybody help me out?  would i have to start from scratch or could i use someone else's start??

    Use your logon to the iOS Dev Center and see this links:
    iOS Human Interface Guidelines
    iOS Starting Point
    Start Developing iOS Apps Today
    App Development Overview
    App Store Review Guidelines for iOS Apps
    Your First iOS App

  • How can I make a simple 1 channel I/O with RS232?

    Hy all,
    I just want make a simple 1/0 output over RS232. How can I programme it in LabView? Noemaly we send datas over RS232, but I want just a High or a Low on the TxD (or may on DSR or CTS).
    Thanks
    Petric

    You are lucky, here is a 6.0 version ... I hope it works
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    DTR control 2.vi ‏10 KB

  • How can I make a simple 1D array filter.

    When I aquire my data I get a 1D array with anywhere from 10 - 30 data points. There are always ten good data points the rest are noise or false triggeres. a good data point is in the range of .1-.2 a bad point is .001-.01 how can I filter out thse bad points? Im using labview 8.6. also I think this program will work if it could be backconverted from 9 to 8.6.
    Attachments:
    InRange[1].vi ‏11 KB

    Dan K wrote: 1 - get "array size" and connect that to the N of the for loop.
    2 - "index array" so you can compare values one at a time.
    3 - "in range and coerce" - (note: you need to wire values above and below the orange line shown for the range you'd like)
    4 - case structure: if "in range" is true, then take the value and put it into a new array (this new array only has the good values you want) (false case is blank)
     NOOOOOO!!!!
    Step 1 and 2 are not necessary. Simply autoindex the original array at the loop boundary. Voila!
    (an "index array" with the index wired to [i] is never needed. Autoindexing does the same thing and automatically determines the number of iteration, eliminating step 1). 
    The second array is not initialized, meaning it will grow without bounds of you run the VI many times. Every time the loop runs, the array is resized, requiring a new buffer allocation. The original code is much better, because it preallocates the output array, replaces elements, then strips the extra length at the end. For large datasets, the original code will be orders of magnitude faster.
    LabVIEW Champion . Do more with less code and in less time .

  • How can I make adjustments in MOMENTS view

    When I choose the top most Photos icon in the side bar, the moments view is evident.  My photos are grouped by day dates.  This makes is very difficult to locate photos known to be within a certain month or even year.  As I scroll down through the listing, I noticed that some of my groups had the same date, yet were grouped separately.  Then I notice some groups have a location listing, then back to days, then back to locations.  A few pictures were listed under locations that were wrong.  Is there any way to make a change on how the moments view is arranged?  The IOS moments at least has a few adjustments.

    A view is a stored query. It gets executed at run time. A view does not occupy any physical space in the database (other than the insignificant amount of space required to store the query in the data dictionary).
    A materialized view actually materializes the results of a query in a separate table structure, so it consumes physical space in the database. It also has to be refreshed at some interval, either synchronously with DML or asynchronously on a set interval.
    Justin

  • How can I make the bleed image content reappear in indesign cs6

    Hi there,
    I created a 3mm bleed in the document setup and made sure the artwork filled the bleed area. Then, suddenly, after playing around with some view settings (and maybe some other things that i cant remember), the bleed image content will not show up in neither indesign nor the exported pdf. When I set the view mode to normal, it just shows the bleed content area as white. I see the bleed lines and see that the images are filling the bleed when selecting the images themselves, but the bleed area is completely white and I can´t send my files to the printer as the content will not show up there either.
    Has anyone experienced this and know a fix? I was thinking that maybe the reset preferences would help, but I´m unsure.
    Grateful for any help
    Lise

    Hi Larry,
    I am in Normal mode and yes, the W shortcut toggle works.

  • How can I make a simple DVD in iDvd?

    I have 17 video segments that I would like to autoplay in order and then have a simple titled menu come up at the end and so all 17 segments as thumbnails in case a reply of one of the segments is required.
    THx for any thoughts...
    Mike

    You won't be able to get all 17 on one menu page. It will require a sub menu/s also. Most themes range from 6-12 buttons. But the good news is once you have compiled your iDvd project, you can drag and drop said movie to the first box while in map view within iDvd and it will play the dvd once inserted into most dvd players. The menu will indeed pop up at the end provided you do Not select the loop function also.
    Hope this info helps but if not just come on back.

  • How can I make a simple Pendulum movement

    Hi,
    I am quite new to motion and at the moment I am thinking that I am tiring to run before I can walk this idea of mine.
    I am trying to make a repeating pendulum movement, like the movement of the Newtons cradle with the 4 balls, the energy of the swinging outer left ball is transferred to the outer right ball on contact etc. Each ball will show a short looping video footage.
    Is there a simple way of creating an arced motion path (upwards and outwards) for the first ball and then reversing it along the same motion path, but then copying this path to the opposite side, mirroring the complete movement?
    I have tried converting to a simple motion path to keyframes but I get into a bit of a mess.
    Any ideas?
    Thanks in advance.
    PowerMac 2x2.5GHz   Mac OS X (10.3.8)  

    I actually just did an animation based on that desk decor thing... it was easy once i figured out what to do...
    Now, i tought myself motion, so my way may not be the "best" or quickest but it worked. First...import the object/make the object or whatever. second, go to behaviors and take basic motion path. After that, take the bezier curve adjustment and arc the line. That will get you the object going up in a swing or down...depending on where you put the start point on the curve. After that, copy the actual motion curve, but put the new end point to where the old start point was...basically invert the motion (if there is a simpler way to do this please tell me). that will get the object to go up/down then down/up.
    So that gets the basic motion of a half swing.
    If your object hits another object (like in the desk thing) make sure your snap lines are on because youll need them to line up the motion. Do the same thing to the second object as you did to the first, but going the oposite way. The snap lines will help guide you to make sure the second object goes as high as the first. To make it look correct i pretty much eyeballed the connection of one object to the next going frame by frame. I also added the "ease at end" motion to the rising motion path to add a realistic touch.
    If this is confusing i'm sorry...

  • How can I make an imported image smaller without changing the size of the canvas?

    After downloading some free icons, I used the drag and drop method to bring the icon of my choosing onto a blank canvas that is 313x188 pixels. The image is larger than I need it to be, so I need to make the image smaller while keeping the canvas size at 313x188 pixels. I've tried several things after googling it, but have not had any luck. Help; I'm still learning! Thanks in advance!

    ctrl/cmd-T will bring up transform. Then just drag the handles to size it - hold the shift key to constrain the aspect ratio.

  • How can you make a background image change to a faded state at a certain point in scroll?

    I'm referring to a technique I've seen used in Relevant Magazine's iPad app if anyone has used it. I understand having a shape behind text that has a feathered gradient and when you scroll the text the shape gradually fades out the background image. But this is not the effect I'm trying to acheive. On some of the articles in Relevant, the screen is a full image and as you scroll the type up, the entire background dims when you scroll to a certain spot.
    I've tried searching for hours, but I feel like I'm getting no where because I don't really know what to search for. I feel like it requires use of something other than what DPS is capable of. Hopefully this makes sense and I'd greatly appreciate any suggestions and help!
    Thanks!

    Try applying the feathered gradient to the scrollable content frame, not the background frame. It will appear to change the color of the background frame.

  • How can you make a pixlated image a higher resolution in Photoshop CC? i have tryed image size but it doesnt seem to work someone please help

    As you can see in the screenshot here ----> Gyazo - b048a0770df6264af1ff398951acd4f9.png I have typed a higher resolution but when I try the pixles never seen to ever go away and it increases the file size every time, is there an easier way? PS: if another adobe cc software is needed to complete this task I have every one so it doesn't have to only be in Photoshop.

    The image has been reduced in size and over sharpened to the point that jaggies artifacts abound.  You will not be happy with the result of interpolate the images up in size increase the number of pixels..   You need to find the original image file from the camera.

  • How can I make text in images in a jpg or gif not appear blurry?

    Probably a very simple answer, but I'm a newb and could use the help.
    I'm creating an image for the web with a logo and text - the logo comes out ok, the text is all blurry. I've messed around with saving for web but no luck. It has to be a gif or a jpg.
    Thanks for the help

    Gregory,
    Have you ticked Anti-Aliasing? At least in older versions, it is hidden away in the Image Size part.

  • How can I make a disk image of an unmountable disk?

    I have an external La Cie USB 3 disk that refuses to mount. I'd really like to get the data off of it. I recently had another external disk die the clicking death and I found a utility that made a disk image of that disk, but now I cannot find the utility. All I can remember is that it had an odd name.
    Any ideas?

    Clone Lion using Restore Option of Disk Utility
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Select Disk Utility from the main menu then press the Continue button.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    DU will also clone the Recovery HD partition automatically at the end of the process.

Maybe you are looking for

  • Import/Export in back stage view

    What is the use of import/Export in back stage view of customize ribbon and Quick access toolbar

  • TV Listings do not display correctly in Firefox

    I am using windows 7, 64 bit on one computer and windows 7 32 on an other.  Neither display the TV listings correctly in Firefox V. 21.  I accept cookies, I have cleared the cache. The channels appear in the left column, although out of line, and are

  • Multiple TextField Validation

    I want to do this: I have 3 textfields, when I click the submit button I want the validation to check whether there's data in any of the textfields (at least in one) if so, then all three textfields are Valid, if non of the textfield have data then a

  • Performance Appraisal documents display on portal

    Hi All I am working on PMS in EHP 6 environment. We have implemented column layout configuration for documents. My query is in the attached screen shot , how can we reduce the blank space between two columns. Also , is there any way to increase the w

  • Problem with Advanced Routing in WRT320N

    Hi, everybody. First of all, sorry for my poor English. I've a problem with Advanced Routing in router. My provider using routing and it looks like that: route add -p 172.16.2.0 mask 255.255.255.0 10.1.0.2 route add -p 172.16.5.0 mask 255.255.255.0 1