Events, swing, and focus

Discussion in 'Programming General' started by daraman2000, May 9, 2007.

Events, swing, and focus
  1. Unread #1 - May 9, 2007 at 8:09 PM
  2. daraman2000
    Referrals:
    1

    daraman2000 Guest

    Events, swing, and focus

    I'm using the GUI tut sticky to make a more advanced program, but i need to know:




    1. how can i get the buttons to do different things? (open different apps like eclipse, javac, etc.)

    ----------------------------------------------------------------------------

    2. How can i get "always on top" functionality, like with the task manager in XP?

    ----------------------------------------------------------------------------


    3.
    My fetch icon code doesn't work:
    Code:
    		    private void loadFrameIcon() {
    		        URL imgUrl = null;
    		        ImageIcon imgIcon = null;
    		        
    		        imgUrl = Tutorial.class.getResource("lib/Jcp.ico");
    		        imgIcon = new ImageIcon(imgUrl);
    		        Image img = imgIcon.getImage();
    		        this.setIconImage(img);
    		        
    		    }
    
    ----------------------------------------------------------------------------


    4. how do i set up a file changer, or a container that loads the contents of a folder and opens them?




    --------------------------------------------------------------------------------------------------------------------------------------------------------



    please don't answer " the semantic void event is an advanced actionlistener device boolean" noob language plz :p

    TY!
     
< Learning by Examples | The best C Language? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site