Title: How to give transparency effect to JFrame?

Hai,
we are developing stand alone application using java swing. In our application we need to show an image in JFrame. We draw an image in JPanel using JPanel's paintComponent method. Then we place this JPanel into JFrame. The image is having transparent effect. But we are not able to give transparency effect to JFrame so we couldn't see desktop we are seeing only JFrame's background. *{color:#0000ff}How to give transparency effect to JFrame?*
*{color}*
Thanks for your help.

It's not a commited part of the standard API yet, but as of 1.6_10 you can add transparency effects to a window through the use of
com.sun.awt.AWTUtilitiesI think this was the original article on the release. If you google, you will find many creative ideas that people have come up with using this particular feature.

Similar Messages

  • How can give reverse effect of mask in image's bitmap ?

    Hello ,
    I want to mask reverse in image bitmap.
    I find below post for mask reverse in spark group using graphics rectangle.
    http://forums.adobe.com/message/2885005
    Is there any way to mask some porsion in image ?
    i also want that when we are masking in image then only masking object's part is visible can we do reverse effect i mean other portion of the image is visble and only mask object portin is invisible.
    Thanks in advanced if anybody have idea about this.
    Hello friends, anyone have idea about this ?

    That question is far too broad. It's like asking 'How big is big?' It depends on what you're talking about. Or in this case, what you consider a 'nice effect'.
    Surf the internet. Find some photos that have a look you like -- something similar to what you would want to do with your photos. Then you can at post one or two of those samples here and give us some idea of what you want to do.
    --OB

  • How to give nice effect to band photo?

    I am playing in a coverband (Day Out) and my brother made some really nice photo's of one of our live performances. Before I put the photo's on our website (http://www.dayoutcoverband.nl) I would like to give a nice effect to the photo's.
    I just started using Photoshop and need some help:
    - Can you recommend filters that are useful for this type of photo's?
    - How can I make the photo's more special? Any suggestions for editing?
    - Can you recommend tuturials?
    Please find below some examples of the photo's
    I am lokking forward to you suggestions

    That question is far too broad. It's like asking 'How big is big?' It depends on what you're talking about. Or in this case, what you consider a 'nice effect'.
    Surf the internet. Find some photos that have a look you like -- something similar to what you would want to do with your photos. Then you can at post one or two of those samples here and give us some idea of what you want to do.
    --OB

  • How to give Alpha Effect !!!

    I have seen this effect at the harvard business school site
    and now trying to copy it for my site ...
    The site is :-
    Harvard Business Site
    The effect is on the main picture, at the right side of it;
    where there are links of "Apply", "Financial Aid" ....
    Now if you notice the backside of the links, it is the part
    of the big picture but this part has been given a black shade
    (Alpha shade).
    How can I do that !!!
    I did it through Alpha, but that is too light and this effect
    is more dark.
    Help please.

    I am sorry, but how do I change the opacity ?

  • How to give blinking effect to browser window in task bar from my applet

    i am doing a chat project and want to give a visual notification to the user if a new message comes and his browser window is minimised. Something that the yahoo messenger provides

    I have not yet tried to implement this, but I've heard that one can access the windows system try by sending a message from a javascript. I don't know about the security implications. I'll bet a signed applet is required.
    Check this out:
    http://www.chebucto.ns.ca/~aa529/tray42.html
    It's kind of a strange page.

  • Transparent effect

    hi can anyone show me how to apply transparent effect to 3d object/simple object like glass in illustrator cs4 plz

    As you can see:
    Individual surfaces do interact transparently; even inside and outside surfaces of the same path.
    Mapped Symbol is opaque and interacts correctly with the translucent surfaces. (Symbol can be made to assume transparency of the surface to which it's mapped by turning on Shade Artwork.)
    Different transparency can be applied to separate paths within the same Revolved Group, and/or to individual Strokes and Fills of the same path. (Rendering aberations are likely, depending upon geometry.)
    It is not necessary to expand, ungroup, etc., etc. (The Revolve object below is still completely live and rotateable.)
    In other words, Opacity can be applied at the Appearance level or the object level, either before applying the 3D Effect or after.
    Also, Draw Hidden Faces is turned off in the drawing below. (Faces are not hidden if they are visible through a translucent surface.)
    Making something "look like glass" however, involves more than just applying Illustrator's 3D Effect to translucent paths (and can be rendered with or without 3D Effect; and with or without transparency effects). Convincing glass rendering is like convincing rendering of any other shiny surface: It involves judicious drawing of highlights and reflections, not just one-click, instant-gratification effects.
    JET

  • BEx Analyzer - Workbook - How to give a title.

    How to give a title for a field which shows both Key and text in the Workbook. Generally we have the title for the key column but how to give a title name for the text column in the workbook.Please Advise.

    Hi ,
    I suppose you cannot save the macros (written by you) in BexAnalyzer.xla as that is the standard interface provided. When you write some macros related with workbook and want it to be executed each time you refersh. You can do that by providing the macros name in execute macro on each refresh under  Workbook properties tab in Bex design toolbar. or you can write that macros code under default workbook in VB editor under your VBA project related to your workbook.
    hope it helps
    with regards
    Rohit Gupta

  • How to make an effect stop and start again?

    How do I make an effect start stop and than start again?
    I'm trying to blur faces (I finally figured out how to do that---copy the video to a 2nd layer and use the mosiac and crop effects) but how do I make the effect only appear when the face is in the screen as multiple times throughout the video clip the subjects face goes off camera.  In the effect controls window it doesn't give me an option to add a blank keyframe.
    Any advice on how to have this effect start/stop multiple times in one clip??
    Thanks

    If the effect isn't keyable, try keyframing the transparency of the copy with the effects on it.

  • How to set a   background for jFrame?

    Hai.i have a code for background image.i.e
    * TextOver.java
    * Created on June 23, 2008, 1:53 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.imageio.ImageIO;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class TextOver
    private static final String IMAGE_PATH =
    "http://upload.wikimedia.org/wikipedia/commons/b/b5/HMS_Cardiff_%28D108%29_1.jpg";
    private BufferedImage image;
    private JTextArea textarea = new JTextArea(20, 40);
    private JPanel mainPanel = new JPanel()
    @Override
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    if (image != null)
    g.drawImage(image, 0, 0, this);
    public TextOver()
    URL imageUrl;
    try
    imageUrl = new URL(IMAGE_PATH);
    image = ImageIO.read(imageUrl);
    Dimension imageSize = new Dimension(image.getWidth(), image.getHeight());
    mainPanel.setPreferredSize(imageSize);
    JScrollPane scrollpane = new JScrollPane(textarea);
    textarea.setOpaque(false);
    scrollpane.setOpaque(false);
    scrollpane.getViewport().setOpaque(false);
    mainPanel.add(scrollpane);
    catch (MalformedURLException e)
    e.printStackTrace();
    catch (IOException e)
    e.printStackTrace();
    public JPanel getPanel()
    return mainPanel;
    private static void createAndShowGUI()
    admin_login_code a=new admin_login_code();
    a.setVisible(false);
    JFrame frame = new JFrame("TextAreaOverImage Application");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(new TextOver().getPanel());
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(false);
    public static void main(String[] args)
    javax.swing.SwingUtilities.invokeLater(new Runnable()
    public void run()
    createAndShowGUI();
    i want to give this backgground to my existing jFrame something like
    import java.sql.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class admin_login_code extends javax.swing.JFrame {
    String admin_name;
    String password;
    Connection con;
    Statement stmt;
    ResultSet rs;
    public admin_login_code() {
    initComponents();
    jPasswordField1.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    char c = e.getKeyChar();
    if (!(Character.isDigit(c) ||
    (c == KeyEvent.VK_BACK_SPACE) ||
    (c == KeyEvent.VK_DELETE))) {
    getToolkit().beep();
    e.consume();
    jFormattedTextField1.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    char c = e.getKeyChar();
    if (!(Character.isLetter(c) ||
    (c == KeyEvent.VK_BACK_SPACE) ||
    (c == KeyEvent.VK_DELETE))) {
    getToolkit().beep();
    e.consume();
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    jLabel1 = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    jFormattedTextField1 = new javax.swing.JFormattedTextField();
    jLabel4 = new javax.swing.JLabel();
    jPasswordField1 = new javax.swing.JPasswordField();
    jPanel2 = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36));
    jLabel1.setForeground(new java.awt.Color(255, 0, 0));
    jLabel1.setText("ADMIN LOGIN");
    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 24));
    jLabel2.setText("Admin Name");
    jFormattedTextField1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jFormattedTextField1ActionPerformed(evt);
    jLabel4.setFont(new java.awt.Font("Tahoma", 1, 24));
    jLabel4.setText("Password");
    jPasswordField1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jPasswordField1ActionPerformed(evt);
    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel1Layout.createSequentialGroup()
    .add(39, 39, 39)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jLabel4)
    .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 161, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(43, 43, 43)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPasswordField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)
    .add(jFormattedTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE))
    .addContainerGap())
    jPanel1Layout.setVerticalGroup(
    jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel1Layout.createSequentialGroup()
    .add(47, 47, 47)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(jFormattedTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(60, 60, 60)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jLabel4)
    .add(jPasswordField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    jButton1.setText("Login");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton1ActionPerformed(evt);
    jButton3.setText("Exit");
    jButton3.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton3ActionPerformed(evt);
    org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
    jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup()
    .add(38, 38, 38)
    .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 110, Short.MAX_VALUE)
    .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(55, 55, 55))
    jPanel2Layout.setVerticalGroup(
    jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel2Layout.createSequentialGroup()
    .add(38, 38, 38)
    .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .addContainerGap(30, Short.MAX_VALUE))
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(574, 574, 574)
    .add(jLabel1))
    .add(layout.createSequentialGroup()
    .add(459, 459, 459)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
    .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
    .addContainerGap(521, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(149, 149, 149)
    .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 66, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(43, 43, 43)
    .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(42, 42, 42)
    .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addContainerGap(250, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    private void jPasswordField1ActionPerformed(java.awt.event.ActionEvent evt) {
    private void jFormattedTextField1ActionPerformed(java.awt.event.ActionEvent evt) {                                                    
    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    Object src=evt.getSource();
    if(src==jButton3)
    dispose();
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    Object src=evt.getSource();
    if(src==jButton1)
    admin_name=jFormattedTextField1.getText();
    password=jPasswordField1.getText();
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcle","scott","root");
    stmt=con.createStatement();
    rs=stmt.executeQuery("select admin_name,password from admin_registration where admin_name='chandana' and password='8989' ");
    while(rs.next())
    if(admin_name.equals(rs.getString(1))&&password.equals(rs.getString(2)))
    admin_registration a=new admin_registration();
    a.setVisible(true);
    dispose();
    else
    JOptionPane.showMessageDialog(null,"Please enter admin name & password ");
    catch(ClassNotFoundException e)
    e.printStackTrace();
    catch(SQLException e)
    e.printStackTrace();
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    admin_login_code a=new admin_login_code();
    a.setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton3;
    private javax.swing.JFormattedTextField jFormattedTextField1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPasswordField jPasswordField1;
    // End of variables declaration
    Can any one can help me how to set a background for jFrame?
    Thank you in advance.
    Edited by: forums.com on Jul 14, 2008 1:40 AM

    90% of the code you posted is not relevant to your question.
    If you want further help post a Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the problem.
    And don't forget to use code tags when posting code.

  • How to give backgound color

    H All :
    I am using collection in my application for textbox
    HTMLDB_ITEM.TEXT(2,null,30,500,''style="background-color: RED"'')
    i am using this which give me the red in color background effect
    i am using
    HTMLDB_ITEM.DISPLAY_AND_SAVE(2,null,30,500)
    how to give a background or a fore ground color this item
    please suggest
    Thanks
    Sudhir

    It's actually quite easy.
    What you have to do is write a custom tree cell renderer which extends DefaultTreeCellRenderer. In that class, your getTreeCellRenderer() method should do something like the following:
    public Component getTreeCellRendererComponent(
        JTree tree, Object value, boolean selected,
        boolean expanded, boolean leaf, int row, boolean hasFocus )
            Component treeCellRenderer =
                  super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
            if (selected) {
                setForeground(Color.WHITE);
                setBackground(BACKGROUND_SELECTION_COLOR);
            } else {
                treeCellRenderer.setForeground(Color.RED);
            return treeCellRenderer;
    Then you'll need to make sure that you call myTree.setCellRenderer(new CustomTreeCellRenderer());
    cheers,
    Greg

  • How to show asterisk * effect once the user starts editing the document??

    I wrote a java text editor. I creat a new internal frame and allows to open a document.
    How to have an effect (an asterisk * follows the filename in title bar) once
    the user starts editing the document? And once I save that file, that asterisk * will
    disappear. It seems to me we need to add a listener, but not sure how to change
    the title bar of internal frame??

    just use DocumentListener like
    myTextArea.getDocument().addDocumentListener(new DocumentListenet(){
    public void changedUpdate(DocumentEvent e){
    frame.setTitle( frame.getTitle() + "*" );
    implements two other methods too

  • How to get transparency scroll bar to view background image of canvas.

    HI, 
    How to get transparency to path in canvas to view background image in canvas using scroll bar control.?
    This is my present output:
    My Xaml Code:
    <Grid Height="auto" Name="grid1">
    <TabControl Background="Bisque">
    <TabItem Header="Tools">
    <Grid Height="1000" Width="1000" Name="grid">
    <Border BorderThickness="0.2" BorderBrush="Black" Height="820" Width="820" ClipToBounds="True" Margin="90,99,90,81"></Border>
    <Grid>
    <Button Content="Original Size" Height="23" Name="btn_Original" Width="75" Click="btnOriginalSizePosition" Margin="4,4,921,973" />
    <TextBox Height="20" HorizontalAlignment="Left" Margin="62,49,0,0" x:Name="txtNoOfZones" VerticalAlignment="Top" Width="49"
    MaxLength="2" PreviewTextInput="txtNoOfZones_PreviewTextInput"/>
    <TextBox Height="20" HorizontalAlignment="Right" Margin="0,71,890,0" x:Name="txtSec" VerticalAlignment="Top" Width="49" PreviewTextInput="txtSec_PreviewTextInput" MaxLength="3"/>
    <Button Content="OK" Height="32" HorizontalAlignment="Left" Margin="117,59,0,0" Name="btnNoOfZones" VerticalAlignment="Top" Width="39" Click="btnNoOfZones_Click" />
    <Label Content="Zone Number selected :" Height="28" HorizontalAlignment="Right" Margin="0,0,451,0" Name="lblZone" VerticalAlignment="Top" />
    <Label Content="Sector Number in selected Zone :" Height="28" HorizontalAlignment="Right" Margin="364,22,451,0" Name="lblSector" VerticalAlignment="Top" />
    <Label Content="Filled Color applied in selected sector :" Height="28" HorizontalAlignment="Right" Margin="336,44,451,0" Name="lblColor" VerticalAlignment="Top" />
    <Label HorizontalAlignment="Left" Margin="569,0,0,0" Name="lblZoneNumber" Height="28" VerticalAlignment="Top" />
    <Label Height="28" HorizontalAlignment="Left" Margin="569,22,0,0" Name="lblSectorNumber" VerticalAlignment="Top" />
    <Label Height="30" HorizontalAlignment="Left" Margin="569,44,0,0" Name="lblFillColor" VerticalAlignment="Top" FontWeight="Bold"/>
    <Label Content="Sectors :" Height="28" HorizontalAlignment="Left" Margin="7,67,0,905" Width="69" />
    <Label Content="Zones :" HorizontalAlignment="Left" Margin="13,44,0,928"/>
    <TextBlock Height="23" HorizontalAlignment="Left" Margin="4,32,0,0" Text="Change No.of Zones, sectors below and click OK button" VerticalAlignment="Top" Width="294" FontFamily="Cambria" FontSize="12" FontStyle="Italic" FontWeight="Bold" />
    <RadioButton Content="Single Sector" Height="16" HorizontalAlignment="Left" Margin="744,24,0,0" Name="rBtnSingleSector" VerticalAlignment="Top" GroupName="Selection"/>
    <RadioButton Content="Sector Zone" Height="16" HorizontalAlignment="Left" Margin="744,44,0,0" Name="rBtnSectorZone" VerticalAlignment="Top" GroupName="Selection"/>
    <RadioButton Content="Circular Zone" Height="16" HorizontalAlignment="Left" Margin="744,64,0,0" Name="rBtnCircularZone" VerticalAlignment="Top" GroupName="Selection"/>
    <RadioButton Content="Panning" Height="24" HorizontalAlignment="Left" Margin="744,4,0,0" Name="rBtnPanning" VerticalAlignment="Top" Width="74" GroupName="Selection"/>
    <Border x:Name="clipBorder" BorderBrush="Black" BorderThickness="0" ClipToBounds="True" Height="810" Width="810" Margin="95,104,95,86" CornerRadius="10">
    <Canvas x:Name="CanvasPanel" Height="800" Width="800" Background="Transparent" ClipToBounds="True"></Canvas>
    </Border>
    <RadioButton Content="Random Color" HorizontalAlignment="Left" Margin="868,5,0,979" Name="rdBtnRandomColor" GroupName="rdbtnGroupFillColor"/>
    <RadioButton Content="Red Color" Height="16" HorizontalAlignment="Left" Margin="868,24,0,0" Name="rdBtnRedColor" VerticalAlignment="Top" GroupName="rdbtnGroupFillColor" Foreground="#FFF81010" FontWeight="Bold" />
    <RadioButton Content="Green Color" Height="16" HorizontalAlignment="Left" Margin="868,44,0,0" Name="rdBtnGreenColor" VerticalAlignment="Top" GroupName="rdbtnGroupFillColor" Foreground="#FF175F17" FontWeight="Bold" />
    <RadioButton Content="Adjacent" Height="16" HorizontalAlignment="Left" Margin="435,81,0,0" Name="rdBtnAdjacent" VerticalAlignment="Top" GroupName="Selection" />
    </Grid>
    </Grid>
    </TabItem>
    <TabItem Header="Change Background">
    <Grid Height="1000" VerticalAlignment="Top" Background="Bisque">
    <Button Height="70" Width="70" Margin="6,1,892,929" Name="btnBrowseImage" Click="btnAll">
    <Image x:Name="browseIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\img.png" MouseLeftButtonDown="Image_MouseLeftButtonDown_1"/>
    </Button>
    <Button Height="70" Width="70" Margin="92,1,806,929" Name="btnCenterPoint" Click="btnAll">
    <Image x:Name="centerIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\center.jpg" Width="54" Height="48" />
    </Button>
    <Button Height="70" Width="70" Margin="179,1,719,929" Click="btnAll">
    <Image x:Name="boundaryIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\Path_Simple.png" Height="44" Width="49" />
    </Button>
    <Image Name="imgBackground" Height="800" Width="800" MouseLeftButtonDown="imgBackground_MouseLeftButtonDown">
    </Image>
    </Grid>
    </TabItem>
    </TabControl>
    </Grid>
    C# code:
    OpenFileDialog op = new OpenFileDialog();
    ImageBrush ib = new ImageBrush();
    private void Image_MouseLeftButtonDown_1(object sender, RoutedEventArgs e)
    op.Title = "Select a picture";
    op.Filter = "All supported graphics|*.jpg;*.jpeg;*.png|" +
    "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" +
    "Portable Network Graphic (*.png)|*.png";
    if (op.ShowDialog() == true)
    ib.ImageSource = new BitmapImage(new Uri(op.FileName));
    imgBackground.Source = new BitmapImage(new Uri(op.FileName));
    CanvasPanel.Background = ib;
    Please help me out to get transparency for path in canvas to view background image in canvas.
    The complete code is in below link:
    https://onedrive.live.com/redir?resid=876CFAE94C306176!112&authkey=!AC1sQIYwyoRYT_o&ithint=file%2crar
    Regards,
    Viswa.

    Hi ViswAmmu,
    >>Please help me out to get transparency for path in canvas to view background image in canvas.
    If I'm not misunderstanding, I think you just need to loop through all Canvas.Children and set Opacity property for them:
    private void Image_MouseLeftButtonDown_1(object sender, RoutedEventArgs e)
    //Loop through all children items
    foreach(UIElement v in CanvasPanel.Children)
    v.Opacity = 0;
    op.Title = "Select a picture";
    op.Filter = "All supported graphics|*.jpg;*.jpeg;*.png|" +
    "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" +
    "Portable Network Graphic (*.png)|*.png";
    if (op.ShowDialog() == true)
    ib.ImageSource = new BitmapImage(new Uri(op.FileName));
    imgBackground.Source = new BitmapImage(new Uri(op.FileName));
    CanvasPanel.Background = ib;
    Screenshot:
    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 give Username and password when calling HTTP page?

    I have this code when i run this I get credentials error. How to give credentials .The authentication is set to windows in the https page. Means pop up will appear to get the credentials
    declare
    req UTL_HTTP.REQ;
    resp UTL_HTTP.RESP;
    value varchar2(1024);
    p_url varchar2(4000);
    OPT varchar2(1000);
    BEGIN
    dbms_output.put_line('');
    p_url:='http://www.xyz.com/';
    dbms_output.put_line(p_url);
    req := UTL_HTTP.begin_REQUEST(p_url);
    utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
    resp := utl_http.get_response(req);
    loop
    utl_http.read_line(resp, value, true);
    dbms_output.put_line(value);
    end loop;
    exception
    when utl_http.end_of_body then
    utl_http.end_response(resp);
    END;
    When i run this i get
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>401 - Unauthorized: Access is denied due to invalid credentials.</title>
    <style type="text/css">

    Basic authentication is set using the UTL_HTTP.Set_Authentication() call.
    If you are using a proxy and need procy authentication, you can set the username and password for proxy access, as part of the proxy URL. E.g.
    utl_http.set_proxy( 'http://proxyuser:[email protected]', null );NTLM (Windows NT LAN Manager) authentication is proprietary and not part of the HTTP specifications. If that is needed, try and use the username and password as part of the URL - or do some research on how to manually perform NTLM authentication.
    If you are using HTTPS, you need an Oracle Wallet with that server's certificate (making it a trusted certificate), and then set/use the wallet using the UTL_HTTP.Set_Wallet() call. See sample code in {message:id=10820182}.

  • Can anyone explain how to create this effect in Deamweaver and Fireworks?

    This site was oriinally done in dreamweaver - but the shadow
    effect was done
    outside of Dreamweaver. When I save to html and load into
    Dreamweaver it
    makes no sense to me.
    Can anyone explain how to create this effect in Deamweaver
    and Fireworks?
    http://www.fundflowsystems.com/test.php
    Thanks in advance,
    Joe

    Thank you so much...
    You is da bomb!
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > Yes - a blank (completely blank) page.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Ken Binney" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> Murray, one more favor if you would be so kind...
    >> Do you recall how this page degraded in Safari?
    >>
    >>
    http://www.binney.us/table-allcode.htm
    >>
    >>
    >> "Murray *ACE*"
    <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Nope. Sorry. You need a Mac.
    >>>
    >>> --
    >>> Murray --- ICQ 71997575
    >>> Adobe Community Expert
    >>> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >>> ==================
    >>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>> ==================
    >>>
    >>>
    >>> "Ken Binney"
    <[email protected]> wrote in message
    >>> news:[email protected]...
    >>>> Thanks Murray...
    >>>>
    >>>> Is there a way I can test for Safari on my
    PC XP ?
    >>>>
    >>>> "Murray *ACE*"
    <[email protected]> wrote in message
    >>>> news:[email protected]...
    >>>>> Fails in Safari, Ken.
    >>>>>
    >>>>> --
    >>>>> Murray --- ICQ 71997575
    >>>>> Adobe Community Expert
    >>>>> (If you *MUST* email me, don't LAUGH
    when you do so!)
    >>>>> ==================
    >>>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>>>> ==================
    >>>>>
    >>>>>
    >>>>> "Ken Binney"
    <[email protected]> wrote in message
    >>>>>
    news:[email protected]...
    >>>>>> Here is a solution requiring NO
    images.
    >>>>>> The CSS and the Javascript can
    easily made remote the page
    >>>>>>
    >>>>>> <!DOCTYPE HTML PUBLIC
    "-//W3C//DTD HTML 4.01 Transitional//EN"
    >>>>>> "
    http://www.w3.org/TR/html4/loose.dtd">
    >>>>>> <html>
    >>>>>> <head>
    >>>>>> <title>Shadow</title>
    >>>>>> <meta http-equiv="Content-Type"
    content="text/html;
    >>>>>> charset=iso-8859-1">
    >>>>>> <script
    type="text/javascript">
    >>>>>> var depth = 6 // in pixels
    >>>>>>
    >>>>>> // addLoadEvent t
    >>>>>> function addLoadEvent(func) {
    >>>>>> var oldonload = window.onload;
    >>>>>> if (typeof window.onload !=
    'function') {
    >>>>>> window.onload = func;
    >>>>>> } else {
    >>>>>> window.onload = function() {
    >>>>>> if (oldonload) {
    >>>>>> oldonload();
    >>>>>> }
    >>>>>> func();
    >>>>>> }
    >>>>>> }
    >>>>>> }
    >>>>>>
    >>>>>> addLoadEvent(function() {
    >>>>>>
    >>>>>> var a = document.all ? document.all
    >>>>>> document.getElementsByTagName('*');
    >>>>>> for (var i = 0;i < a.length;i++)
    >>>>>> if (a
    .className == "shadow") {
    >>>>>> for (x = 0;x < depth;x++) {
    >>>>>> var newSd =
    document.createElement("DIV")
    >>>>>> newSd.className = "shadow2"
    >>>>>> newSd.style.background = a.id
    >>>>>> newSd.style.width = a
    .offsetWidth + "px"
    >>>>>> newSd.style.height =
    a.offsetHeight + "px"
    >>>>>> newSd.style.left = a
    .offsetLeft + x + "px"
    >>>>>> newSd.style.top = a.offsetTop +
    x + "px"
    >>>>>> document.body.appendChild(newSd)
    >>>>>> }
    >>>>>> }
    >>>>>> }
    >>>>>> }
    >>>>>> );
    >>>>>>
    >>>>>> </script>
    >>>>>> <style>
    >>>>>> .shadow {
    >>>>>> border: 1px solid silver;
    >>>>>> padding: 2px;
    >>>>>> font: 10pt arial;
    >>>>>> position: relative;
    >>>>>> display: inline;
    >>>>>> background: white;
    >>>>>> z-index: 100
    >>>>>> }
    >>>>>> .shadow2 {
    >>>>>> overflow: hidden;
    >>>>>> position: absolute;
    >>>>>> filter: alpha(Opacity=15); /* modify
    to change the shade
    >>>>>> solidity/opacity, same as below */
    >>>>>> opacity: 0.1; /* firefox 1.5 opacity
    >>>>>> -moz-opacity: 0.2; /* mozilla
    opacity */
    >>>>>> -khtml-opacity: 0.1; /* opacity */
    >>>>>> z-index: 10
    >>>>>> }
    >>>>>> </style>
    >>>>>>
    >>>>>> </head>
    >>>>>>
    >>>>>> <body>
    >>>>>> <table width="800" border="0"
    align="center" cellpadding="0"
    >>>>>> cellspacing="0" class="shadow"
    id="#000000">
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> </table>
    >>>>>> </body>
    >>>>>> </html>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>> "Joe"
    <[email protected]> wrote in message
    >>>>>>
    news:[email protected]...
    >>>>>>>
    >>>>>>> This site was oriinally done in
    dreamweaver - but the shadow effect
    >>>>>>> was done outside of Dreamweaver.
    When I save to html and load into
    >>>>>>> Dreamweaver it makes no sense to
    me.
    >>>>>>>
    >>>>>>> Can anyone explain how to create
    this effect in Deamweaver and
    >>>>>>> Fireworks?
    >>>>>>>
    >>>>>>>
    http://www.fundflowsystems.com/test.php
    >>>>>>>
    >>>>>>> Thanks in advance,
    >>>>>>>
    >>>>>>> Joe
    >>>>>>>
    >>>>>>
    >>>>>>
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • How to give two spaces after new order in alv

    hi
    my issue is after every new order number they need two blank spaces, i know the procedure of giving new page for every new order but they need only two blank lines. (This is in ALV List format).
    second thing is how to give footer
    thanks

    hi
    use this variant of appendf for inserting blank lines
    Append INITIAL LINE TO ITAB.
    Effect
    Appends a new line to the end of the internal table itab. You can only use this variant with index tables (standard or sorted table).
    If you specify wa TO , the new line is taken from the contents of the explicitly specified work area wa.
    If you use INITIAL LINE TO, a line filled with the correct initial value for the type is added.
    If the part before itab is omitted, the new line is taken from the header line of the internal table itab.
    If you use the ASSIGNING <fs> addition, the field symbol, <wa>, points to the line you have just appended. If you use the REFERENCE INTO ref addition, the data reference, dref, is filled with the reference of the line you have just appended.
    If the target table itab is a SORTED TABLE, it must be sorted correctly after the append, otherwise a runtime error results.
    After the statement has been executed, the system field SY-TABIX is filled with the index of the last line in the table.
    Cheers
    Snehi

Maybe you are looking for

  • How to restore time machine backup without disturbing already installed app

    Hi! My school recently reconfigured/reformatted my macbook and install the school image. Now it is filled with applications that the school help us installed. Now how do i restore the backup that my time machine backups last time? Migration assistant

  • How do I create a network to pair with iPhone app "Remote"??

    I am trying to create a network so that the iPhone "Remote" app will connect to my iTunes library. I tried setting up my own network self-assigned IP. The app work great yesterday now for some reason the app is unable to find my music library. thanks

  • Able to create new instances in Platform Edition 9.0?

    According to the Platform Edition 9.0 docs http://docs.sun.com/app/docs/doc/819-3662/6n5s9hmtq?a=view , it is possible to create new instances using create-instance command. However, I encountered an invalid command error in asadmin when trying to in

  • resource-env-description can't be set in weblogic.xml

    hi guys , i've been troubled with this configuration problem. i am trying a very simple example to send messages from a servlet to a weblogic queue, but i cant configure the weblogic.xml properly. i've been reading a lot of information but i cant fin

  • Update failed on my N73

    A few days ago I attempted an update of my firmware using the NSU and it failed miserably. The download was a success but at about 80% of the installation the NSU prompted me that my phone had to be recovered. I was told to remove all power (includin