- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 11
- Posts with Downvotes
- 10
- Downvoting Members
- 6
32 Posted Topics
[CODE] Public con As ADODB.Connection Public cmd As ADODB.Command Public dept_rs As ADODB.Recordset Public gen_rs As ADODB.Recordset Public stud_rs As ADODB.Recordset Public sql As String Private Sub cmdExit_Click() con.Close End End Sub Private Sub cmdSave_Click() With cmd .ActiveConnection = con .CommandText = "student_table" .CommandType = adCmdTable End With With stud_rs … | |
[CODE]Option Explicit Private Sub cmdExit_Click() End End Sub Private Sub cmdRun_Click() Dim num(19) As Integer Dim i As Integer Dim sum As Integer grd.Rows = 2 grd.Cols = 2 grd.Clear For i = 0 To 19 Step 1 num(i) = InputBox("Enter any integer") lstno.AddItem (num(i)) Next i grd.TextMatrix(0, 0) = … | |
Can someone suggest me what classes I can make in developing a system of a cell shop and also the attributes or the properties of each classes and what method of each classes I can do.... [QUOTE]I really need suggestion [/QUOTE] | |
[CODE] Private Sub cmdCancel_Click() txtcode.Text = "" txtdescr.Text = "" txtumsr.Text = "" txtqtyh.Text = "" txtuprice.Text = "" End Sub Private Sub cmdSave_Click() Dim itemcode As String * 10 Dim descr As String * 10 Dim umsr As String * 10 Dim qtyh As Integer Dim uprice As Currency … | |
[CODE] public i As Integer Dim num(18) As Integer Private Sub cmdEntry_Click() For i = 0 To 18 Step 1 num(i) = InputBox("Enter a number:", "Array", 0) Next i grd.TextMatrix(0, 0) = "Array" For i = 0 To 18 Step 1 grd.TextMatrix(grd.Rows - 1, 0) = num(i) grd.Rows = grd.Rows … | |
can someone here lead me in a website that allows to download the microsoft visual basic 6.0 for free... thanks everyone.:) | |
how to trap? for example in my textfield i don't want my textfield to accept double data type only integer is accepted..i don't have any idea how to do it.. can someone here give me a clue...please a sample code. | |
[CODE] import java.util.*; public class Try{ private int [] arr; private final int MAX=10; Scanner scan=new Scanner(System.in); public Try(){ arr =new int[MAX]; } public void accept(){ for(int i=0;i<arr.length;i++) arr[i]=scan.nextInt(); } public int smallest(){ int smallest=0; for (int i=0;i<arr.length;i++) smallest=Math.min(smallest,arr[i]); return smallest; } public int largest(){ int largest=0; for(int i=0;i<arr.length;i++) largest=Math.max(largest,arr[i]); … | |
[CODE] <html> <head> <title> User Registration</title> <body bgcolor="000000"text=ffffff> </head> <table width="20%"height="50%"border="2"> <div align="center"> <table> <h1>User Registration<h1> <form> Username: <input type="text"style="color: #ffffff; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72a4d2;name="username"size="30" /><br><br> Password: <input type="text"style="color: #ffffff; font-family: Verdana; font-weight: bold; font-size: … | |
how to put a border for entire page...and how to make a table within the table.. | |
[CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; public class EmployeeEntry extends JFrame implements ActionListener, KeyListener,ItemListener { JTextField id, last,first,mi,age,branch,hours,pay,items,rate; JRadioButton male,female; JComboBox emptype; JButton add,delete, back; JPanel p1,p2,p3,p4,p5,p6,p7; JPanel p1_1,p1_2, p2_1,p2_2, p3_1,p4_1, p4_2,p5_1,p5_2,p6_1,p6_2,p7_1; JLabel labelMessage; EmployeeList emplist=new EmployeeList(); Employee empH=new HourlyEmployee(); Employee empP=new PieceWorker(); Employee [] employee; String … | |
[ICODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class MainFrame extends JFrame{ JMenuBar main=new JMenuBar(); JMenu menu1=new JMenu("File"); JMenu menu2=new JMenu("Search"); JMenu menu3=new JMenu("Display"); JMenu menu4=new JMenu("About"); JMenuItem exit=new JMenuItem("Exit"); JMenuItem pw=new JMenuItem("Piece Worker"); JMenuItem hw=new JMenuItem("Hourly Employee"); JMenuItem pcw=new JMenuItem("Piece Worker"); JMenuItem hrly=new JMenuItem("Hourly Worker"); JMenuItem author=new JMenuItem("Author"); JLabel … | |
can some one teach me how to download alive desktop background on my computer im using XP..If some one knows how can you please give me the link where i can download.......] Thanks.... | |
[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JHelloFrame extends JFrame implements ActionListener{ JLabel question= new JLabel("What is your name"); Font bigFont= new Font("Arial",Font.BOLD,16); JTextField answer= new JTextField(12); JButton pressMe=new JButton("RressMe"); JLabel greeting= new JLabel(""); final int Width=175; final int Height=225; public JHelloFrame() { super("Hello Frame"); setSize(Width,Height); setLayout(new FlowLayout()); question.setFont(bigFont); … | |
[CODE] button.setToolTipText("Hello, World"); frame.add(button, BorderLayout.NORTH);[/CODE] This part is the main of my program..the main ok..but that class above somethind wrong please help me figured it out...... [CODE]public class ComponentDemo{ public static void main(String [] args){ JFrameWithManyComponents frame= new JFrameWithManyComponents(); } }[/CODE] | |
Can someone teach me or guide me using GUI..or can some one help how to understand right away the GUI..and please give the link which can help me to learn more about GUI.. | |
I already make a web page and I want to upload it for so that it would be accesible for everyone..but i don't know how any suggestion.. Any guys here that know where should I upload my website for free.. | |
[CODE]import java.util.*; public class EmployeeNames{ private String EmpYee []; private int count; int x; public EmployeeNames(int size){ String EmpYee []=new String [size]; count=0; } public EmployeeNames(){ this(10); } public boolean isFull(){ return count= EmpYee.length; } public boolean isEmpty(){ return count=0; } public void add(int x){ if(! isFull()) EmpYee[count++]=x; else System.out.println("\n … | |
Re: well you can also do this thing...copy your picture then paste in the browser then the URL is there then copy it.then paste it in your text editor.. | |
[CODE] import java.util.*; public class Employee{ private String emplo []; private int count; private int size=10; private String emp; public Employee(int size){ String [] emplo=new String [10]; count=0; } public Employee(){ this(10); } public boolean isFull(){ return count== emplo.length; } public boolean isEmpty(){ return count==0; } public void add(int x){ … | |
[CODE] import java.util.*; public class PhoneDirec{ private int MAX=10; private String [] validNames={"Gary","Sam","John","Jude","Alyssa","Matt","Eric","Susie","Alics","Sara"}; PhoneDirec(){ //allocate memory to names validNames=new String[MAX]; }// accept 10 names //I suppose to enter 10 names public void accept(){ Scanner console = new Scanner(System.in); for(int n = 0;n< names.length;n++) names[n] = console.nextLine(); } /*I also to … | |
[CODE] /* This program would use console/GUI,*/ /* It should 1 adding of object 2 display of object 3 updating of object 4 deleting of object */ import java.util.*; public class EmployeeList{ private int [] Age; private String [] EmpfirstName; private String [] Emplast; private String [] Adrss; static Scanner … | |
how to make a program using this 4 steps in a an array as a menu,and can you please give an example or idea how to do this for steps: 1 accept of object 2 display of object 3 updating of object 4 deleting of object thank you: | |
how to right a text inside an image please.what is the tags? thanks... | |
/*A personal phone directory contains room for list names and phone number for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list,display the corresponding phone number.If the name is not found in … | |
This program should have a menu:it can use a switch method ... MENU: [1]=ACCEPT; [2]=DISPLAY THE SMALLEST; [3]=DISPLAY THE LARGEST; [4]=DISPLAY THE SUM; [5]=DISPLAY ALL; [6]=EXIT; Could someone help me to this problem,and this program that i do i still encountering some errors..please do try to help me.. import java.util.*; … | |
----jGRASP exec: javac -g C:\Documents and Settings\Home\Desktop\java programs\List3.java ---- at: Sep 11, 2010 9:15:23 PM ----jGRASP wedge: pid for wedge is 3808. ----jGRASP wedge2: pid for wedge2 is 3800. ----jGRASP wedge2: CLASSPATH is ".;;.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\Program Files\jgrasp\extensions\classes". ----jGRASP wedge2: working directory is [C:\Documents and Settings\Home\Desktop\java programs] platform id is 2. ----jGRASP … | |
/** * @(#)List2.java * * * @author * @version 1.00 2010/8/26 */ import java.util.*; public class List2 { private int [] arr; private final int MAX = 10; public List2() { //allocate memory to arr arr = new int[MAX]; } //accept 10 numbers public void accept(){ Scanner console = new … | |
[CODE]import java.util.Scanner; public class StudentList{ public static void main(String [] args){ Scanner console=new Scanner(System.in); String students[]=new String [10]; System.out.println("Enter names of students"); for(int i=0;i<students.length;i++) students[i]=console.nextInt(); System.out.println("Students entered are"); for(int i=0;i<students.length;i++) System.out.println(students[i]); } }[/CODE] | |
how to do the adding of objects in array program using an interactive console/gui how to do the deleting of objects in array using an interactive console/gui how to do the updating of objects in array program using an interactive console/gui how to do the displaying of objects in array … | |
how to do the adding of objects in array program using an interactive console/gui how to do the deleting of objects in array using an interactive console/gui how to do the updating of objects in array program using an interactive console/gui how to do the displaying of objects in array … | |
Please help me to create a program that will demonstrate the following using an array...... 1.Adding of objects 2.Deleting of objects 3.Updating of objects 4.Displaying of objects.. An interactive program using console/gui... thanks...hope you can help me...just send the code, please help me.... |
The End.