132,723 Archived Topics
Remove Filter ![]() | |
/** * @(#)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 … Software Development java | |
my coding to ignorecase isn't working but the else statement does. I have system.using regular expressions allready. it runs without errors but it dosn't ignore capitals. [CODE] private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked == true) { Regex word = new Regex (wordtextBox.Text, RegexOptions.IgnoreCase);// dosn't work } else … Software Development regex | |
guys i trying to run simple applet program but getting the same error that "START:APPLET NOT INTALIZIED".i save both of files in the same folder "bin" but yet the same error.can any one help me.here is my code[ [code]import java.applet.*; import java.awt.*; public class move extends Applet{ int x_pos = … Software Development java | |
Hi, I have this program that part of it is hard coded. Instead of hard coding it, I need to do a file read instead. Meaning, the hard coded part must be changed to reading the info I need from a txt file. May I know how to do that? … Software Development algorithm file-system java java-swing | |
Hey I'm trying to get a splash screen going for my application but having a problem in finding the image once the splash screen is called it returns a null. I'm trying to use the java standard 6 way where the splash screen is displayed before the jvm is started … Software Development java java-swing | |
Hi I wonder if someone could point me in the right direction, I have two class`s in my program one is a search thread the other is the swing gui. I want to send updates and info from the thread to my gui but have not got any idea on … Software Development gui java java-swing | |
Hello all, can someone take a look at my inventory program code for part 3 of the program mod. The program outputs, but I am still experiencing a few errors. If someone could take a look and let me know what to change I would greatly appreciate it. This is … | |
Hi. I'm building an app (in VS2005) in which I have a datagridview with a combobox column that needs to be databounded. I use the dataSet designer to add a dataset and then add to the combobox column datasource the dataset I just added (make a reference) and then I … | |
I have just started writing C code in dev-c++. The programs are running fine, but each C program shows me the following warning: [QUOTE] [Warning] command line option "-fno-access-control" is valid for C++/ObjC++ but not for C[/QUOTE] The test program I used was: [CODE] #include<stdio.h> int main(){ system("pause"); return 0; … Software Development c c++ microsoft-access | |
I'm making a rock paper scissors game, and in this game there is a nested for loop so that the players challenge each other, the outer loop is supposed to loop through all the players starting with player 1, while the inner loop starts at the last player and moves … Software Development java | |
I am developping an user interface in VBA to manage an MS access database. I am confronted with a task that consists to open any document file store on a computer using a VBA command. I can do that that for any MS office document but failing with other document … Software Development pdf user-interface visual-basic | |
hi..i wanted to know how to set focus from form2 to say a desired textbox in form1.. Problem tht i face is if i give a setfocus() in form2 it gives me an "Invalid procedure call or argument error"....i have already set the focus in the form load event of … Software Development visual-basic | |
[B]I ve added windows media player in the form. and i can add a audio file in it..but i want to add more than one audio files in a playlist and from tat playlist i want to retreive duration of each n every file and store it seperatly in an … | |
Hi I'm trying to send some text to LPT1 port. [url]http://www.logix4u.net/[/url] this seems to work but there is nothing happening on my printer. can anyone tell me how to do it? thx Software Development printer visual-basic | |
hi, i'm having trouble taking say the input of the user and converting it to the right type of format i need in order to compare them. An example is say I have the number 1234 and that is assigned to the variable x and the string value of that … Software Development python | |
![]() | Hey i was just wondering if anyone had any good idea of how to make an application tell the user that it needs updating! kind of like the update dialog in hyper cam. the way hyper cam updates is by a small yellow box popping up and saying its ready … Software Development c# ![]() |
Here is my code it gives me error "IsAdminuser is not member of PMS" what should i do now to resolve this problem. [CODE]Module GlobalStuff Public Function IsLoggedIn(ByVal PassUserName As String, ByVal PassPassword As String) As Boolean Dim ReturnBool As Boolean = True Dim cnString As String = "Data Source=ITS;Initial … Software Development open-source vb.net | |
Hi, i would be grateful for a solution or some explaining. My example is that i have a controlled spaceship. here is userinterface: 3 - planet from which is starts, 0.5 and 0.5 the speed of the ship [CODE=java]public void handleBtnLaunchFPSpaceShip() { this.controller.launchFPSpaceShip(3, 0.5, 0.5); }[/CODE] my controller class: [CODE=java]public … Software Development java | |
Hey guys, Trying to learn python. Anyone have any idea why this prints score_value first? ie this is the output {'score_value': 3.0, 'score_type': 1}{'score_value': 3.0, 'score_type': 4}{'score_value': 3.0, 'score_type': 5} [CODE] scores_for_bulk = [] for i in range(4): if not score[i] == 0: self.response.out.write({"score_type":SCORE_TYPES[types[i]], "score_value": score[i]}) [/CODE] Any help would … Software Development python | |
Hello ! i have created an application , and i need to send emails to different adresses.I want to do this inside my application without automating email software like outlook etc. I have used CDO , and different activex like ostrosoft , chilkat etc .But is the same problem : … | |
Hi, I wrote a simple program that should display the text (with specific fonts), one color background and drawing. I tried to run the program but it didn't work. Any suggestions? What is the method of Graphics that allow you to draw within the program? eg java.awt.Graphics but I don't … Software Development gui java java-swing | |
Please help me. My project to display like window explore from any client's ip address. If i used command line, i can set ip & post listen for server by code: start java TestWEImplServer -ORBInitialPort 1050 -ORBInitialHost localhost & java TestWEImplClient -ORBInitialPort 1050 -ORBInitialHost localhost but went i use eclipse … Software Development client-server java | |
hi guys, i am working on a new java program, the program consists of a ball, bouncing around the applet, i have created button to control the ball, one to stop the ball bouncing, another to resume the ball boucing and another to reverse the direction of the ball bouncing, … Software Development java | |
Hi Everyone! I have made form 5 to become a simple storage system to check for item stocks plus adding, and started to code with arrays. heres what I have so far. [CODE]Public Class Form5 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckButton.Click Dim item(2) As … | |
so i am trying to write a program that reads some data in from a text file and performs an operation on that data. the text file is as follows... [CODE] 611111 5 765676 4 876787 4 987897 2 611111 4 [/CODE] now i want the program to read that … Software Development c++ | |
I got stuck at this error: [B]cannot find symbol symbol: variable BankAddress location: class Bank bankAddress = BankAddress;[/B] [COLOR="Red"]<------pointing at BankAddress;[/COLOR] I'm trying to instantiate an object of Address, calling the constructor of the Address class to create an object of Address. I'll post both classes, Bank and Address [B]Address … ![]() | |
Question of the century? I basically want to know which would be more efficient if I wrote this code as several different variables or if I used small arrays. [code=c] int x = 34; int y = 28; int z = 293; [/code] vs [code=c] double coordinate[3] = {34, 28, … Software Development c | |
I am using date and time picker to get current date but when i get date from date and time picker first time it gives me current date and time i save the record and when i try to get date and time second time without unloading the form it … Software Development vb.net | |
Hi Everyone! I have been experiencing problems in displaying my varibable Gcoins in form3 from form1. here is what i have in my form3 code. [CODE] Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim frm1 As New Form1 Dim points As Integer gcoinsamount = Val(frm1.Label2.Text) … Software Development vb.net | |
Compress and decompress files using the popular pkzip format and the Python module 'zipfile'. [B][COLOR="Red"]Concept Error! This code just does archiving into a zip file, no compression![/COLOR][/B] To compress and archive files it is best to use module tarfile, see the snippet at: [url]http://www.daniweb.com/code/snippet216860.html[/url] Software Development python | |
I'm trying to send variables from a program in C++ to php for it to process. Then I want to be able to get the output of the php code. Is there any way to send variables from C++ to PHP and back? Maybe using something like POST variables? I … | |
Dear All I am tring to do 1 simple job but some where I am missing something I designed 1 GUI in Netbeans 3 jTextFields, 2 jButtons (design attached) Step 1-> Input any number in 1st text field 2 Step 2-> Input any number in 2nd text field 2 Step … | |
Hi, I have a problem which has been puzzling me for a few days. i have been trying it with vectors and characters but will not work for me. Imagine an "ON" "OFF" binary sequence. I want to compute all combinations of that sequence of length N say. e.g sequence … Software Development c++ | |
[CODE]from PIL import Image, ImageDraw from random import randint picture = Image.new("RGB", (600, 600)) artist = ImageDraw.Draw(picture) for i in range(100): x1, y1 = randint(0, 600), randint(0, 600) x2, y2 = randint(0,600), randint(0,600) color = (randint(0, 255), randint(0, 255), randint(0, 255)) width = randint(2, 20) artist.line([x1, y1, x2, y2], color, … Software Development python | |
Hi I'm trying modify an application to read in text files and collect pieces of data from them to use as input for an application. The data I need to collect from the individual files include doubles, int, and strings of varying lengths depending upon individual text files. There is … Software Development java | |
This isn't a problem, just a curious question. I'm using the password text field in my gui and basically, this: [CODE] String pin = new String(passwordField.getPassword()); Person p = new Person(); p.setPassword(Integer.parseInt(pin)); [/CODE] leads to a number format error, despite that I didn't enter a text. But this: [CODE] String … | |
I need help with this Java program for school. I have to add loops so that each loan will loop and show the payment made, the int payment made, and the loan balance for each month of the entire loan. There are three different loans, 7 year, 15 year, and … Software Development java ![]() | |
help me guys.. how do i add picture? [CODE] Private Sub NavigateRecords() txtPersonnelID.Text = ds.Tables("Personnel").Rows(inc).Item(0) txtFirstName.Text = ds.Tables("Personnel").Rows(inc).Item(1) txtLastName.Text = ds.Tables("Personnel").Rows(inc).Item(2) txtMiddleName.Text = ds.Tables("Personnel").Rows(inc).Item(3) txtGender.Text = ds.Tables("Personnel").Rows(inc).Item(4) txtAddress.Text = ds.Tables("Personnel").Rows(inc).Item(5) txtContactNo.Text = ds.Tables("Personnel").Rows(inc).Item(6) txtEmailAdd.Text = ds.Tables("Personnel").Rows(inc).Item(7) txtBday.Text = ds.Tables("Personnel").Rows(inc).Item(8) txtDept.Text = ds.Tables("Personnel").Rows(inc).Item(9) txtPosition.Text = ds.Tables("Personnel").Rows(inc).Item(10) txtHiredDate.Text = ds.Tables("Personnel").Rows(inc).Item(11) txtRenewalDate.Text = … Software Development vb.net | |
I have a series of data (x,y) as below. I want to use this data to create a bell curve (normal distribution) with perl. How can I do this? x y 1 2 2 50 3 40 4 300 5 70 6 80 7 8 8 10 9 25 10 … Software Development mathematics perl | |
Hi, let's say I have a program in my external hard drive and there's a code in my app that references a picture or a file in that hard drive, how do I make it so that when I take my external hard drive to another computer, even though the … Software Development hard-drive java | |
Hello Everyone, I've been desperatly trying to teach myself C and I've come along quite nicely. I wanted to start making my own programs (not from internet tutorial/Cd Rom). I want to make a program that will display two dates that the user inputs then calculate the number of days … | |
Okay, so I've been trying to create a UDP Server (I've got the TCP one done but I need both for my project). However, whenever using the following code: [code] UdpClient whatever = new UdpClient(11000); [/code] I always get a SocketException with any port number (not just 11000), unless I … Software Development tcp-udp | |
I want to create a list which will list coordinates on a 50 by 50 grid. I have been able to set the x-value from 0 to 49, while maintaining the y-value as 0. When I try to reset the x-value back to 0, and increment the y-value by 1- … Software Development python | |
I use Visual Basic 8.0 and Windows 7 Prof. and Deskjet 720c To print a document i use [COLOR="Green"]PrintDocument component [/COLOR] I want to Check status of local printer My problem is, if de printer if [COLOR="Red"]offline[/COLOR] of [COLOR="Red"]not connected [/COLOR]every print job is then automatically sent to the print … Software Development printer vb.net visual-basic | |
I want to create a list which will list coordinates on a 50 by 50 grid. I have been able to set the x-value from 0 to 49, while maintaining the y-value as 0. When I try to reset the x-value back to 0, and increment the y-value by 1- … Software Development python | |
Hello, I'm new to VB .Net and I've searched for this info in the help files, but couldn't find it. When I save a project it automatically saves it to "C:\Documents and Settings\[I]username[/I]\Local Settings\Application Data\Temporary Projects\[I]filename[/I]". I want to be able to set this path ahead of time to where … Software Development vb.net | |
Hi, I'm looking for a book on C++...now before you flame me I did read the sticky "Read Me:C++ Books" and found the list interesting but for me uninformative...Why? I'm not really sure what C++ level I'm at currently. Let me elaborate...Here's my experience with the C family of languages.. … |
The End.