I need help guys... please help....

guys, is someone interested to help here? this is for our thesis.. this is an opengl program. i can send the whole program if you want.. but this is the most urgent and need the best help... ill be glad if you guys can help......
* Dice.java
* Created on 08 February 2007, 22:26
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package longgong;
import java.net.URL;
import gl4java.GLContext;
import gl4java.awt.GLAnimCanvas;
import gl4java.utils.textures.*;
* @author welcome
public class Dice {
GLAnimCanvas glCanvas ;
URL codeBase;
int[]texture1 = new int[1]; //Storage for one texture ( NEW )
int[]texture2 = new int[1]; //Storage for one texture ( NEW )
int[]texture3 = new int[1]; //Storage for one texture ( NEW )
int[]texture4 = new int[1]; //Storage for one texture ( NEW )
int[]texture5 = new int[1]; //Storage for one texture ( NEW )
int[]texture6 = new int[1]; //Storage for one texture ( NEW )
float rx;
float ry;
float rz;
float tx;
float ty;
float tz;
float speed;
boolean txMoveLeft;
boolean tyMoveUp;
boolean tzMoveFront;
/** Creates a new instance of Dice */
public Dice(GLAnimCanvas g) {
glCanvas = g;
if(!LoadGLTexture("c:\\java\\images\\one.png",texture1)){
System.out.println("Failed to load Textures,Bailing!");
System.exit(0);
if(!LoadGLTexture("c:\\java\\images\\two.png",texture2)){
System.out.println("Failed to load Textures,Bailing!");
System.exit(0);
if(!LoadGLTexture("c:\\java\\images\\three.png",texture3)){
System.out.println("Failed to load Textures,Bailing!");
System.exit(0);
if(!LoadGLTexture("c:\\java\\images\\four.png",texture4)){
System.out.println("Failed to load Textures,Bailing!");
System.exit(0);
if(!LoadGLTexture("c:\\java\\images\\five.png",texture5)){
System.out.println("Failed to load Textures,Bailing!");
System.exit(0);
if(!LoadGLTexture("c:\\java\\images\\six.png",texture6)){
System.out.println("Failed to load Textures,Bailing!");
System.exit(0);
txMoveLeft = true;
tyMoveUp = true;
public boolean inCircleBoundaries(float x, float y, float radius)
float r;
r = (float)Math.sqrt((x*x) + (y*y));
if (r <= radius)
return true;
else
return false;
public void setCoordinates(float corRx,float corRy,float corRz,float corTx,float corTy,float corTz){
rx = corRx;
ry = corRy;
rz = corRz;
tx = corTx;
ty = corTy;
tz = corTz;
public void getRandomDice(){
int num = (int)(Math.random() * 6);
if (num==1){
rx=0.0f;
ry=0.0f;
rz=0.0f;
else if (num==2){
rx=90.0f;
ry=0.0f;
rz=0.0f;
else if (num==3){
rx=0.0f;
ry=-90.0f;
rz=0.0f;
else if (num==4){
rx=0.0f;
ry=90.0f;
rz=0.0f;
else if (num==5){
rx=-90.0f;
ry=0.0f;
rz=0.0f;
else{
rx=180.0f;
ry=0.0f;
rz=0.0f;
public float getTx(){
return tx+0.5f;
public float getTy(){
return ty+0.5f;
public float getTz(){
return tz+0.5f;
public void setTz(float z){
tz=z;
public boolean getMoveLeft(){
return txMoveLeft;
public boolean getMoveUp(){
return tyMoveUp;
public void setMoveLeft(boolean m){
txMoveLeft = m;
public void setMoveUp(boolean m){
tyMoveUp = m;
public void startDiceMovement(){    
if (txMoveLeft==true) {
tx+=speed;
else {
tx-=speed;
if (tyMoveUp==true) {
ty+=speed;
else {
ty-=speed;
ry+=(speed*4);
rx+=(speed*4);
//rz+=(speed*2);
//tx+=speed;
//ty+=speed;
//tz+=speed;
if (inCircleBoundaries(tx,ty,3.5f)==false) {  
if (tx>=3.0f) txMoveLeft = false;
if (tx<=-3.0f) txMoveLeft = true;
if (ty>=3.0f) tyMoveUp = false;
if (ty<=-3.0f) tyMoveUp = true;
public void setSpeed(float s){
speed = s;
public void drawDice(){        
glCanvas.gl.glLoadIdentity();                                             // Reset The View
glCanvas.gl.glTranslatef(tx,ty,tz);
glCanvas.gl.glRotatef(rx,1.0f,0.0f,0.0f);
glCanvas.gl.glRotatef(ry,0.0f,1.0f,0.0f);
glCanvas.gl.glRotatef(rz,0.0f,0.0f,1.0f);
glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture1[0]);
glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
     // Front Face
glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, 1.0f);
glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, 1.0f);
glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, 1.0f);
glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, 1.0f);
glCanvas.gl.glEnd();
glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture6[0]);
glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
          // Back Face          
glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, -1.0f);
glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, -1.0f);
glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
glCanvas.gl.glEnd();
glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture2[0]);
glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
     // Top Face
glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, -1.0f);
glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, 1.0f);
glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, 1.0f);
glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, -1.0f);
glCanvas.gl.glEnd();
glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture5[0]);
glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
     // Bottom Face
glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, 1.0f);
glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, 1.0f);
glCanvas.gl.glEnd();
glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture3[0]);
glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
     // Right face
glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, -1.0f);
glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, 1.0f, 1.0f);
glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, 1.0f);
glCanvas.gl.glEnd();
glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture4[0]);
glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);
     // Left Face
glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, 1.0f);
glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, 1.0f);
glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, 1.0f, -1.0f);
glCanvas.gl.glEnd();
public boolean LoadGLTexture(String fileName, int textureNumber[])
PngTextureLoader texLoader = new PngTextureLoader(glCanvas.gl, glCanvas.glu);
if(codeBase!=null)
texLoader.readTexture(codeBase, fileName);
else
texLoader.readTexture(fileName);
if(texLoader.isOk())
//Create Texture
glCanvas.gl.glGenTextures(1, textureNumber);
glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, textureNumber[0]);
glCanvas.gl.glTexParameteri(glCanvas.gl.GL_TEXTURE_2D, glCanvas.gl.GL_TEXTURE_MAG_FILTER, glCanvas.gl.GL_LINEAR);
glCanvas.gl.glTexParameteri(glCanvas.gl.GL_TEXTURE_2D, glCanvas.gl.GL_TEXTURE_MIN_FILTER, glCanvas.gl.GL_LINEAR);
glCanvas.gl.glTexImage2D(glCanvas.gl.GL_TEXTURE_2D,
0,
3,
texLoader.getImageWidth(),
texLoader.getImageHeight(),
0,
glCanvas.gl.GL_RGB,
glCanvas.gl.GL_UNSIGNED_BYTE,
texLoader.getTexture());
return true;
return false;
}

im from university of st. la salle bacolod city.. this is for our thesis due on friday... this is a java program but with the opengl library to create graphics. i can send you all the files so that you can read it. but first, you need to have all the jar and lib of opengl in your pc to see the canvas. this is made up of three dice that supposed to bounce on the circle boundaries and with each other as well. i have to send you 3 files in order to work on that dice so that you can see the outcomes. so if you want, i can send to you these files on your email add if you want.. but it is ok for me to send it here also but i will just protion the three. but if you want, i can send it to your email add. just send me a message on my email add... [email protected]....
but if you want to read more about me... you can see me here...
http://tagged.com/memayem2
thank you very much....

Similar Messages

  • Would like to trace my ipod touch because I was robbed. I would find it please. need help from you guys. Not because I am able to get another. Thank you.

    would like to trace my ipod touch because I was robbed. I would find it please. need help from you guys. Not because I am able to get another. Thank you.

    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • I NEED help so daly if you guys can please please please help?????????

    I really need help... if you guys can help me out please i would greatly appreciate it i have a two year extended warranty on my ipad 3rd gen and i was robbed and hospitallized. the thing is i need it for my college classes is it possible that my warranty will cover me for a new one??????????????

    Try going to   www.icloud.com   and logging into your apple id.  If you have find my ipad on you may be able to track it down.  Warranty does not cover lost or stolen devices, and is strictly tracked by serial number.  At the very least you could try to do a data wipe.
    A positive spin is that your apps can be redownloaded for free on a new device if you can't find your older unit. 
    Good luck.  I hope you find it.

  • HT1766 guys, i need help. my iphone 4s lost everything. i got an email from "find my phone" saying that all will be erased. what can i do????  please help

    guys, i need help. my iphone 4s lost everything. i got an email from "find my phone" saying that all will be erased. what can i do????  please help

    How did u get that iphone? the original owner is screwing you via icloud account...

  • I purchased the gaming app from app store and I used it for some time but now suddenly the app is not working properly it's not starting properly and just dies down after the start and comes Back to homepage need help please guys help me out with this!

    Guys needed your help with my real racingHD game app it's not working properly even after paying for it I don't know why it's not working having trouble with it cause it won't star smooth need help guys

    Read Mitch's post on the sad ipod in this thread:
    http://discussions.apple.com/message.jspa?messageID=2369954#2369954

  • Hey Guys ! I need help on figuring out which MacBook Air to buy . Please Help Me !

    I Need Help Figuring Out Which MacBook Air To Buy.

    Avoid the MacBook Pro (non retina) unless you absolutely need to burn or read DVD/CD media on the road and don't want to carry around a small external optical drive. That leaves the MBA and the MBPr as your two choices. The Air's advantage is extreme portability and battery life - especially with the standard CPU. The MBPr's main advantage is its display. Both are perfectly good workhorse computers for school and work. Neither is especially good for gaming other than casual games. In fact many games don't support the Intel integrated video at all.
    Once you've decided on which model I strongly recommend that you have at least 8GB of RAM. How large a drive depends on how much you intend to stuff onto your computer. Using my MBA for home and work, which includes a minimal installation of Windows 7 for programming and verifying that websites look and behave acceptably on both platforms, I can fit everything I need on a 256GB drive but could never live on a 128GB drive. My wife, however, could have saved a little cash and gone with the 128GB model.

  • After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.

    After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.Urgent.TQ

    Izit software or hardware? Confuse:(
    Only can use wifi now.
    Any way thanks guys for ur suggestion:) amishcake and simes

  • Ok guys i need help my ipod touch froze during an update now i put it inot the recovery mode or dfu and it will not reset itself at all it comes up with an error code and says this ipod cannot reset now does anyone have any ideas of what to do with it

    ok guys i need help anyone with my ipod it froze during an update now it will not work at all i ahve put it into the recovery mode or dfu and  it will not reset it self it comes up with an error message 1603 the number is and says the ipod cannot be reset anyone please help me i have tryed everything googled you tubed everything

    Error 1604
    This error is often related to USB timing. Try changing USB ports, using a different dock connector to USB cable, and other available USB troubleshooting steps (troubleshooting USB connections. If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.
    If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue:
    Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode,put it into Recovery Mode.
    Restore and wait for the error.
    When prompted, click OK.
    Close and reopen iTunes while the device remains connected.
    The device should now be recognized in Recovery Mode again.
    Try to restore again.
    If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.
    Error 1600, 1601, 1602
    Error 1603
    Follow the steps listed above for Error 1604. Also, discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.If you do not want to remove the IPSW in the original user, try restoring in a new administrator user. If the issue remains, Eliminate third-party security software conflicts.

  • Image size and mime type.. non-java guy needs help

    Image size, mime type.. non-java guy needs help
    Im not at all familiar with java so this is really weird for me to work out. I?ve been doing it all day (and half of yesterday).
    Im trying to write a custom clodFusion tag in java that gets the width, height, size and MIME types of a given file. I?ve been trying to get it to work on the command line first. I can get the width and height but cant get the size and the MIME type.
    Here is what I got
    /*import com.allaire.cfx.*;*/
    import java.awt.image.renderable.*;
    import javax.media.jai.*;
    import com.sun.media.jai.codec.*;
    import java.io.*;
    import java.util.*;
    public class ImageInfo {
    private RenderedOp image = null;
    private RenderedOp result = null;
    private int height = 0;
    private int width = 0;
    private String type = "";
    private String size = "";
    public void loadf(String file) throws IOException
    file = "80by80.jpg";
    FileSeekableStream fss = new FileSeekableStream(file);
    image = JAI.create("stream", fss);
    height = image.getHeight();
    width = image.getWidth();
    System.out.println(height + "\n");
    System.out.println(width);
    System.out.println(type);
    public static void main(String[] args) throws IOException {
    ImageInfo test = new ImageInfo();
    test.loadf(args[0]);
    can anyone please help me out to modify the above so I can also print the mime type and the file size to screen.
    thanks for any help

    any suggestions?

  • I need help guys..

    i need help guys....
    Project Specification:
    Develop a software package using HTML, servlet for a company called BookWorm Pte Ltd. This company rents out its books to the general public. This software package allows them to check if books are available in the store. If books are not available, they can join as members and put a reservation for the book. A title can only be reserved by a member. Members are given a userid and password to perform this function.
    Features of program:
    Compulsory:
    1. A main page allowing user to select what they want to do.
    2. For the general public, the program must be able to separately:
    a.      Display all titles in the store. It should include current quantities in the store and status of each title. i.e. Available, on loan, Reserved by someone.
    b.      Display only books that are available for loan.
    c.      Display books that are out on loan but are available for reservation. (These books are not reserved by anyone yet.)
    3. For members of the book store, the program must be able to:
    a.     Request user for userid and password.
    b.     Reserve a book that is out on loan but not reserved by anyone else.
    c.     Cancel his/her reservation.
    d.     View the books he/she has reserved so far.
    Additional:
    1. For book store administrator, the program can:
    a.     Request administrator userid and password.
    b.     Add/Remove members.
    c.     Update members� userid and password.
    d.     Change administrator�s password.
    e.     Change quantity of books whenever it is return or loan out.
    f.     Remove or add in new titles.
    g.     � etc... Features you think are helpful to administrator�
    2. For members, the program can:
    a.     Allow users to send comments to administrator.
    b.     View all books he/she has rented so far.
    c.     Reserve for books already reserved by other members.
    d.     � etc� Features you think are helpful to members�
    Required Database:
    You will need a database with two tables to store information on books and members. Please create the database & tables with the exact names shown below. You can use your own names for any additional tables or fields in the database.
    Microsoft Access Database
    Database name: BookWorm Pte Ltd.mdb
    Table for storing books information:
    Table name for Books: BookRec
    Structure of table for compulsory features:
    Field Name     Type     Explanation
    Title     Text     Title of book
    Author     Text     Author�s name
    Price     Currency     Cost of rental
    Qty      Number     Current quantity in store
    ResvUserID     Number     For storing of member�s userid if reserved by him/her
    Table name for Members: UserRec
    Structure of table for compulsory features:
    Field Name     Type     Explanation
    UserID     Number     Member�s userid
    UserName     Text     Member�s name
    Password     Text     Member�s password

    There's an old saying at the forum:
    Do your homework yourself.
    Post only if you are stuck somewhere... no spoon-feeding.

  • Hi guys need Help with Displaying Splash Screen?!!?

    Hi Guys.
    Sorry for the last incomplete post my mistake!
    I need help displaying a splash screen as an advertisment or something before i have my main application run.
    Here is the code i wrote (it works as if it were a seperate application)
    package MajourProject;
    import java.awt.AWTException;
    import java.awt.Dimension;
    import java.awt.Robot;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    * @author Matt
    public class SplashScreen extends JWindow
        public SplashScreen()
            int UpTime = 20000;
            Start(UpTime);
        public void Start(int UpTime)
            ImageIcon ii = new ImageIcon("src/1.jpg");
              JScrollPane jsp = new JScrollPane(new JLabel(ii));
                    JProgressBar Bar = new JProgressBar();
              getContentPane().add(jsp);
              setSize(853,303);
              centerScreen();
              setVisible(true);
                   try
                                Thread.sleep(20000);
                               dispose();
                   catch(Exception IE)
            private void centerScreen()
                    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
                    int x = (int) ((d.getWidth() - getWidth()) / 2);
              int y = (int) ((d.getHeight() - getHeight()) / 2);
              setLocation(x, (y-100));
           public static void main(String [] args)
                 new SplashScreen();
    }but i now have a problem as i already have a main application done as i wrote this seperately. I now need to combine the two together. So what i did was in my Main Application wrote:
    Splash_Screen SS = new Splash_Screen();it then runs my Splash Screen class which i re-wrote to look as such:
    package MajourProject;
    import java.awt.AWTException;
    import java.awt.Dimension;
    import java.awt.Robot;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    * @author Matt
    public class SplashScreen extends JWindow
        public SplashScreen()
            int time = 15000;
            Start(time);
        public void Start(int UpTime)
            ImageIcon ii = new ImageIcon("src/1.jpg");
              JScrollPane jsp = new JScrollPane(new JLabel(ii));
                    JProgressBar Bar = new JProgressBar();
              getContentPane().add(jsp);
              setSize(853,303);
              centerScreen();
              setVisible(true);
                   try
                                Thread.sleep(20000);
                                dispose();
                   catch(Exception IE)
            private void centerScreen()
                    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
                    int x = (int) ((d.getWidth() - getWidth()) / 2);
              int y = (int) ((d.getHeight() - getHeight()) / 2);
              setLocation(x, (y-100));
    }it obviously runs the default constructor which then runs the other methods in the class but it doesn't seem to show can anybody help me to find out whats wrong? It seems to be there just before the main application launches but only for a split second. And when i am waiting while the thread is sleeping the area i have defined the Content pane for he cursor goes to the loading icon! I don't know if this makes any sence to you but if you can help me it would be most apreciated.
    Thanks.

    SpearOne wrote:
    Hi Encephalopathic
    why would it work if i put it in it's own application surely it wouldn't be caused by this thread.sleep?? everything after it is in fact put to sleep. In its "own" application, nothing happens after it is displayed.
    if it is the problem then could you please give me some code to add quickly to test??
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    import javax.swing.Timer;
    public class SplashScreen extends JWindow
      private static final String IMAGE_PATH = "src/1.jpg";
      private static final int UP_TIME = 15000;
      public SplashScreen()
        Start();
      public void Start()
        ImageIcon ii = new ImageIcon(IMAGE_PATH);
        JScrollPane jsp = new JScrollPane(new JLabel(ii));
        //JProgressBar Bar = new JProgressBar();
        getContentPane().add(jsp);
        setSize(853, 303);
        centerScreen();
      private void centerScreen()
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        int x = (int) ((d.getWidth() - getWidth()) / 2);
        int y = (int) ((d.getHeight() - getHeight()) / 2);
        setLocation(x, (y - 100));
      public static void main(String[] args)
        final JFrame frame = new JFrame("Main Frame");
        frame.setPreferredSize(new Dimension(300, 200));
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        final SplashScreen splash = new SplashScreen();
        splash.setVisible(true);
        Timer swingTimer = new Timer(UP_TIME, new ActionListener()
          public void actionPerformed(ActionEvent e)
            splash.dispose();
            frame.setVisible(true);
        swingTimer.setRepeats(false);
        swingTimer.start();
    }

  • !!!PLEASE HELP!! I NEED HELP UNLOCKING ADVANCE OPTION IN BIOS LENOVO G40-70

    i cant do anything in my bios on my lenovo g40-70 i need help unlocking advance options in bios,i tried flashing it but something in the system is preventing it from flashing.can you guys relase an update fixing that or relasse an update to enable us chane our video memory on our bios............thankssssssssssssssssssssssssss in ADVANCE!

    Welcome to the Lenovo Community !
    What BIOS update are you trying to do...... the Lenovo 9ACN29WW release or one that someone created for you over at BIOS-Mods?
    Are you getting any error messages in regards to the update failing ?
    Owner & Operator of the following:
    ● Lenovo Ideapad Z570 w/ Win 7 & Win 8.1 Dual Boot ● Lenovo Yoga 3 Pro w/ Windows 8.1 ● Toshiba A75-S206 w/ Win 7
    ● IBM Thinkpad T-23 w/ Win XP ● IBM Thinkpad T-22 w/ Win XP • As well as multiple desktops dual/triple booting XP, Vista and Win 7.
    ★ Find a post helpful? Thank that member by clicking on the ☆Star☆ to the left awarding them a Kudo.
    ★ Posting a problem and a reply is helpful and it answers your question, please mark it as an "Accepted Solution"
    ★ I'm not a Lenovo employee, just a volunteer geek who likes to help folks. Enjoy your time here, pay it forward by helping others !
    ★ Sorry, I don't answer questions via Private Messages. Posting in the appropriate forum is the best way to get assistance.

  • JXTA...i really need help..please..!!!

    hi all
    im developing a midlet application to store data from my midlet to a database (located in a server computer), then retrieve the data from the database to my midlet... i want to develop this application base on JXTA and JXME environment... could you guys please list the steps that i must follow...Huh
    Midlet (steps)
    1. create a peer using createInstance()
    2. connect to a relay using connect()
    Relay - proxy for mobile phones (steps)
    1.
    2.
    Server - database location (steps)
    1.
    2.
    i really hope you can help me... mayb it's too much to ask for a sample program... i really need this guidance to devevlop my project... the due date is just around the corner... please help me.... thanks in advance

    with instaling new wdm driver from http://www.nvidia.com may be your problem solved
    thanks alot

  • Hey guys, i need HELP !!!My iphone 6 just gave stolen .... But i hope that can take all the photo back... Total is almost 3000 pc ... But my icloud storage just 5gb only ... If there have any ways to let me get back those photo ? Those photo really m

    Hey guys, i need HELP !!!My iphone 6 just gave stolen .... But i hope that can take all the photo back... Total is almost 3000 pc ... But my icloud storage just 5gb only ... If there have any ways to let me get back those photo ? Those photo really mean a lot to me .... Have alot of memory with family ... It's very meaningful !!! Please kindly help me !!! Thanks           

    Please please help me, if you know how.

  • IMovie HD need help please.

    Hi,
    I am the new guy in town. Ok here go's. I am wanting to see all my video clips on my ext. firewire hard drive. But for some reson sins iMovie HD saves your work in a projected all I see on my hard drive is the saved projected but I do not see the clips. Now I know on my Powerbook G4 it has just iMovie not iMovie HD it would let me save them as clips so I could use them in any programe I wanted to. Like toast 6. I could just pick clips off my ext. firewire drive and go.Please help.Thanks.

    Hi computerguy,
    please, don't take it as a personal offense, but....
    you're posting in the iMovieHD help forum and your thread is titled "iMovie HD need help"...... for sure, EVERYbody here needs help ;-)), next time try a more discriptive line............
    secondly, there's a new feature in this forum: you (and only you!) can click on a green star, which will mark this thread as "answered" - makes it for the "answerers" simpler, not to read the posts again&again........
    //ooooh, these Germans, overcorrect, acting as policemen.......// ;-))
    have fun with your Mac!

  • Hey guys need help regarding iTunes U. My school is moving for iOS and Mac in the classroom and I have been appointed Junior Administrator for the schools technical department and integrating these devices into the classroom.

    Hey guys need help regarding iTunes U. My school is moving for iOS and Mac in the classroom and I have been appointed Junior Administrator for the schools technical department and integrating these devices into the classroom.
    I have an appointment with a director on Tuesday. I want to demo iTunes U. Problem is I have never used it before and have no idea how to set it up and even if I should sign up.
    Please help any ideas regarding iTunes U and how I should direct the meeting tomorrow.
    Please please post here.
    Thanks
    Tiaan

    Greetings fcit@!A,
    After reviewing your post, it sounds like you are not able to select none as your payment type. I would recommend that you read this article, it may be able to help the issue.
    Why can’t I select None when I edit my Apple ID payment information? - Apple Support
    Thanks for using Apple Support Communities.
    Take care,
    Mario

Maybe you are looking for

  • Apps just hang after upgrading to 10.5.7 from Tiger

    I am so frustrated! I upgraded so that FCP would run better, but I can't even get FCP to work for more than the briefest time. Neither do any other apps work for long (safari, mail, word - just about anything I try). They hang, either when I'm in the

  • What Do I do now ? HELP !

    Very disapointed that Apple didnt bring out a 80GB touchscreen Video IPOD at the MacWorld conference yesterday. I am in a bit of a dilemma now. Do I go out and buy the current 80GB IPOD or Wait until a possible touchscreen one ? (if released) My 30GB

  • WebUtil Using Client_Text_IO with Japanese chars

    Hi, I am trying to use Client_Text_IO to read text file with Japanese characters in it. But it seems like Client_Text_IO can't read Japanese chars properly. Can anyone tell me how to use Client_Text_IO with double byte chars like Japanese? Thanks in

  • Checkbox positioning issue in module pool program screen

    Hello All, I am facing one issue with the checkbox positioning in module pool program.I have designed the screen in 'SAP Signature Theme' and the checkbox position looks fine (while tested the screen in SE80) as shown below. Test Result from 'SAP Sig

  • How to open another page on the same document in microsoft office 2008

    Hi, can you tell me how to open a page in microsoft office 2008, thanks