132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tyson.crouch

Hi Guys, I've got a problem where as I attempt to output, i get thrown a Null Pointer Exception. I can read the values for [B][I][U]orders[0][/U][/I][/B] but nothing after. The DB is intact, and i get thrown the results as per the query generated in my code, so thats not …

Software Development java
Member Avatar for tyson.crouch
0
162
Member Avatar for hell_tej

I ma creating a Project on Java Uaing editor NetBeans 6.0 In this project, i want to put Dynemic image on JLabel which gets the Image Path from Database. It works Properly BUT.... The size of JLabel autometicaly adjust:( If the Image size is 1024x672 then JLabel covers whole Swing …

Software Development image java java-netbeans java-swing
Member Avatar for javaAddict
0
5K
Member Avatar for shwetas1

Hi All, I want to populate the listbox columwise from excelsheet using C# .net. Column 1 of excelsheet should map with listbox1 and column 2 with listbox2,..... Excel sheet is placed at folder C:\Data\.. Any ideas? Thanks, Shweta

Software Development
Member Avatar for shwetas1
0
507
Member Avatar for ashwiniku

hi am a new joinee, how to get values of selected checkboxes in a table? please help me, selected Lc code from UI, that LC code value should get into the table plz help me out this is my action class, [code]package webapp.control.nri; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.logging.Log; import …

Software Development apache java java-jsp
Member Avatar for Dean_Grobler
0
170
Member Avatar for 07-0466

What driver do you need to connect vb.net to MySQL? How do I create a Data source to MySQL? ...am only getting the options for SQL and MS-database! Please help... am designing a reg system for a college! Thanx :-)

Software Development mysql vb.net visual-basic
Member Avatar for JJCollins
0
450
Member Avatar for aviavyne

Hello, I recently started taking classes in c++, and one of our assignments is to create a program that converts Fahrenheit to Celsius degrees. I was able to do so, however I want to make the conversion part into a subprogram, I have some idea on how to write it, …

Software Development c++
Member Avatar for spirit of love
0
1K
Member Avatar for DanielWuVB

I added 2 textboxes on the form and runs it...I pressed the enter after I type in simple text.. it will not goto next textbox but tab can do .. why ... no nay code.. strange.... Thanks

Software Development vb.net
Member Avatar for DanielWuVB
0
298
Member Avatar for ayesha08

Create a program that will accept 20 numbers and arrange them in ascending order. The program should determine the distinct numbers and the number of occurrences for each number (or the frequency). Display the supplied values, the distinct numbers and the frequency of each distinct numbers. Your program should use …

Software Development java
Member Avatar for ayesha08
0
102
Member Avatar for AirGear

ok, i have a problem with JLayeredPane. I'm about to make a game in full screen mode, so basically I create a JFrame first, and I named it MainMenu.java. In this JFrame, I first display my main menu, where there are 4 main buttons there. When the button is click, …

Software Development java java-swing pay-per-click
Member Avatar for AirGear
0
399
Member Avatar for Matthew N.

I have watched alot of Java tutorials on yutube, but they all say to go to [url]http://www.sun.com/[/url] and get the JKD, but there is about 7 downloads labled JKD and java development kit, so can somebody please give me an exact download link, i want to have a look at …

Software Development file-system java seo
Member Avatar for Matthew N.
0
153
Member Avatar for Rahul.menon

[CODE] #include<stdio.h> #include<conio.h> void main() { int num[50],i,i1,j,temp = 1,cnt = 0; printf("How many elements "); scanf("%d",&i); printf("Enter the elements "); for(j = 0;j<i;j++) { scanf("%d",&num[j]); } i1 = 0; j=1; while(i1 < i ) { for( ;j<i;j++) { if((num[j] < num[i1])&& (i1<i)) { temp = num[j]; //algorithm for sel …

Software Development algorithm c
Member Avatar for Rahul.menon
0
94
Member Avatar for djhog

Need to sort an array of objects of type PhoneEntry, using PhoneEntry's greaterAlpha to do your comparisons. I have the sort function, but I'm not sure how to get everything working together. [CODE] #include <iostream> #include <string> using namespace std; class PhoneNumber { private: int area; int prefix; int suffix; …

Software Development c++
Member Avatar for Ancient Dragon
0
111
Member Avatar for Kosithc

Hello, I am using this piece of code for allocating 3D array in memory by my dimensions HEIGHT, WIDTH, DEPTH which are variables. [CODE]p2DArray = new double**[HEIGHT]; for (int i = 0; i < HEIGHT; ++i) { p2DArray[i] = new double*[WIDTH]; for (int j = 0; j < WIDTH; ++j) …

Software Development c++
Member Avatar for Ancient Dragon
0
203
Member Avatar for wikinick

Hi, For a school assignment, I have to make a game of BlackJack using VB2008 Express. I have decided that in the login screen, the user will select his name from a listbox, and then type his password into a text box in order to get to the game screen. …

Software Development vb.net
Member Avatar for Pha
0
114
Member Avatar for afizaex

This Array topic I had many problem, someone help me? Thank you! [IMG]http://i291.photobucket.com/albums/ll311/afizaex/Awam/IMAG0001.jpg[/IMG] [IMG]http://i291.photobucket.com/albums/ll311/afizaex/Awam/IMAG0002.jpg[/IMG] [IMG]http://i291.photobucket.com/albums/ll311/afizaex/Awam/IMAG0004.jpg[/IMG]

Software Development c++
Member Avatar for afizaex
0
134
Member Avatar for toferdagofer

When i run this it does not work like its supposed to. Basically the program is a password verifier that checks what the user enters. It works to check for the 6 characters but it does not work correctly to check for the uppercase, lowercase, or the digit. [CODE]import javax.swing.JOptionPane; …

Software Development java java-swing
Member Avatar for toferdagofer
0
134
Member Avatar for iceman709

Hi, thanks for reading my post. A brief background, I just started a Business Information Systems program. I am three weeks into my Java program so my experience with Java is little. The problem I am trying to solve is a 2 part question. I take pride in my work …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for asian_al

I need to change this program that I made to an applet. I can't seem to get java to paint. Do i need to use a content pane? I tried using a content pane which was commented out. I must be missing something. [CODE] import javax.swing.JApplet; import javax.swing.*; import java.awt.Color; …

Software Development java java-swing
Member Avatar for NormR1
0
103
Member Avatar for MothershipQ

I have a 200 point program to write for school that says how much extra grain will be left in the silo and Tomorrow is the last day to turn it in. But something is wrong with my while loop. Could you help me out? Also, I'm writing this code …

Software Development c++ programming-construct
Member Avatar for gerard4143
0
136
Member Avatar for nikolai090

Hi there, is it possible leave a scanf blank? For example my code is: [code=c]scanf("%s%s",&a,&b);[/code] After entering the string for "a", I would like to leave "b" blank so I press enter but it just jumps over to the next line, is there a way to leave a "b" blank? …

Software Development c
Member Avatar for nikolai090
0
117
Member Avatar for akinfemi

pls my eclipse galileo int r = GImage.getRed(pixel); int g = GImage.getGreen(pixel); int b = GImage.getBlue(pixel); also int [][] array = image.getPixelArray(); as an error like its not in the library... anyone pls

Software Development java
Member Avatar for akinfemi
0
259
Member Avatar for shinnie

I'm writing a program about words game. The program is working fine but i'm having trouble in reduce the array to size 5.that mean the user only can input 5 times then the program shut down Anyone have any ideas?

Software Development java
Member Avatar for jon.kiparsky
0
293
Member Avatar for Newtype

Write a short program that takes an integer value (call it n) from the user and prints out a triangle composed of O and X characters. For example, if the user enters 3 as the input, your program should print out: O OX O X O If the user enters …

Software Development c++
Member Avatar for Newtype
0
170
Member Avatar for TheBaby7591

I'm supposed to create a program that reads in the name of a file, then takes the names of students, which are listed (last, first, m) and concatnate the first with the last (firstlast) and add .dat at the end for each student to open a file with and unknown …

Software Development c file-system
Member Avatar for TheBaby7591
0
114
Member Avatar for DanielWuVB

can somebody tell me which book for beginner in C++ .... I have some background in VB6 in old time ... Thanks !

Software Development c c# c++
Member Avatar for DanielWuVB
0
132
Member Avatar for toshiro101

hi! i really need a java word counting program. . . . an example input: input=> hello there!, hi! output=> hello = 2 there = 1 i hope you guys can help! i really need this! thanks in advance! by the way it should run under command prompt! thanks!

Software Development java
Member Avatar for NormR1
0
161
Member Avatar for iwanttolearnc

good day guys. i was studying a particular block of code and came across an operator: ->. im not exactly sure what it does. i found some notes saying that ptr-> is equivalent to(*ptr). for the life of me i just cant see how that applies here. care to help? …

Software Development c
Member Avatar for iwanttolearnc
0
100
Member Avatar for lewashby

Minimal Server [CODE]import socket s = socket.socket() host = socket.gethostname() port = 1234 s.bind((host, port)) s.listen(5) while True: c, addr = s.accept() print 'Got connection from', addr c.send('Thank you for connecting') c.close()[/CODE] Minimal Client [CODE]import socket s = socket.socket() host = socket.gethostname() port = 1234 s.connect((hos[/CODE]t, port)) print s.recv(1024) These …

Software Development client-server python
Member Avatar for Gribouillis
0
125
Member Avatar for myk45

Hello. im having a little problem with file inclusion. im getting the following errors: error LNK2005: "long * addresses" (?addresses@@3PAJA) already defined in rere.obj fatal error LNK1169: one or more multiply defined symbols found My 3 files are as follows: mainFile.c [CODE]//Program for a singly-linked list #include "def.h" #include<stdio.h> #include<stdlib.h> …

Software Development c linked-list
Member Avatar for myk45
0
107
Member Avatar for pnelsonsr

Been out in the non-NetBeans world for a while and I'm trying/needing to get back but having a problem. My app dir structure looked like this: /conf /log /data /src/com/myapp/myapp.java /src/com/myutils/myutils.java I used new project and selected import from existing sources in NetBeans. OK so far so good. The myapp.java …

Software Development data-structure java java-netbeans
Member Avatar for pnelsonsr
0
137
Member Avatar for flyingcurry

The task is to use a recursive algorithm to determine the sum of two numbers n1 and n2. I just keep on returning to using the formula n1*n1 +n2*n2 The part which I have questions is I don't get how to do this in a recursive way. Thanks!

Software Development algorithm java
Member Avatar for flyingcurry
0
2K
Member Avatar for Meleeruler

Alright, here's a problem I can't seem to figure out. I'm very new at all this, so hopefully this problem isn't too ridiculous. Basically the gist of it is in a program I made for a class; it wouldn't let the input for the cin.getline be typed unless I put …

Software Development c++
Member Avatar for Meleeruler
0
259
Member Avatar for Buffalo101

I'm trying to read one line at a time from a .txt using FileInputStream. [code=Java] FileInputStream in = null; // Open an input stream in = new FileInputStream("out.txt"); int c; while ( (c = in.read() )!= -1 ) textArea2.append(new DataInputStream(in).readLine() ); in.close(); [/code] For this out.txt: [code=java] abc abc lalala …

Software Development java
Member Avatar for Buffalo101
0
85
Member Avatar for xterradaniel

I am having trouble coming up with formula to print a triangle of numbers in a panel. I can print them to a specified number, of my choosing, but I can't seem to come up with a formula to print them out according to the size of the frame and …

Software Development gui java java-swing
Member Avatar for NormR1
0
207
Member Avatar for red999

Are there any Java documentation similar to the one at [url]http://www.cplusplus.com/?[/url] I have checked the official Java documentation at the Sun website, but it does not show as much information as the one that I use for C++. For one thing, there are no example codes =(

Software Development java
Member Avatar for red999
0
68
Member Avatar for TinhornAdeniyi

[CODE][/CODE]ok this code has a few quirks that is annoying me the only part that does not straight up work is the Add a show i have a problem in increasing the size of the array. there is also the issue of couting two zeros for the minutes of the …

Software Development c++
0
81
Member Avatar for BboyRodimus

So the prompt is here: Assignment #2 will be the construction of a program that reads in an unspecified number of integers from standard input, performs some calculations on the inputted numbers, and outputs the results of those calculations to standard output. The numbers could be delimited by any kind …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for newbiecoder

I took these codes from Deitel's book directly, I tried them at both Linux gcc and Codeblocks on Windows and they both gave errors. Can you tell me why I am getting these errors? Am I doing a mistake by compiling them? Here is the code: new.cpp: [CODE] #include <iostream> …

Software Development c++
Member Avatar for newbiecoder
0
160
Member Avatar for gisek

Hi, I'm trying to create a multiplayer game and I'm wondering if it will be useful to use threads and also how to use them. There would be the following actions in the game (on linux server): 1) server checking if clients are still connected 2) collision detection 3) processing …

Software Development c++
Member Avatar for Ancient Dragon
0
153
Member Avatar for fukki

Hello ! I have array of struct and i want 1] when i run the program to load the data from it. 2] when i make changes to be saved in the text file the same time or when i quit the program I tried to put data in txt …

Software Development c++ data-structure
Member Avatar for Nick Evan
0
2K
Member Avatar for fukki

Hello ! I have array of struct and i want 1] when i run the program to load the data from it. 2] when i make changes to be saved in the text file the same time or when i quit the program I tried to put data in txt …

Software Development c++ data-structure
Member Avatar for Ancient Dragon
0
549
Member Avatar for arjen

hello guys can u help me with code. Everytime i run the program and update the data in database. I got the error in this code [CODE]da.Update(ds, "reservationdata")[/CODE] [CODE] Dim dt As DataTable = ds.Tables("reservationdata") If resno.Text = "" Or custname.Text = "" Or custaddress.Text = "" Or TextBox1.Text = …

Software Development vb.net
Member Avatar for arjen
0
247
Member Avatar for kuchick32

I have a problem. I got my file to open but I don't know how to modify the file and have the output I need. Here is my code so far [code] #include <fstream> #include <iostream> #include <cstdlib> int main() { using namespace std; ifstream input; ofstream output; input.open("input.txt"); if …

Software Development c++
Member Avatar for kuchick32
0
107
Member Avatar for Xufyan

I've create a program for the array of objects, here is the code..! [CODE]import java.io.*; class Student{ int rollno; String name; public void setValues (int rollno, String name){ this.rollno = rollno; this.name = name; } public Student getValues(){ Student s = new Student(); s.rollno=this.rollno; s.name=this.name; return s; } } class …

Software Development java
Member Avatar for NormR1
0
231
Member Avatar for talha06

Hello to everyone, I'm trying to setup a Spring MVC project. I posted my configuration files below. I'll be really glad if someone helps me. Thanks in advance, With regards, Talha. [B]web.xml[/B] [CODE]<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>local</display-name> <context-param> <param-name>webAppRootKey</param-name> <param-value>webapp.root</param-value> </context-param> <context-param> <param-name>log4jConfigLocation</param-name> …

0
142
Member Avatar for srikanth2321

Hi, I written this code to calculate the clusters with the points taken from a datagridview. It works fine for small number of data points. But taking lot of time(nearly 15 mins) to run for 1000 rows and 5 columns in a datagridview. Is there a way to make it …

Software Development
Member Avatar for srikanth2321
0
129
Member Avatar for Mikeysaxton

Okay so the object is to print a wheel based on the user's input of the inner and outer radii. I've written a program that checks to see if the distance of the x and y is within the radius. However, i get some weird stretched out tire. If anyone …

Software Development c
Member Avatar for Mikeysaxton
0
203
Member Avatar for coolhunk

Hi, I am trying to develop a chess game using textual interface. I am using console read to capture moves and update the board accordingly. I am unable to remove Jlabel from the JPanel, i have called sthng lyk panel.remoove(label).......Can any one help me to sort it out plz or …

Software Development java
Member Avatar for coolhunk
0
118
Member Avatar for fukki

I have read many topics regarding sort but i wasn`t able to sort them. I am new in C++. What changes i must do to sort the names alphabetically ? [code]#include "stdafx.h" #include <iostream> #include <string> using namespace std; class classroom { public: string studentName; void classroom::createStudent(string); }; void classroom::createStudent(string …

Software Development c++
Member Avatar for fukki
0
146
Member Avatar for Buffalo101

Hello, I have a jTextArea I want to use as an accounts panel by an administrator. The admin can append user + " " + password + " \n" to the jTextArea (one line per user + password). When someone tries to log in, the idea is to iterate through …

Software Development java
Member Avatar for Buffalo101
0
187

The End.