Page 16 of 34 FirstFirst ... 61314151617181926 ... LastLast
Results 151 to 160 of 335
  1. #151

    Default Re: Java Programming


    Quote Originally Posted by DII
    Guys, I need you help... I need to make a JTable that has the capability of cell spanning. Any ideas on how to go about it? I tried to place another table within the cell but it did't work.
    bay, try refer ngahi nga page para sa imong cell spanning adventures bay. murag interested sa ko ani nga area pero murag busy pa ko kaau karon para mag experiment ani. do tell us unya bro kung unsa na ang progress sa imong ventures on JTable cell spanning.
    http://www.swingwiki.org/howto:column_spanning


    by the way mga bro and sis, gi release na diay ang Netbeans 5.5..i check nya ninyo.. :mrgreen:

  2. #152

    Default Re: Java Programming

    Ngayu ko tabang plz.... unsaon nako pag ayu ani?

    naako GUI nga Multi-menu; Mu call siya og lain nga class nga dili gui nor an applet class ra gyud ba, kato nga class kay nakathrow na ang IOException; nag-import siya sa java.io.*;

    dagan siya kung siya ra usa.

    problem nako kay dili mo dagan kung i-agi sa "Multi-Menu" nga gui nako..


    heres the code of the GUI Multi-Menu



    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.io.*;

    /**
    * This Program can be freely distributed all throughout the University.( University ra ha kanang
    * University of San Carlos bah.. ha.. way lain.)
    *
    * @author Ronilo Sugala Olivar Jr. 4th Year Section Yellow, USC-NC HighSchool Dept.
    * @version 1.0.0.1
    * @School Year 2006-2007
    */



    public class Multi_Menu_AllGUI extends JFrame implements ActionListener
    {



    // constant
    public static final int WIDTH = 400;
    public static final int HEIGHT = 300;

    private JButton b1,b2,b3,b4,b5;

    // universal re-usable J elements

    private JButton sb1,sb2,sb3,sb4,sb5;
    private JLabel lab1,lab2,lab3,lab4,lab5;
    private JTextField tx1,tx2,tx3,tx4,tx5;
    private JPanel subpane1,subpane2,subpane3;
    private int x,y,z,subH=100;
    private double num1,num2,num3,num4;
    private JTextArea txa1,txa2,txa3;
    private int LINES=5, CHAR_PER_LINE=20;



    public Multi_Menu_AllGUI()throws IOException
    {
    setSize(WIDTH,HEIGHT);
    setResizable(false);

    setTitle("Demo MultiMenu By OlivarSystem Inc.");
    Container contentPane = getContentPane();
    contentPane.setLayout(new GridLayout (5,1));

    b1=new JButton("Telegram");
    b1.addActionListener(this);
    contentPane.add(b1);

    b2=new JButton("Area Calc.");
    b2.addActionListener(this);
    contentPane.add(b2);

    b3=new JButton("BasketBall Price");
    b3.addActionListener(this);
    contentPane.add(b3);

    b4=new JButton("S.S. Grade");
    b4.addActionListener(this);
    contentPane.add(b4);

    b5=new JButton("Exit");
    b5.addActionListener(this);
    contentPane.add(b5);
    }// main window end

    // calling classes and throwing them.




    public void actionPerformed(ActionEvent e)
    {
    Container contentPane = getContentPane();



    if (e.getActionCommand().equals("Exit"))
    {
    System.exit(0);
    }

    if (e.getActionCommand().equals("BasketBall Price"))
    {
    Basketball_Price bb=new Basketball_Price();
    bb.printbb();
    - Mau ni siya nga part nga kailangan mo throw og IOException but
    unsa-on man, asa nako i butang?


    }


    }




    public static void main (String args [])throws IOException
    {

    Multi_Menu_AllGUI mmo=new Multi_Menu_AllGUI();
    mmo.setVisible(true);
    }

    }


    help.plz.ASAP

  3. #153

    Default Re: Java Programming

    compile time error diba? The solution is to catch the exception.

    Code:
     if (e.getActionCommand().equals("BasketBall Price"))
        {
          Basketball_Price bb=new Basketball_Price();
          try 
           {
             bb.printbb(); 
           }
           catch(IOException exception)
           {
             //do something here...
           } 
        
         }

  4. #154

    Default Re: Java Programming

    pwede sad i throw nimo ang exception pataas sa call hierarchy..

    Code:
      public void actionPerformed(ActionEvent e) throws IOException {
        Container contentPane = getContentPane();
        
        if (e.getActionCommand().equals("Exit")) {
          System.exit(0);
        }
         
        if (e.getActionCommand().equals("BasketBall Price")) {
          Basketball_Price bb=new Basketball_Price();
          bb.printbb();
        }
      }

  5. #155

    Default Re: Java Programming

    :mrgreen: TY to zengatsu and cen.. Computer Programmer of the Year Nako!!!!!!!!! TY.TY.TY

  6. #156

    Default Re: Java Programming

    Quote Originally Posted by ronninalpha
    :mrgreen: TY to zengatsu and cen.. Computer Programmer of the Year Nako!!!!!!!!! TY.TY.TY
    Your welcome bro.

  7. #157

    Default Re: Java Programming

    Quote Originally Posted by ronninalpha
    :mrgreen: TY to zengatsu and cen.. Computer Programmer of the Year Nako!!!!!!!!! TY.TY.TY
    np!

  8. #158

    Default Re: Java Programming

    bro, wer can we find a good e-book tutorial for java? kana free lang ba!

  9. #159

    Default Re: Java Programming

    these are very good collections from bruce eckel: http://www.mindviewinc.com/

  10. #160

    Default Re: Java Programming

    Quote Originally Posted by apart
    bro, wer can we find a good e-book tutorial for java? kana free lang ba!
    http://java.sun.com/javase/reference/tutorials.jsp

  11.    Advertisement

Page 16 of 34 FirstFirst ... 61314151617181926 ... LastLast

Similar Threads

 
  1. JAVA PROGRAMMING *****
    By bardnekom in forum Programming
    Replies: 20
    Last Post: 04-18-2013, 12:51 PM
  2. MOVED: JAVA PROGRAMMING *****
    By vern in forum Software & Games (Old)
    Replies: 0
    Last Post: 03-23-2008, 02:43 AM
  3. Java programming help pls...
    By mr_gwen in forum Programming
    Replies: 6
    Last Post: 11-03-2006, 12:30 AM
  4. nid help..java programming
    By ronninalpha in forum Programming
    Replies: 3
    Last Post: 09-13-2006, 07:55 PM
  5. MOVED: Java Programming
    By BadDudes in forum Software & Games (Old)
    Replies: 0
    Last Post: 04-28-2006, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top