How to make a shadow

how can i make a shadow in a panel when the mouse is over?
the panel has an image an this has to appear with the shadow
thanks

Perhaps you can set the border with setBorder(java.awt.Border) method.

Similar Messages

  • How to make those shadowed borders left and right of your page?

    Hi, Can someone tell me if I am on the right track? Here's what I've done so far. I've specified the background colour in the properties section. I've set up a 3 column table (fixed size) that has small columns left and right and a big one in the middle. For those small columns I've pickwhipped to 2 small gifs with the shadow. Previewed in Safari and everything looks ok.
    My question: is this the best way to do this? Or does it need a CSS approach? And if so, how?
    Now I want to give the bottom a shadow as well. Do I proceed in the same way? So make a left corner, right corner and a bottom? I'm working with GL CS2.

    The best way to slice things up depends on how the page is layed out. If the content area has a fixed width that centers (or doesn't), then might make more sense to have 3 vertically stacked divs with the background and drop shadows, then nest another div in the middle with margins for the actual content. Or, if the content size is completely fluid, the same structure could still work with floating divs (or absolutely positioned relative to a single container?) holding the corner images. Or there's always the old-school tables way of slicing things up (though I'd avoid that).
    There's more than one way to do it, and I don't know that any single option is necessarily the "right" way to go... as long as it works and validates?

  • How to make a shadow for Button or Panel

    Actually I want to show a shadow for Button or Panel.
    How can I do it.

    Hi
    Pls try to look for the Forms On-Line Help for how to create an alert...
    besides this Video Hope it helps....
    Good Luck :)
    Regards,
    Amatu Allah.

  • How do I make a shadow after I have green screened by actor?

    Set the green screen up. Got the shot. Now i need to know how to add a shadow. Thanks -Nick

    You could use the Drop Shadow options in the Motion tab. If you want more control, however, you could duplicate your keyed subject, add it to the track below (so you have subject on track 3, shadow subject on track 2, background on track 1) then do the following:
    1. Add a brightness / contrast filter and adjust it until the person is completely black.
    2. Add a blur filter.
    3. Use the opacity controls in the Motion tab to adjust the opacity of the shadow.
    4. Use the distort tools in the Motion tab (or use a Basic 3D filter) to position the shadow.

  • How to Make a "fonts.css" style sheet

    Hi, I  have a wordpress blog with a stylesheet named “style.css”. I want to change the fonts in the style sheet and so I want to create a separate style sheet named “fonts.css"
    I could just duplicate the ”style.css” page and then rename it “fonts.css” but I believe I read somewhere it is better to create a new style sheet named “fonts.css” and then add my font styles to that. Doens anyone know of a tutorial or how I make the new style sheet and add my fonts?

    I only typically use two stylesheets on any given site, layout.css and styles.css. One is for the overall layout/positioning info of the site and the other is the style information which would include fonts, colors, shadows, transitions, etc.
    If it is better in your mind and for your workflow to create a third stylesheet just for the font values, go for it. To me, fonts are just another style element though, so they stay in my styles.css file.
    There's really no right or wrong to doing it either way. Just make sure you create another link in the head section of your site to the new file if you create fonts.css.
    Thanks jon,
    Yes I agree, I could just change the fonts in “style.css” and then have less style sheets, but the themes developer told me to create a new style sheet named “fonts.css” only because the theme is updated regularly and uploading a new theme will write over the file named “style.css” and then your fonts will default to their original fonts.
    I don't see anything wrong with that approach. Just remember that if you have both styesheets linked to the same page then the page will get it's css styles from the last linked stylesheet.
    So for instance if you have:
    body {
    font-size: 14px ;
    in the style.css
    and
    body {
    font-size: 12px ;
    in the fonts.css
    and the last linked stylesheet was styles.css the page would display 14px text.
    So you just need to get them in the right order IF you have more than one styleshet linked to a page.
    Thanks Osgood,
    Yes that was my other question. So in my uploaded CSS folder I have the original “style.css” file and now my new “fonts.css” file. “style.css” is above the “fonts.css” file and both contain the same information except the file “fonts.css’ has been changed to use different fonts.
    So if I understand you correctly I need to either move the file “fonts.css" above the file “style.css” or delete “style .css” from the CSS folder so the file “fonts.css” will take precedence. Is this correct?
    Also, I needed to open style.php and edit the code to include “fonts.css” which I did.
    I opened "style.php" and then added the code in "red" then uploaded it to the (CSS) folder on the server.
    <?php
    header( "Content-type: text/css" );
    $files = array();
    $files[] = 'style.css';
    $files[] = 'responsive.css';
    $files[] = 'fonts.css';
    foreach($files as $file) :
        $content = @file_get_contents( $file );
        echo minify( $content );
    endforeach;
    function minify( $code ) {
              $code = preg_replace( '#\s+#', ' ', $code );
              $code = preg_replace( '#/\*.*?\*/#s', '', $code );
              $code = str_replace( '; ', ';', $code );
              $code = str_replace( ': ', ':', $code );
              $code = str_replace( ' {', '{', $code );
              $code = str_replace( '{ ', '{', $code );
              $code = str_replace( ', ', ',', $code );
              $code = str_replace( '} ', '}', $code );
              $code = str_replace( ';}', '}', $code );
              return trim( $code );
    ?>
    After doing all of this I still didn’t see any changes to my fonts so I must have done something wrong.
    Any ideas?

  • 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 curved photo paper with Photoshop

    Hi everyone:
    I would like to make a curved paper as that in this picture "http://stridsberg.deviantart.com/art/3D-rop-44014352". Just the paper, not the drop. Could any one tell me how to make it with Photoshop?
    Thanks,
    fireman

    I'll be interested in how to achieve the realistic shadow.
    -Noel

  • How to make a part of image have transitions on hover

    hey i wanna know how to make a part of a image have transitions when we hover on it like on my website :-perfectionunleashed.in i got this template from internet
    when i hover on second box "mission" comes with ease-in-out effect i cant get anything in my head while viewing source.
    will anybody view it by source and tell me how its done.

    CSS for "Coming Soon" buttons:
    .grad2 {
        display: block;
        width: 232px;
        height: 132px;
        text-indent: -99999px;
       background:url('images/grad2.png') right;
         opacity:0.0;
        -moz-transition: all 540ms ease-in-out 0s;
        transition: all 540ms ease-in-out 0s;
        -webkit-transition: all 540ms ease-in-out 0s;
    .grad2:hover {
        background:url("images/grad2.png") no-repeat scroll 0px 0px;
        box-shadow: 0px 0px 4pt rgba(0,0,0,0.9) inset;
        -moz-transition: all 540ms ease-in-out 0.0s;
        transition: all 540ms ease-in-out 0.0s;
        -webkit-transition: all 540ms ease-in-out 0.0s;
        opacity:1;
    .coming {
        display: block;
        width: 232px;
        height: 132px;
        text-indent: -99999px;
        background:url('images/grad_coming.png') left;
        opacity:0.0;
        -moz-transition: all 540ms ease-in-out 0s;
        transition: all 540ms ease-in-out 0s;
        -webkit-transition: all 540ms ease-in-out 0s;
    .coming:hover {
       background:url("images/grad_coming.png") no-repeat scroll -232px 0px;
        box-shadow: 0px 0px 4pt rgba(0,0,0,0.9) inset;
        -moz-transition: all 540ms ease-in-out 0s;
        transition: all 540ms ease-in-out 0s;
        -webkit-transition: all 540ms ease-in-out 0s;
        opacity:1;
    All buttons are inside a table.  This is the HTML for "Coming Soon."
    <td>
         <div class="grad2">
          <div class="coming">
         <a class="coming" href="http://perfectionunleashed.in/"></a>
         </div>
         </div>
    </td>
    Nancy O.

  • 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 lower thirds

    I am sure this has been covered, so I apologize.
    I learned video on Adobe Premiere, and the Pro versions had title templates with lower thirds already created. I also sometimes would draw a box on my title screen and color it accordingly to make my lower third.
    I like FCP 1000x times better, and since there are no lower third templates or title designer menus, I was wondering if someone could tell me how to make lower thirds in FCP. I prefer not to use Photoshop because I only have CS1 and it runs rather slowly in Rosetta on my machine.
    Thank you for the help.

    An easy way would be to make a new matte solid then crop it to create your shape. You then could adjust color, opactity, shadows, etc. You could also apply a mask to make other simple shapes or feather edges. Then lay your text on top.

  • I was able copy the hardrive of my old macbook from "My Passport" onto the desktop on an older iMac. but i dont know how to make my hardrive and user name be the main one since someone had used it in the past and had their info on the comp. please help!

    I recently broke my 2008 macbook. i was able to use an external hardrive to back up my data onto My Passport. I was going to buy a new computer but a friend told me sher had an older version of the iMac. (not sure how old but it doesnt have a camera if that helps) i was able to hook it up and turn it on but i ran into a few problems. 1) the "authentic" user or whatever it says is someone who previously used the computer. i added me as a user but im not sure how to make me the main user. 2) after hooking up My Passport, i was able to drag my files and copy them to the desktop.(i think i did it correctly) now, i dont know how to make my hard drive and applications and iformation the "main " info. The current apps on the iMac are super old versions of iTunes and iPhoto and such. 3) while trying to open the apps from my macbook on the iMac, it said it didnt have the right software to open these apps.
    I am so computer illiterate so someone please help!!! Also, i do not have internet in my new apartment yet so if there is a way to make this happen without using the internet that would be preferred. sorry for the horrible spelling and poorly written paragraph.
    THANK YOU!!

    You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
    You need to get a new computer or a refurbished one.

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to make downloadable links in Adobe Muse

    I am new to website design and am trying to figure out how to make downloadable links for some PDF flyers, PSD templates I am creating.   Not sure if "downloadable links" is the correct term for what I'm trying to say but in a nutshell I am creating Business Flyer's in PDF form and Photoshop PSD template files that I would like to be able to have my users click a link that allows them to download them right to their desktop.  Any help would really be appreciated!

    Hi caybar10gaming,
    I had the same question as you and was searching online for how to add "downloadable links" as well so your not alone in that lol. Anyways, I found this video that explains how to do this. I hope this helps you, as it did me. Good Luck  
    http://tv.adobe.com/watch/muse-feature-tour/add-and-link-to-any-type-of-file/
    -Caitlin

  • I cannot figure out how to make the text larger on an incoming email.  The finger method doesn't work and I cannot find any toolbar with which to do it.  I could find nothing in settings also.  Plese help and thank you.

    I cannot figure out how to make the text larger in a received email.  The finger method doesn't work and I can find no tool bar as I can for composing emails.  I can find nothing in settings.  Please help and thank you in advance.

    Hi there,
    Download a piece of software called TinkerTool - that might just solve your problem. I have used it myself to change the system fonts on my iMac. It is software and not an app.
    Good wishes,
    John.

  • How to make numbers in message text input  fields left aligned?

    Hi Friends
    I have completed one of my task .but getting result right side of the field.
    how to make numbers in message text input  fields left aligned?
    Thanks
    Aravinda

    Hi ,
    Sorry for late replay i am trying this alos not set that page....
    pageContext.forwardImmediatelyToCurrentPage(null, true, null);
    and one more that kff field working is fine for ex display any text pled displayed properly and only problem is not set the value and HrSitKeyFlex6 and HrSitKeyFlex7 fields are perfectly get the values but not pront HrSitKeyFlex8 that only my issue....
    Regards,
    Srini

Maybe you are looking for