How to make SimpleDateFormat behave like MaskFormatter

Hi!
I'm using a JFormattedTextField to input date values.
I defined it like this:
jftfDate = new JFormattedTextField( new SimpleDateFormat("yyyy/MM/dd") );
It works as expected but it doesn't give the user any feedback of the date format as he types it.
If I used the MaskFormatter insted like:
mf1 = new MaskFormatter("####/##/##");
mf1.setPlaceholderCharacter('_');
jftfDate = new JFormattedTextField( mf1 );
It would give the user feedback but wouldn't validate the numbers. For example, I could have a month with the number 13.
Does anyone had the same request and knows the answer to or have any clues?
Thanks,
Eduardo

check out the link shown below and see if it solves your problem:
http://forum.java.sun.com/thread.jsp?forum=57&thread=312875
;o)
V.V.

Similar Messages

  • How to make a leader like 'De wereld draait door'?

    How to make a leader like this one: De Wereld Draait Door - Intro (nieuw) - YouTube
    If you have any tips, please tell me .

    That's not a plug-in or effect, it's a bunch of 3D layers shaped like a semicircle with the anchor point on the straight edge rotating. You could use some expressions to make things easier. Once you get the basic globe made of cards working the best option for the rest of the animation would be to move the camera or parent the whole globe made of cards to a 3D null and animate the null's position. You may end up with a null parented to a null parented to all of the semicircles.
    It's not a newbie project. It going to take some 3D skills in AE.
    You could also do this in a 3D app. The concept is the same. Semi Circle flat cards rotating about the straight edge.

  • How to make a dialog like jbuilder?

    How to make a dialog like jbuilder's popup dialog. Such as search dialog in jbuilder. It can zoom in and zoom out, but it can't infinite zoom out, why?

    nobody?

  • How to make an avatar like this,

    Hello Adobe Community, i'm new here, i have a big question. I want to know HOW to make an avatar like this:
    I want to know how to do that effect that who zoom in and zoom out etc. WITHOUT SNOWING, only that effect, if you can help me please!
    That zoom effect is AWESOME... send me a tutorial please!

    I thought you said you knew how to make animated gif.  A frame is the composite of the layers that have their visibility on for the frame a frame may be made using many layers. You use tools and filters on layers.You make frame using layers.
    Photoshop also supports any size layer. Layers can be  larger the canvas size can have image data out side the canvas.  Layer image data position above can be move relative to the canvas.  The Cloud logo animation has two layer one is masked is masked the mask is not linked to the layers image data it stationary over the canvas and is more on less a masks more foe the background canvas then the layer its on. The layer it is on image data is more off canvas then over canvas. Photoshop also notes layer position in a frame information, A layer potion can be change from frame to frame. I only create two frame for that animation.  The first and last frame, The first frame I had the top late image JJMACK high and off canvas to the left.  The last frame had it low and off canvas to the right. I then had Photoshop generate 138 frames between the two frames I created.  So Photoshop moved the top layer position across the canvas  left to right and high to low direction and the stationary layer mask masked it as if it were going through the background layers clouds.  The two layers are visible in all frames.

  • How to make skin tone like newborn baby?

    I take a photo that is a girl.
    Her skin tone is near yellow tone.
    How to make skin tone like newborn baby?
    It means: brightly, have a little pink, and translucent (I don't know how to say that...).
    I've already search this question, but my english is not good....
    I don't know which word is apportiprate....
    Hope someone can help me.
    Thank you

    In my opinion,
    * 70% of the job is getting white balance correct, since that will help baby look, in the picture, close to the same color baby was, in real life.
    * 15% is selecting a camera profile that renders colors closest to how you want.
    * 10% comes from HSL tool.
    * 5% from locals (paint to touch up color).
    Note: you may also need temp/tint locals if photo shot under mixed light: flourescent is greenish, incandescent is yellowish, flash is flash, daylight is different...
    Note: numeric values are for illustration purposes only - the point is that you don't want to go painting until you've got everything else squared away, and you don't want to be mucking with HSL until you've got a fitting camera calibration profile selected and white balance adjusted.
    Not sure what else to say, except color can be further refined (in addition to the above-mentioned) using:
    * RGB curves
    * split toning
    * ratio of saturation to vibrance
    * amount of contrast
    * shadow-tint
    and you can develop your own camera calibration profile just for baby skin if you want ;-)
    Cheers,
    Rob

  • How to make HD look like 4K

    I found this article rather interesting. If I had to try and make a silk purse out of a sow's ear, I would read this one again.
    RedShark News - How to make HD look like 4K

    I'd forgotten about RedShark in general ... thanks for the heads-up.
    And the point about the "impression" being at times more important than the reality (especially if not well handled) is well taken. Working professional stills for many years now ... I've had large prints that even at close inspection looked much cleaner, sharper, and less noisy than other photog's made who had "larger" sensors ... but did their post not as righteously as I did. How you set up & shoot the image/s in the first place matters ... as does how you handle your post & output.
    Craft matters ...  

  • Make conky behave like tint2

    Is there a way to make conky behave like tint2? By this, I mean that when I maximize the window, the window should not go over the conky. In addition, the conky should be visible when show the desktop. Currently, the best I can do is make the conky go over my window. Here is my .conkyrc:
    background yes
    use_xft yes
    xftfont Sans:size=9
    xftalpha 1
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_type normal
    own_window_hints undecorated,above,sticky,skip_taskbar,skip_pager
    own_window_colour white
    double_buffer yes
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    default_color white
    alignment tl
    maximum_width 1400
    minimum_size 1400 0
    gap_x 0
    gap_y 0
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
    color1 ff0000
    color2 ff8000
    color3 ffff00
    color4 80ff00
    color5 00ff00
    color6 00ff80
    color7 00ffff
    # Output
    TEXT
    CPU1: ${color2}${cpubar cpu1 7,90}${color}\
    CPU2: ${color2}${cpubar cpu2 7,90}${color}\
    RAM: ${color2}${membar 7,90}${color}\
    /: ${color2}${fs_bar 7,90 /}${color}\
    Free: ${color2}${fs_free /}${color}\
    1: ${color2}${top name 1} ${top cpu 1}%${top mem 1}%${color}\
    2: ${color2}${top name 2} ${top cpu 2}%${top mem 2}%${color}\
    3: ${color2}${top name 3} ${top cpu 3}%${top mem 3}%${color}

    Try this conky and see if it acts like a panel.
    # Use Xft?
    use_xft yes
    xftfont mono:size=9
    xftalpha 0.8
    text_buffer_size 2048
    # Update interval in seconds
    update_interval 1
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_transparent no
    own_window_type panel
    own_window_hints undecorated,sticky,skip_taskbar,skip_pager
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    # Minimum size of text area
    minimum_size 1280 0
    # Draw shades?
    draw_shades no
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    draw_borders no
    # Draw borders around graphs
    draw_graph_borders yes
    # Stippled borders?
    stippled_borders 0
    # border margins
    border_margin 0
    # border width
    border_width 2
    # Default colors and also border colors
    default_color white
    color2 1994D1
    #default_shade_color black
    default_outline_color 3c3c3c
    own_window_colour 3c3c3c
    # Text alignment, other possible values are commented
    #alignment top_left
    #alignment top_right
    alignment bottom_left
    #alignment bottom_right
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 5
    gap_y 0
    # Subtract file system buffers from used memory?
    no_buffers yes
    # set to yes if you want all text to be in uppercase
    uppercase no
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer right
    TEXT
    ${offset 5}${color2}CPU1${color} ${cpu cpu1}% ${goto 80}${cpubar cpu1 9,30} ${color2}CPU2${color} ${cpu cpu2}% ${goto 188}${cpubar cpu2 9,30} ${color2}MEM${color} ${mem}/${memmax} ${membar 9,30} ${color2}SWAP${color} ${swap}/${swapmax} ${swapbar 9,30} ${color2}DOWN${color} ${downspeedf eth0} KB/s ${downspeedgraph eth0 9,30} ${color2}UP${color} ${upspeedf eth0} KB/s ${upspeedgraph eth0 9,30} ${color2}SDA1${color} ${fs_used /}/${fs_size /} ${fs_bar 9,30 /} ${if_existing /media/Linux/Downloads}${color2}SDB1${color} ${fs_used /media/Linux}/${fs_size /media/Linux} ${fs_bar 9,30 /media/Linux}${endif}

  • 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.

  • MBP 2011 - Best way to make it behave like Mac Mini ?

    I have a 26" NEC monitor I like and use for photo editing. I come from the Windows world. Late last year I bought a Mac Mini, hooked it up to my monitor and was getting used to OS X. Then my mini was stolen.
    I recently replaced the stolen mac-mini with a 2011 13" MacBookPro i7 2.7, thinking I could hook it up to my NEC monitor like the mac mini, but I'm finding it's not really like that. It's more of a dual display setup that I'm finding awkward.
    How can I make the external monitor be the main screen with dock and menu bar ?
    Display settings are kind of primitive in this regard.
    I can drag firefox from the MBP screen to the external screen, but the menu bar stays on the MBP. It's kinda weird. Moving the mouse back and forth isn't so fluid due to vast difference in resolution between the two screens.
    Then there's the battery issue. If I leave the AC plugged in all the time, I read that isn't a good thing for battery life. It is however, convenient once in a while to pickup the MBP and carry it about the house.
    What's the best way to make the MBP behave like a mini?

    Thank you for the KB article, it helped.
    The key is to have the power AC adapter plugged in on the MBP. Then, when it wakes from sleep after closing the lid the attached display becomes the one and only display with Dock and Menu bar up top. Otherwise, in battery mode, wake from sleep is a complete disaster. This clamshell mode seems to be very stubborn in battery mode. It wakes up, monitor flickers, goes back to sleep. Press a key to wake it up again and it just keeps going in a circle, like ground hog day and I never get to actually use the MBP.

  • How to make a photo like this? (footballer)

    Dear All,
    I am enclosing a photo that I found in the Internet. This is a footballer photo.
    May I know how I can make a photo like this in terms of color and texture in Photoshop? Many thanks!
    Best regards,
    Keith

    What you'll want to do is pick a photo with something like a person or an animal in the foreground. Then, use the Lasso tool to trace around the outside. Separate the person and the background into two or more layers, depending on how much you want to change. Up the saturation on the background, and apply a blur under the filter menu. It might just be the angle the photo was taken from, but they could have possibly added a light effect behind him as well. As for the guy, it looks like they upped the contrast and lowered brightness. Since i don't know from what angle the photo was taken, those are the only effects I can say were most likely used.
    Hope this helps,
    Cole

  • Bridge: How to make PDF looking like this:

    I try to arrange my images in PDF document, which I'm making in Adobe Bridge CS5.
    I want to make this looking something like this:
    How to make it?

    Or get a decent program like Contact Sheet X.
    http://csx.riaforge.org/

  • How to make color tone like this?

    I'd like to find out how to make similar "color tone" effect like this:
    http://www.horror-movies.ca/watermark.php?filename=poster_THE_SITTER_2D_ORING.jpg
    I'm talking about those striking "artificial" skin tones you can see on many movie posters (or advertising/fashion posters). For example:
    http://www.impawards.com/2008/posters/curious_case_of_benjamin_button_ver3.jpg
    http://www.impawards.com/2008/posters/tropic_thunder_ver4.jpg
    http://www.impawards.com/2008/posters/twilight_ver6.jpg
    http://www.impawards.com/2008/*****_slap_ver7.html
    http://www.impawards.com/tv/posters/fringe_ver9.jpg
    http://www.impawards.com/tv/posters/dexter_ver2.jpg
    http://www.impawards.com/2008/posters/hellboy_two_ver2.jpg
    I don't know how to describe it (sorry, english is not my first language), but I like the way the color on the skin affects only certain tones. I hope you understand what I'm talking about :) I tried to play with layer blending (BW + color balance of shadows)... but I never manage to do something like this. I suppose it has to be a common technique, sice I see it on so may posters and photos. Does anybody have some advice? Thanks!

    Alan,
    The links you posted seem to suggest the effect you are after may be the result of luminance masking, perhaps coupled with a knockout layer to protect the eyes. Try this procedure:
    (a) Duplicate the background layer CTRL + J (and perhaps rename it Blur as that helps to emphasise the purpose of the new layer).
    (b) With the new Blur layer active, from the Menu bar choose Filter/Blur/Gaussian blur about 20% for starters each image may require slight variations to this amount.
    (c) Turn off the visibility of the new Blur layer and select/make active the Background layer.
    (d) Go to Channels Palette and CTRL click on the Red channel. Return to the Layers Palette. Turn visibility of new Blur layer back on and select it.
    (e) With the new Blur layer active, click the Add layer mask button at the bottom of the Layers Palette this adds the Luminosity Mask to this layer and results in seeing the Gaussian blur now only inside the lightest (50%) details of the image. Now change the Blend Mode of this layer from Normal to Overlay. If the effect seems too strong, try the Soft Light blend mode which is less severe. If you want a greater effect than Overlay delivers, try Linear Light. You can back off the effect of any of these blend modes with the Opacity slider but that would, I think, also back off the amount of Blur, which may or may not (depending upon the image) lessen the overall effect you are aiming for.
    (f) Next comes the Knockout Layer (KL) to remove the effect of these Blur and Blend Mode edits from the eyes. The KL must be on top of the Blur layer, so make the Blur layer active and then add a new transparent layer above it - CTRL + Shift + N and name it Knockout.
    (g) On the new KL, select the eyes with the Elliptical Marquee Tool (select too much rather than too little reason follows later) and fill the selection with Black ALT + Backspace (provided Foreground Colour in Tools Palette is Black). Then deselect the eyes CTRL + D.
    (h) Bring up the Layer Style dialog box (LSDB) by double clicking on the icon for the KL. In the LSDB change Knockout from None to Shallow and reduce Fill Opacity from 100 to zero % and click OK which dismisses the LSDB. That is it you have now eliminated the effects of the Blur layer on the eyes using the Black holes on the KL.
    (i) To remove any excess eye selection, you use the Eraser tool (set to about 50% hardness) and paint around the edges of the eyes with the Eraser tool what this is doing is reducing the size of the holes in the KL and bringing back the effects of the edits from the Blur layer.

  • How to make a layout like this?

    Hu My question is how to make a work layout like this panel?
    One is affected by perspective grid and there others are not.
    Thank you!

    Please read about art boards in the manual. That's what it's there for.
    In one file you can have objects in the perspective grid and objects that are not. Use the plane switching widget to determine that:
    http://help.adobe.com/en_US/illustrator/cs/using/WSfd7453be0f56bba4-4bd07ab712480a35d44-80 00.html

  • How to make a page like this...

    I'm trying to figure out how to make pages in iWeb like this site:
    http://www.clairemyersart.com/index.php
    I don't care about the flash section, I'm more interested in the static background image with the centre scrolling section. I've looked at the source code, but I don't know enough about html to figure out which part of the code I need.
    Any suggestions?
    Lynn

    Have a look :
    http://www.wyodor.net/_Demo/tmf/Duckmenu.html
    And this is the code to paste in the HTML Snippet :
    <script type="text/javascript">
    parent.document.body.style.backgroundColor='#3B92CC';
    parent.document.body.style.backgroundImage='url(../duckmenu/duckassets/Spoorbackground.gif)';
    parent.document.body.style.backgroundPosition='50% 0%';
    parent.document.body.style.backgroundAttachment='fixed';
    parent.document.body.style.backgroundRepeat='no-repeat';
    </script>
    This one uses a similar background, but not static :
    http://ipad.dailynews.webege.com

  • How to make a website like this

    Does anyone know a good publication or training DVD that will
    quickly teach me how to make websites like this:
    http://blusites.com/adam/
    I've been taking a flash course through a local college and
    all they teach me is how to do stupid animal animations, animated
    gifs etc... I'm dropping the class hoping that I can teach myself
    and not waste anymore time
    Thanks!

    Personally, why pay to view linda.com videos when you can
    access all the videos you could want for free at
    http://www.adobe.com/designcenter/video_workshop/
    I'm not crazy about the videos anywhere because I might have
    to watch them again and again, but some of the videos have a
    tutorial and a file to download.
    If you're the type that you like to do all you can before
    going to a forum, then you can do these things:
    1. I don't know if you have Adobe Creative Suite 3, but if
    you want to make websites with flash, you will need the program.
    2. I like the flash movie at
    http://blusites.com/adam/blu1.swf,
    but believe it or not, it's a very simple movie. The photographs
    are supplied by a professional photographer, and the flash movie is
    simple.
    3. If you already know how to make movies using Flash, then
    get yourself an Advanced Flash book to to learn faster and become a
    better flash creator. Flash CS3 uses ActionScript 2.0 and 3.0. You
    might like to get a book on ActionScript 3.0 to learn faster.
    You can and will learn faster and better if you take the time
    to do 2. and 3.
    There is a ton of Flash Tutorials at Adobe and other
    websites, do a search and you'll get so many sites it could take
    years to visit them all.
    good luck, hope this helps
    jan

Maybe you are looking for

  • How do I make a back up system disk. I wish to run snow leopard and Lion on 1 drive.

    I wish to run Snow Leopard and Lion on 1 Hard Drive. I need to back up snow leopard and then install Lion. Any suggestions on how to do this?

  • Script for temporary tablespace in 8.1.7.4.0

    Hi, I am working in oracle 8.1.7.4.0 and HP-UX os.I need a shell script which is to do the following tasks, 1. create a new temporary tablespace 2.assign the new temp tablespace to the database user level 3.drop the old temp tablespace 4. then create

  • Printing multiple envelopes from address book with Lion

    I am having trouble getting envelopes to print properly from Address Book in Lion.  I have specified size #10 envelopes.  When I print them, the text printed on successive envelopes moves further and further down the page until the address drops off

  • Java: Loading Resource Bundle File with UTF-8

    I have found out all my previous problems now, thank you all for your assitance with this... During the time we have worked so solve our problem with UTF-8 charset we have found new problem with this? I don't know if this is the right forum to put th

  • How to get 192KHz Output

    I'm using a Sound Blaster Z (SB1500) on a Dell machine running Windows7 (Home ed.). I use the S/PDIF output via TOSLINK to an external DAC. I want to play 192KHz music files, but when I click the properties tab for the sound card, the highest choice