Page 25 of 34 FirstFirst ... 1522232425262728 ... LastLast
Results 241 to 250 of 335
  1. #241

    Default Re: Java Programming


    Quote Originally Posted by ingkiang
    naa mo bok sa java dha na for sale?kana nice na bok...
    kani bay. i download ni..
    http://java.sun.com/docs/books/tutor.../download.html[br]Posted on: May 29, 2007, 12:17:38 PM_________________________________________________
    Quote Originally Posted by ingkiang
    guys gae ko project beh...heheheh....wla ko mathink kng unsa ako buhaton n program pra ako practisan...heheheh......beginners pko sa java but ganahan ko naa project...heheheh...
    how about himo ka ug calculator bay? nindot sad cguro na pang beginner.. :mrgreen:
    or string utilities.. something that would convert string to any other objects and vice versa.. concatinate two string or any number of strings.. checks if the string is null or empty.. and so on.. basta mga operations nga pwede sa string. :mrgreen:

    good luck!


  2. #242

    Default Re: Java Programming

    cge ako project ky calculator...hehehehe.....thanxs mga bro...

  3. #243

    Default Re: Java Programming

    Quote Originally Posted by ingkiang
    cge ako project ky calculator...hehehehe.....thanxs mga bro...
    try to immitate the windows built - in calculator if makaya bro.. :mrgreen:
    and maybe an option to switch between the scientific one and the basic one..

    when your done.. try to post your codes here so everybody else can check it and maybe suggest improvements with respect to coding style, algorithms used, etc.. or may be suggest new ideas for incorporation to what youve made so far.. :mrgreen:

    good luck! ayaw surrender ha.. hehehe

    oh and if you can.. try not to use visual gui editing tools like netbeans' visual editor or eclipse's visual editor.. try lang nga i code lang jud nimo ang tanan on your own.. that way you will learn a lot. of course you can still use netbeans or eclipse.. just try not to use the visual editor.. :mrgreen:

  4. #244

    Default Re: Java Programming

    everyone.. maybe we can do this style sad no? post your project ideas, maski unsa kasayon or kalisod.. then maybe someone else here will be interested and implement it... or maybe ikaw mismo maka implement sa imong idea and maybe with the help of others here.. try lang post ug mga ideas about projects..

    usually man gud.. ganahan kaau ta makat on or mu maayo pero ang atong problem is wala ta kahibaw kung unsa ang atong buhaton, or unsa ang atong mapraktisan.. so maybe this is a good idea so that anyone who wants to practice or maybe just wants something to do can look here, and hopefully naay something maka interest niya unya iyang mabuhat.. para dili na lisud pangita ug ideas kung unsa ang buhaton para makapraktis.. this can also promote an exchange of ideas or techniques with respect to coding style or algorithms kung unsay maayo..

    maski unsa lang nga project idea.. basta kana lang sad ma implement gamit java kay java man ni nga thread.. hehehe.. pwede lisud (para sa mga hanas) nya pwede sad sayon (para sa mga bag o pa)

    :mrgreen:

  5. #245

    Default Re: Java Programming

    mga tol pwede mangaU ug code unsaon pglayout sa button?kana ikw mgbuot asa nmo ibutang ang button ba?dn ang iya size sad sa button.make it simple lng jud...

  6. #246

    Default Re: Java Programming

    Quote Originally Posted by ingkiang
    mga tol pwede mangaU ug code unsaon pglayout sa button?kana ikw mgbuot asa nmo ibutang ang button ba?dn ang iya size sad sa button.make it simple lng jud...
    Try netbeans

    http://www.netbeans.org/

  7. #247

    Default Re: Java Programming

    Quote Originally Posted by eax
    i would discourage using netbeans gui layout facility kung nagkat on pa lang ka sa language.. of course nindot ang netbeans nga ide.. and mao jud na akong i recommend if mag develop na jud ka ug applications using java.. okay sad ang eclipse..

    @ingkiang.. sorry karon lang ko reply.. nabusy ko lately, nag process ko sa akong visa extension nya busy sad sa work lately. try ko himo karon taud2 sa imong gipangayo nga codes.. mag jogging sa ko, pawala sa stress sa trabaho.. hehehehe.. inig balik nako itry nako ug himo.. good luck bro!

    here is a link to sun's java api documentation.. helpful kaau ni kung gakat on pa ka ug java..
    https://sdlc3b.sun.com/ECom/EComActi...B86F86E3435D81[br]Posted on: June 07, 2007, 05:43:20 PM_________________________________________________@ ingkiang.. dia ra imong gipangayo bay.. ako lang gipun an ug menubar sad, just in case kailangan ka reference.. hehehe.. good luck bay! :mrgreen:

    Code:
    import java.awt.Container;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.GridLayout;
    import java.awt.Insets;
    
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JPanel;
    import javax.swing.JRadioButtonMenuItem;
    import javax.swing.JTextField;
    
    public class Calculator extends JFrame {
      
      private static final long serialVersionUID = 1L;
    
      public Calculator() {
        this.initialize();
      }
      
      private void initialize() {
        setTitle("Calculator");
        
        JMenuBar menuBar = new JMenuBar();
        
        JMenu menuA = new JMenu("menuA");
        menuA.add(new JMenuItem("menuItemA"));
        menuA.add(new JMenuItem("menuItemB"));
        menuBar.add(menuA);
        
        JMenu menuB = new JMenu("menuB");
        menuB.add(new JRadioButtonMenuItem("menuItemA"));
        menuB.add(new JRadioButtonMenuItem("menuItemB"));
        menuB.addSeparator();
        menuB.add(new JMenuItem("menuItemC"));
        menuBar.add(menuB);
        
        JMenu menuC = new JMenu("menuC");
        menuC.add(new JMenuItem("menuItemA"));
        menuC.addSeparator();
        menuC.add(new JMenuItem("menuItemB"));
        menuBar.add(menuC);
        
        setJMenuBar(menuBar);
        
        Container cPane = getContentPane();
        cPane.setLayout(new GridBagLayout());
        
        //Common layout constraints for all components.
        GridBagConstraints c = new GridBagConstraints();
        c.fill = GridBagConstraints.BOTH;
        c.insets = new Insets(2, 1, 2, 1);
        c.weightx = .1;
        
        //Add the display area.
        JTextField display = new JTextField("0.");
        display.setEditable(false);
    //    display.setEnabled(false);
        display.setHorizontalAlignment(JTextField.RIGHT);
        setConstraints(c, 0, 0, 6, 1);
        cPane.add(display, c);
        
        //Common only for the buttons.
        c.weighty = .1;
        
        //Add the first row of buttons.
        setConstraints(c, 0, 1, 1, 1);
        cPane.add(new JLabel(), c);
        
        GridLayout layout = new GridLayout(0, 3);
        layout.setHgap(2);
        JPanel bcecPanel = new JPanel(layout);
        bcecPanel.add(new JButton());
        bcecPanel.add(new JButton());
        bcecPanel.add(new JButton());
        setConstraints(c, 1, 1, 5, 1);
        cPane.add(bcecPanel, c);
        
        //Add the second row of buttons.
        setConstraints(c, 0, 2, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 1, 2, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 2, 2, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 3, 2, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 4, 2, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 5, 2, 1, 1);
        cPane.add(new JButton(), c);
        
        //Add the third row of buttons.
        setConstraints(c, 0, 3, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 1, 3, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 2, 3, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 3, 3, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 4, 3, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 5, 3, 1, 1);
        cPane.add(new JButton(), c);
        
        //Add the fourth row of buttons.
        setConstraints(c, 0, 4, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 1, 4, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 2, 4, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 3, 4, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 4, 4, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 5, 4, 1, 1);
        cPane.add(new JButton(), c);
        
        //Add the fifth row of buttons.
        setConstraints(c, 0, 5, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 1, 5, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 2, 5, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 3, 5, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 4, 5, 1, 1);
        cPane.add(new JButton(), c);
        setConstraints(c, 5, 5, 1, 1);
        cPane.add(new JButton(), c);
        
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(280, 220);
        setResizable(false);
        setVisible(true);
      }
      
      /**
       * Sets the layout constraints to the specified parameters.
       * 
       * @param c - the layout constraints
       * @param gridx - the desired x position for the component
       * @param gridy - the desired y position for the component
       * @param gridwidth - the column span of the component
       * @param gridheight - the no. of row span of the component 
       */
      private void setConstraints(
          GridBagConstraints c,
          int gridx,
          int gridy,
          int gridwidth,
          int gridheight) {
        
        c.gridx = gridx;
        c.gridy = gridy;
        c.gridwidth = gridwidth;
        c.gridheight = gridheight;
      }
      
      public static void main(String[] args) {
        new Calculator();
      }
    
    }
    try to read check these links sad bay.. makatabang ni..
    http://java.sun.com/docs/books/tutor...out/index.html
    http://java.sun.com/docs/books/tutor...yout/grid.html
    http://java.sun.com/docs/books/tutor...t/gridbag.html

  8. #248

    Default Re: Java Programming

    @zengatsu: Naa lang ko'y question. Sa imong gi-trabahoan karon gamit ba kaau ang Java Design Patterns? Nag-study man gud ko ani karon.

  9. #249

    Default Re: Java Programming

    ako mugamit ko sa akong mga modules as much as possible.. i dont know sa uban nga mga developers diri.. naa man sad gud ko makit an nga mga modules nga gipangcode nya murag procedural ra jud pagkacode.. naa sad uban spaghetti jud kaau.. makalagot gani usahay kung ako makausab sa ilang mga gipangcode kay lisod kaau sabton.. pero yep sa akong mga modules nga gipangbuhat, apply nako design patterns as much as possible.. ayaw lang undang study ana bro, kay maski dili pa na gamiton sa imong matrabahoan unya or sa imong gitrabahoan karon, it will benefit you ra gihapon so continue lang..

  10. #250

    Default Re: Java Programming

    @zengatzu
    thanxs bro...gamay lng ta to bro...heheh....ngcge ko praktis but usahay mglisud ko ug integrate sa ako na praktisan,dn wla p jud ko maanad ug buhat ug program in object oriented na view...naanad s C gud...

  11.    Advertisement

Page 25 of 34 FirstFirst ... 1522232425262728 ... 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