Total members 11894 |It is currently Sun Nov 24, 2024 1:42 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





i am need to create a Splash Screen for my java Application...
My application in designed in IDE Netbeans 6.8
Can any one have idea how to create Splash Screen?





Author:
Newbie
User avatar Posts: 4
Have thanks: 0 time

what about progress bar .
or you want only to have image while loading something .

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

msi_333 wrote:
what about progress bar .
or you want only to have image while loading something .



Ya need that too...


Author:
Newbie
User avatar Posts: 4
Have thanks: 0 time

ya need both , Splash Screen along with progress bar...


Author:
Newbie
User avatar Posts: 4
Have thanks: 0 time

To create a progress bar :
Code:

JProgressBar progessObj 
= new JProgressBar();
 

java-gui/progress-dialog-t6906.html

to draw a image just use the paint function to put image ,
Code:

import java
.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Toolkit;
import javax.swing.JFrame;

public class 
FrameImage extends JFrame {

    public 
FrameImage(){
        
setSize(500,500);
        
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
setVisible(true);
    }
    @
Override
    
public void paint(Graphics g) {
        
Graphics2D g2 = (Graphics2Dg;

        
Image img1 Toolkit.getDefaultToolkit().getImage("image.gif");
        
// draw the image at postion 0,0
        
g2.drawImage(img100this);
        
g2.finalize();
    }
    

}
 


_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

For this message the author DrRakha has received gratitude : aravindragu

I was also trying to create splash screen but unable cause i don't have enough knowledge but now i read all the codes very carefully from sir msi_333 and now i will try them.

thanks

_________________
:)


Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
Post new topic Reply to topic  [ 6 posts ] 

  Related Posts  to : Splash Screen
 Screen Capture and multicast     -  
 full Screen Graphics     -  
 My Header is Not Fitting to the Screen!     -  
 Full Screen graphics (Lesson 2).     -  
 MacBook Pro Turned Into a Blue Screen     -  
 how to screen scrape or grab some parts of a website?     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com