How Can I make A Dialog/Frame Transparent

Hi
I want to make a dialog or frame Transparent. Is it possible in java. Actually i want to add an gif image on the Frame container that image is in curve shape with transparency, and I want this transparency also on the Frame in the java application. I m using JFrame with setUndecorated(true). It will display image (just image) not any Frame behind it, I any one solves my problem to make a frame transparent.
Thanks
Khurram

Check out this link:
http://forum.java.sun.com/thread.jsp?forum=57&thread=490146
The program contained therein is really slick.
My hat is off to the coder.
Lance

Similar Messages

  • How can i make a still frame from imovie 11 using mpeg streamline clip

    How can I make a still frame from iMovie using mpeg stream clip?

    See my User Tip here.
    https://discussions.apple.com/docs/DOC-3231

  • How can I make a paragraph rule transparent?

    I have a requirement to use a paragraph rule but I need it to be transparent. I cannot figure a way to do this or via any other technique in indesign. In reality I want them to be included in a character or paragraph style.
    Your help is appreciated. I am on CS5.5 and an indesign veteran of some 12 years now...

    My method is a bit of a tricky method, but I think it works.
    Select the text frame, and choose Edit>Place and Link Story.
    You are given a Loaded Cursor with identical text.
    Place this in the exact same location and send it to the back.
    Give the text at the back a Paragraph Rule above, to suit. And give it a white rule.
    Change the Back Frame transparency to suit.
    Then Make sure your original text frame is on top.
    When you update the text in the main frame - then you can update the text via the Links panel so the rule behind suits
    Here's a file to test it with
    https://dl.dropbox.com/u/17210757/transtest.idml

  • How can i make a swing frame block?

    Hi,
    I have an application with several frames, before building a frame, I want to query the user about some information. So I build another Jframe, with some radio buttons, etc. and display that first.
    However, the new Jframe does not make the rest of the program block, and thus the other Jframe is still created immediately...is there a way to make the JFrame with the query info block, until it is closed?
    thanks!

    I am still a bit confused....here is what i am trying to do:
    dialogFrame.setVisible(true);
    System.out.println(submit);
    if(!submit)
    return;
    else
    submit = false;
    dialogFrame the JDialog...it is built like this:
    JRadioButton rButtons[] = new JRadioButton[3];
    JPanel rPanel = new JPanel(new GridLayout(0, 1));
    rButtons[0] = new JRadioButton("Use Milliseconds Scale");
    rButtons[0].setSelected(true);
    rButtons[0].setActionCommand("MS");
    rButtons[1] = new JRadioButton("Use Seconds Scale");
    rButtons[1].setActionCommand("SEC");
    rButtons[2] = new JRadioButton("Use Minutes Scale");
    rButtons[2].setActionCommand("MIN");
    for (int i = 0; i < 3; i++) {
    bGroup.add(rButtons);
    rPanel.add(rButtons[i]);
    dialogFrame.getContentPane().setLayout(new BorderLayout(10,10));
    dialogFrame.getContentPane().add(rPanel, BorderLayout.CENTER);
    dialogFrame.getContentPane().add(yes, BorderLayout.SOUTH);
    dialogFrame.pack();
    I put a button "yes" in there, and when the user clicks it, the boolean 'submit' goes true.
    But, as you can see above, when i set the dialog frame as visible, it does not block on that line of code, rather it prints out false...

  • How can I make a top layer "transparent" to the end-user?

    Hi guys,
    Got a quick question.
    I'm working on a custom card builder and was wondering if there was any way I could keep an uploaded image editable to the end user. The end-user will be able to choose what template they'd like to frame the image with. The problem is, even with transparency that chosen frame acts as a layer, and once the uploaded image has been placed onto the staging area, the end-user loosing the ability to edit/scale/skew that image. I'd like them to be able to still do that even with the template above their image.
    Can anybody think of a solution to this? Any and all advice is greatly appreciated.

    You'd literally need to chop each frame up. To keep things reasonable to update you can use Photoshop to slice the graphics, saving them to external PNGs to import in. If a frame has 4 edges, you cut out the 4 sides, import into Flash and reassemble them inside a single Sprite or MovieClip. Any area inside that sprite that has no actual objects will be true transparency and won't invoke a click action.
    Keep in mind, hitboxes are rectangular. If you have an oval frame where the edges require you to create bitmaps with transparency on their edges, that will be clickable. If you don't immediately understand what I mean by that just draw a circle in flash, convert to clip. Now draw your cursor around what you consider the 'top' portion of that frame and notice how much of the inner fill you also capture at the same time. That will all be clickable. So the user may "see" their picture behind the frame but when they click they accidentally get the frame instead.
    Picture worth a thousand words (random net image):
    If you cut this oval frame into 4 pieces (this being the top obviously), the transparent area you see in the frame will need to be part of the hitarea for the frame. That can be just as confusing to customers in this situation. If most of your frames have little to no transparency (very squared up) then it won't be a problem. Although just like the problem you're having now, any bitmap transparency WILL be clickable even if you cut the sides up. The center where there is no bitmap can be clicked through to mess with the picture behind the frame.
    This sort of makes the transparency detection a bit more desirable.

  • How can I make a FlashAlbumExporter background transparent?

    I really like the very cool FAE (as suggested on this most excellent forum) but the gui offers no choice as for background opacity. A little search on the net reveals a few ideas but none of them seem to work. I am using the following iframe code in iWeb:
    <iframe src=
    "http://www.bostruyephotos.com/Paso_Robles/index.html"
    style="width:1000px; height:900px;
    border-width:0px;
    border-color:#990033;
    border-style:solid;"
    scrolling="auto" >
    </iframe>
    I don't know if the bg transparency is controlled in this iframe code, in the index.html file created by FAE or in the xml file created by FAE. So far I have tried:
    Remove the background-color: #181818; from the index.html didn't make any difference.
    Adding <bgcolor transparency="0"> in the xml made simpleviewer not display at all.
    Another web site was discussing using html in the HTML snippet widget instead of iframe and it seems to address the transparency issue. But it seems rather old and is setup to use a movie instead of a photo album so I'm not sure how to convert it. Here is that code:
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=6,0,40,0"
    WIDTH="700" HEIGHT="700" id="MyMovieName">
    <PARAM NAME=movie VALUE="MyFlashMovie.swf">
    <param name="wmode" value="transparent">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=base VALUE=".">
    <EMBED src="MyFlashMovie.swf" quality=high WIDTH="700" HEIGHT="700"
    NAME="MyMovieName" ALIGN="" TYPE="application/x-shockwave-flash" wmode="transparent" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" base=".">
    </EMBED>
    </OBJECT>
    Any idea how I can make this bg transparent so my bg will show behind the photos instead of the default dark grey?
    The current version is here in case that helps:
    http://www.bostruyephotos.com/Gallery/Cruising.html
    Thanks for any help.
    Bo

    If that's what you're doing, then just turn off the visibility of the layer that you made the selection on - most likely the BG layer by clicking on the eye icon in the layer's pallet.  You change the bg layer, as I mentioned above, and after you make your selection, click on the add layer mask icon in the layer's pallet,  This will add a layer mask with your selection.  If you hold alt/opt while doing this, it will create a inverse layer mask.

  • How can I make a tabbed pane transparent ?

    I have a tabbed pane placed on a JPanel with an image background. I added a tabbed pane with tabbedPane.setOpaque (false), however I still can't see the image behind the components that were added as tabs in the tabbedpane. Any help will be greatly appreciated.
    Here's a simplified version of the code:
    public class Example extends JPanel {
         public Example() {
              tabs = new JTabbedPane();
              tabs.setOpaque (false);
              JPanel tp1 = new JPanel();
              tp1.setOpaque(false);
              tabs.addTab ("panel 1", tp1);
              this.add (tabs);
         public void paintComponent(Graphics g) {
              // Paint background image
              g.drawImage(...);
    }

    Perhaps the opaque property is internally overset by the tab pane.
    Try this:
       public class Example extends JPanel {
          public Example() {
             JTabbedPane tabs = new JTabbedPane() {
                public boolean isOpaque() {
                   return false;
             JPanel tp1 = new JPanel() {
                public boolean isOpaque() {
                   return false;
             tabs.addTab("panel 1", tp1);
             this.add (tabs);
          public void paintComponent(Graphics g) {
             // Paint background image
             g.drawImage(...);
       } Regards.

  • How do i make the old frame dissapear when i click a button for a new frame

    I have a program were you have 2 buttons in a frame. When you click on a choice a new frame pops up with another choice. I wanted to know how can i make the old frame dissapear after the user makes the choice and the new frame has come up?
    Thank you,
    Dan

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Frame extends JFrame implements ActionListener
         private JButton Three;
         private JButton Four;
         private JButton One;
         private JButton Two;
         static int num = 0;
    public Frame()
         JPanel p1 = new JPanel();
    getContentPane().add(p1);
         if(num == 0)
         p1.add(One = new JButton("Admin"));
         One.addActionListener     (this );
         p1.add(Two = new JButton("Buy"));
         Two.addActionListener     (this );
    if(num == 1)
         this.dispose();
         p1.add(Three = new JButton("Password"));
         Three.addActionListener (this);
    if(num == 2)
         p1.add(Four = new JButton("Product-ID"));
         Four.addActionListener(this);
    public void actionPerformed(ActionEvent e)
         if (e.getSource() == One)
              num = 1;
              Frame g = new Frame();
              g.pack();
              g.setVisible(true);
    if (e.getSource() == Two )
                   num = 2;
                   Frame h = new Frame();
              h.pack();
              h.setVisible(true);
         if(e.getSource() == Three )
              System.out.println("Password");
         if(e.getSource() == Four)
                   System.out.println("Product-ID");
    public static void main(String[] args)
         Frame frame = new Frame();
    frame.pack();
    frame.setVisible(true);

  • How can i make my scrollpane in a way that at the opening of a frame it doe

    How can i make my scrollpane in a way that at the opening of a frame it does not scroll down automatically?
    code is below
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.net.*;
    import javax.swing.JOptionPane.*;
    import java.io.*;
    import javax.swing.colorchooser.*;
    import javax.swing.filechooser.*;
    import javax.accessibility.*;
    import javax.swing.border.*;
    import java.sql.*;
    public class Signup extends JFrame
         JLabel p1,p2,p3,p4,p5,p6,uid,upass,cpass,fname,sname,hint,sl,ed,age,adr,cit,zip;
         JTextField uname,fnamet,snamet,hintt,adrt,adrt1,city,zipcode;
         JPasswordField upassw,cpassw;     
         JComboBox sex,education,agegr;
         Signup()
         Container c=getContentPane();
         c.setLayout(null);
         c.setBackground(Color.white);
         /** JPanel c = new JPanel();
         c.setBackground(Color.white);
         int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
         int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
         JScrollPane jsp = new JScrollPane(c, v, h); ***/
    p1=new JLabel("Create Your Icafe!ID",10);
         p2=new JLabel("Personal Information");
         p3=new JLabel("User Address");
         p4=new JLabel("Tell Us About Your Hobbiess (Optional) ");
         p5=new JLabel("Tell us something about what you like. This will help us choose the kind of content to display on           your pages.");
         p6=new JLabel("--------------------------------------------------------------------------------");
    uid=new JLabel("User Id");
         upass=new JLabel("Password");
         cpass=new JLabel("Confirmation Password");
         fname=new JLabel("UserName");
         sname=new JLabel("SurName");
         hint=new JLabel("Hint Question");
    sl=new JLabel("Sex");
         ed=new JLabel("Education");     
         age=new JLabel("Age Group");     
         adr=new JLabel("Address");
    cit=new JLabel("City");
    zip=new JLabel("ZipCode");
         uname=new JTextField(10);
         uname.requestFocus();     
         uname.setToolTipText("UserName");
    upassw=new JPasswordField(10);
         upassw.setToolTipText("Password");
         upassw.setEchoChar('*');
         cpassw=new JPasswordField(10);
         cpassw.setToolTipText("Confirmation Password");
         cpassw.setEchoChar('*');
         fnamet=new JTextField(10);
         fnamet.setToolTipText("FullName");
         snamet=new JTextField(10);
         snamet.setToolTipText("SurName");
         hintt=new JTextField(10);
         hintt.setToolTipText("Hint Question");     
    String[] gender={"[Select one]","Male","Female"};
         sex = new JComboBox(gender);          
    String[] edu={"[Select one]","S.S.C","Inter","Graduate","Post Graduate"};
         education= new JComboBox(edu);     
    String[] ageg={"[Select one]","0 - 15","16 - 35","36 - 70","70 - 100"};
         agegr= new JComboBox(ageg);     
    adrt=new JTextField(15);
         adrt.setToolTipText("Address");
         adrt1=new JTextField(15);
         adrt1.setToolTipText("Address");
         city=new JTextField(15);
         city.setToolTipText("City");
    zipcode=new JTextField(15);
         zipcode.setToolTipText("ZipCode");
         p1.setBounds(200,70,160,30);
         uid.setBounds(350,100,160,30);
         uname.setBounds(400,100,160,30);
         upass.setBounds(335,140,160,30);
         upassw.setBounds(400,140,160,30);
         cpass.setBounds(260,180,160,30);
         cpassw.setBounds(400,180,160,30);
         p2.setBounds(200,220,160,30);
         fname.setBounds(330,260,160,30);
         fnamet.setBounds(400,260,160,30);
         sname.setBounds(335,300,160,30);
         snamet.setBounds(400,300,160,30);
    hint.setBounds(315,340,160,30);     
    hintt.setBounds(400,340,160,30);
         sl.setBounds(370,380,160,30);     
         sex.setBounds(400,380,160,30);
         ed.setBounds(335,420,160,30);     
         education.setBounds(400,420,160,30);
    age.setBounds(330,460,160,30);
    agegr.setBounds(400,460,160,30);
    p3.setBounds(200,500,160,30);
         adr.setBounds(340,540,160,30);
         adrt.setBounds(400,540,160,30);
         adrt1.setBounds(400,580,160,30);
         cit.setBounds(370,620,160,30);
         city.setBounds(400,620,160,30);
    zip.setBounds(590,620,160,30);
    zipcode.setBounds(640,620,160,30);
         Font font = new Font("SansSerif",Font.BOLD, 12);
         setFont(font);
         c.add(p1);
    c.add(uid);
         c.add(uname);     
         c.add(upass);
         c.add(upassw);
    c.add(cpass);
         c.add(cpassw);
    c.add(p2);
    c.add(fname);     
         c.add(fnamet);
    c.add(sname);
    c.add(snamet);
         c.add(hint);
    c.add(hintt);     
    c.add(sl);
    c.add(sex);
    c.add(ed);
         c.add(education);
    c.add(age);
         c.add(agegr);
    c.add(p3);
    c.add(adr);
         c.add(adrt);
         c.add(adrt1);
    c.add(cit);
    c.add(city);
    c.add(zip);
    c.add(zipcode);
         setResizable(false);
         //int a=DO_NOTHING_ON_CLOSE;
         //setDefaultCloseOperation(a);
         show();
         setSize(800,500);
    // Border raisedBorder = new BevelBorder(BevelBorder.RAISED);     
         setContentPane(c);     
    public static void main (String arg[])
         try{
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
         }catch(Exception s)
         Signup swu=new Signup();

    just try the following:
    jsp.getVerticalScrollbar().setValue(0);after inserting and adding all your components. this will set the vertical scrollbar up to the very first line.
    regards

  • How can i make a  flowing toolbar that stays in front of the main frame?

    I want to make a toolbar that has to stay in front of one of my JInternalFrame, this toolbar will have two buttons and they will change the states of some TextPanes in the JInternalFrame (font,styles, etc.). How can i do so?? how can i make it flow on the internalFrame? how can i make it interact with the internal frame's components? and how can i associate both of them ( their 'actionPerform') ??
    thank's

    You can check for problems with the <b>places.sqlite</b> database file in the Firefox profile folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/

  • How can I make images transparent in my documents?

    I've got InDesign CS5.5 and like to save my banners, etc. that I create as a jpeg but when I try to use them on something else it has a white background.  How can I make sure the backgrounds are transparent?

    I didn't know that about the png in CS6.  Thanks for letting me know.
    Unfortunately, I don't have Photoshop.  I just recently purchased Photoshop Elements.  I haven't really done much on it as I have other projects I need to work on. Do you know if I would be able to convert in that program?
    Wish I could afford a newer version of InDesign but I can't.

  • How can I modify data from a Transparent Table without ABAP code.

    Hi,All
    How can I modify data from a Transparent Table (like TCURR),  and important thing is I want do all that with no ABAP code here. It is like that we always do that in a Oracle database use TOAD or PLSQL third party tools, with no script code here.
    I had fond that there is a way can do that:
    1, type 'se11',and Display Database table 'TCURR', click Contents, then click Execute to display all data
    2, type '/h' and let debugging on
    3, select one of this data then click 'Display',enter in debugging system.
    4, then make a breakpoint in the code. But... display a dialog let I type a 'ABAP Cmnds', I want to know what can be type in for that?
    and, My system is ECC6.
    thank you all
    Edited by: xuehui li on Aug 20, 2008 6:30 PM

    Hello,
    Your approach (with Vijay's suggestion) MAY work.  However, depending on how tight security is at the company that you are working at you may or may not be able to acutaly change the value of the SHOW field to EDIT.  This will be especially true if you are working in a Production environment.  Vijay's other comment is true as well.  This is not a recommended approach to change data (especially data with a financial impact like TCURR) in a production environment.  The auditors will not be impressed.
    Explore the option of a maintenace view or look at tcode TBDM to upload a file which includes daily rates from providers like Reuters or try tcode s_bce_68000174 which is a maintenance view on TCURR.
    Regards
    Greg Kern

  • How can I make a decorative page border in Pages?

    How can I make a decorative page border in Pages?

    Hi Janet,
    I suppose that you are asking how to include a decorative border of your design into a pages document. How you design that border is rather out of the range of these discussions. So, let's say that you have a graphic that approximates a picture frame and has the required dimensions to frame your content.
    If you want to have the graphic appear on every page, Drag or Insert > Choose, to incorporate your design in to the document. The position it as you want it, and then Arrange > Send to Background and Format > Advanced > Move Object to Section Master.
    If there is more than one section in your document, there may be more considerations, but if you do this at the outset in the creation of your document, the design of the first section will flow to subsequent sections.
    Regards,
    Jerry

  • How can I make a still photo from imovie

    How can I make a still photo from imovie?

    Let's assume you have iMovie 11 (Version 9). (If you have a different version, let me know. The instructions will be different.)
    First, get an app called MPEG Streamclip, which is free. (google MPEG Streamclip from Squared 5)
    Open MPEG Streamclip.
    In iMovie, select the clip you need. Then, right-click/Reveal in Finder.
    Drag this clip into MPEG Streamclip
    In MPEG Streamclip, move the playhead to the frame you want.
    In MPEG Streamclip, click FILE/EXPORT FRAME.
    Choose JPEG, TIFF, or PNG and give it a name.
    You can then drag this photo into iPhoto.
    I have created a short video Tutorial on how to do this. There is one error in the Tutorial, where it says that Command-click is the same as right-click. I should have said Control-click instead.

  • How can I make a palm tree sway?

    How can I make a palm tree sway?
    I have a palm tree that is a tiff file with alpha. I would like the tree trunk to bend a little and a few of the branches to sway as though it’s gently moving in the wind.
    What would be the easiest way to make that happen?
    Should I save the trunk and a few leaves as separate elements, and then animate them in motion.
    Or is there any way to turn my palm tree into a shape in motion, add edit points and key frames to animate it?
    Any advice would be appreciated.
    Thanks

    Down and dirty: highlight the tree's layer, move the anchor point to the base of the tree, add an Oscillate Behaviour to its Shear X axis. Adjust the Amplitude to 5, Speed to 7 or so, depending on how breezy the day is.

Maybe you are looking for

  • Problem with opacity on my Mac

    Hi there, I have some trouble with the opacity with my Mac. Since i bought it (january 2013), when I watch a video in full screen, in Quicktime or VLC, I saw in transparency the windows that I have in background (Safari, Mail or anything it's opened)

  • As a future game developer, how can I submit a standalone Mac game to the store?

    I'm just saving up for special software, and when I buy it, I'm going to get together with some friends to pump out a standalone game for Macs. And before we start development, I'm just wondering if and how I can get it onto the Mac App Store when it

  • PLE500 as a Single Item?

    I recently received my PLEK500 pair of powerline adapters.  Installation was simple, and throughput is good considering I'm using seperate circuits.  Now that I've proven that this technology will work for me, I'd like to expand to ONE additional loc

  • Why does "Find Next" in AW 6.2.9 stop working?

    Hi, I've been using ClarisWorks 4.0v6 database for many years (OS 7.6.1). I migrated them to AppleWorks 6.2.9 (OS 10.4.11, G4). They're ordinary postal mailing lists. However, *within 5 minutes to 2 hours, the "Find Next" function stops responding.*

  • My manage bookmark line has disappeared from my bookmarks menu. How can I get it back?

    on the dropdown "Bookmarks" menu tag on the firefox menu bar there used to be a line that read "Manage bookmarks. I used this to move the bookmarks around etc. That line.."Manage Bookmarks" is no longer on the list with "Bookmark this Page," "Show al