132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for arjunpk

Hi... I have a fixed size array in my program..... but in order to make the program memory efficient.... i want to make it an ArrayList... can someone please explain how to do this..... i have posted my code below... [CODE] class StaticColumn { public TextBox[] textBoxes = new TextBox[1000]; …

Software Development
Member Avatar for arjunpk
0
174
Member Avatar for surfdude167

Hi this isnt wrking i need help!!!! [code] import javax.swing.*; import java.awt.event.*; import java.awt.*; //used for layout manager import java.util.Random;; class GuessGame extends JFrame { private JButton newButton; private JTextField gField; //stands for guess field private JLabel firstPrompt, enterLabel, userMessageLabel; private int randomNumber, userGuess; private int counter = 0; private …

Software Development gui java java-swing
Member Avatar for stephen84s
0
142
Member Avatar for Skabix

I am converting seconds to minutes, hours, days. For some reason I have an issue with the days not calculating when running the program. The 'if' statement seems completely ignored by the program. I think this may be caused by the warning I get. Any help would be greatly appreciated …

Software Development c++ programming-construct
Member Avatar for Skabix
0
1K
Member Avatar for boliviano3

I'm having a couple of problems w/ getting the program to end when the user enters 'Q' after they've been asked if they want to try again. Also, after enter a negative int is entered for employee id then either the program moves to displayEmployeeInfo & shows the info that's …

Software Development c++
Member Avatar for boliviano3
0
176
Member Avatar for TinyBelly

I have this error --------------------Configuration: <Default>-------------------- Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at java.awt.Container.addImpl(Container.java:1041) at java.awt.Container.add(Container.java:959) at javax.swing.JFrame.addImpl(JFrame.java:540) at java.awt.Container.add(Container.java:365) at ticketReservation.<init>(ticketReservation.java:114) at bookAngels.actionPerformed(bookAngels.java:163) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6267) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6032) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at …

Software Development java java-swing oop
Member Avatar for stephen84s
0
149
Member Avatar for Sturdy

Hi All, I try to make count down timer but. This following is my code but it just decrease one time and stop. [CODE]Dim TCount As Integer Private Sub Form_Load() TCount = 30 Label1.Caption = "30" End Sub Private Sub Timer1_Timer() Label1.Caption = TCount - 1 If TCount = 0 …

Software Development visual-basic
Member Avatar for Jx_Man
0
465
Member Avatar for chinee

how do you print out to a text file in tabular form like the soccer teams and their info.

Software Development java
Member Avatar for chinee
0
59
Member Avatar for vb2learn

Well, i really don't know, maybe the title would be in appropriate. Here's my problem: Textbox1.text = [CODE]abcd sadsadasdas dsad as das d 1234[/CODE] After parsing between [TEX]abc[/TEX] and [TEX]1234[/TEX] It shows [TEX]sadsadasdasdsadasdasd[/TEX] However it should also contain spaces. Here's my piece of code: [CODE] Dim daniweb As String = …

Software Development vb.net
Member Avatar for Smith5646
0
97
Member Avatar for ayan
Member Avatar for fin4424

Hi so basically im pretty sure i have all my code right and its compiling but for some reason when i run it the frame will load and then quit on me without saying anything i dont know why here is my code [CODE] import javax.swing.*; import java.awt.event.*; import java.awt.*; …

Software Development gaming gui java
Member Avatar for fin4424
0
261
Member Avatar for MSoft

How can we make of the game through Java Means programming games in Java How? please help me guys!!!:'(

Software Development java
Member Avatar for VernonDozier
0
205
Member Avatar for cafegeo

I am writing a program that accepts an input file of 10 items each having revenue across 4 quarters. In this particular function I have to determine if the items profit has steadily increased, decreased or went up and down across the 4 columns, or quarters(qu) as they are referenced …

Software Development c++
Member Avatar for VernonDozier
0
2K
Member Avatar for koveras vehcna

Hi everyone, I have created a random text generator -ok, not so random, works with certain parameters- and at times it runs slowly. I looked up on the internet about speeding tricks and applied some of them that looked concurrent with my code piece. The code however, is still slow …

Software Development algorithm python seo session
Member Avatar for woooee
0
206
Member Avatar for g-pita

Hi I'm trying to create a program that gathers data from some ADC connected and do some averaging on the data. It's build up around classes containing systeminterface and sensors making a datamodel. The program is pretty big, but has worked intil implemention of pthreads I wanted to create a …

Software Development c++ oop
0
116
Member Avatar for cableguy31

I'm having a problem writing an unsigned char array to a file. When I write it to stdout using printf, it displays properly, however if I write it to a file, when I open it, I can't read the file. It looks like it may be writing the file in …

Software Development c++ file-system
Member Avatar for Narue
0
741
Member Avatar for bops

How would one read an encrypted file's (encrypted using windows' EFS) header? I would like to be able to read the header and extract FEK that was encrypted by either the public or private key of the file. From reading up I understand the structure of the file header I'm …

Software Development c++ file-system
Member Avatar for grehe
0
481
Member Avatar for pengkeanh

Hi All, I am working on optimizing the memory usage of my codes and I found a problem that I do not understand. Please let me know what you think. Code: [CODE]typedef map <pair<string, int>, vector<pair<int, float> > > TDM; void parsefile (TDM & my_map, string in_file); // parse input …

Software Development c++
Member Avatar for Aranarth
0
290
Member Avatar for charchar88

I'm trying to get a C version of this game working on my computer using gcc on ubuntu. [url]http://www.lemoda.net/c/boggle/boggle.html[/url] I have no need for a pearl script or anything since I just have a simple dictionary text file and want to be able to just load in the text file …

Software Development c ubuntu
Member Avatar for TrustyTony
0
377
Member Avatar for ichigo_cool

I'm working on a map editor and the tiles show up i a file as [CODE]1, 0, 0, 1, 1, 0, 1, 1[/CODE] so here's a 4x2 map. I'm wondering how can I parse out the integers from the commas and assign them to a multidimensional array so that \i …

Software Development c++
Member Avatar for ichigo_cool
0
4K
Member Avatar for pratibhamohanty

Hi, can anyone out there help! I have a default form and a button. On click of that button I want to export a particular crystal report(without actually displaying it) to pdf format and store it in a folder named as temp. Is it possible? Thanks in advance,

Software Development pdf vb.net
Member Avatar for Ronln
0
3K
Member Avatar for shyla

my question is: Write a function that accepts an integer parameter and returns its integer square root. The function should throw an exception if it is passed an integer that is not a perfect square. Demonstrate the function with a suitable driver program. i am getting that : Error 1 …

Software Development c++
Member Avatar for shyla
0
2K
Member Avatar for cableguy31

First, yes this is a school project. That said, I have a seed, now I need to create a function that will create a byte array of random bits. The input for the function should be the number of requested random bits. Here's an example: [CODE]unsigned char* getRandomBits (int number);[/CODE] …

Software Development c++
Member Avatar for cableguy31
0
138
Member Avatar for afnan92

hello i am new to this forum i am basically stuck with this programme and i need help....it is a brick game....i want to move the ball and slider at the same time without using threads....i am allowed to use the gotoxy function arrays and pointers thats it can anyone …

Software Development c++
Member Avatar for WaltP
0
84
Member Avatar for cableguy31

Is there a way to gather network/internet traffic statistics? The end result is that I need to create a random number generator using some network stats as a random seed, so I need to pull information that is highly variable. Could be packet data (maybe sequence numbers), or traffic data …

Software Development c++
Member Avatar for cableguy31
0
324
Member Avatar for Stogie2

I am looking for the correct way to initialize an array data member and why the following code produces the listed error. Thanks... [code] typedef struct tagsX { tagsX(int u, int v): a(u), b(v) {} int a ; int b ; } sX ; typedef struct tagsY { tagsY(sX *p, …

Software Development c++
Member Avatar for Stogie2
0
215
Member Avatar for sushanth08

hi, im still a novice in c# programming im developing a windows form in visual studio 2010(krypton toolkit) in c# .net platform. i have a datagrid view in my form named stage2grid which contains a column called layout id. when i make changes to this layout id column which is …

Software Development visual-studio
Member Avatar for Mitja Bonca
0
4K
Member Avatar for CitizenSnips

This is a program I have to submit in a few hours that checks whether numbers are prime or not. I have it to the point where is tells me the correct answer, but for some reason my loop is infinite. I'm just in an intro class and I was …

Software Development visual-basic
Member Avatar for Jx_Man
0
161
Member Avatar for Wakesta

Someone help/direct me to understand where I have made the below errors from the build report? [CODE] #include <iostream> using namespace std; int main() { } void "welcome_screen"() { clrscr(); textcolor(RED); gotoxy(10,10); cout<<"**************** W E L C O M E *********************** "; gotoxy(15,12); cout<<"*** T O M A N C …

Software Development c++
Member Avatar for Wakesta
0
208
Member Avatar for merse

Hi everybody, I have a simple mathematical member function of a class: [CODE] struct shell { double mc, ms, r0, v0, a0, w; shell(double mc, double ms, double r0, double v0, double w); double absv(double r) const; }; shell::shell(double mc, double ms, double r0, double v0, double w) { this->mc …

Software Development c++
Member Avatar for Narue
0
163
Member Avatar for bibiki

hey there, I downloaded the jxbrowser package that comes in the following folder jxbrowser-2.8-cross-desktop-win_mac_linux . I put it on a directory JavaBrowser on my desktop. I tried writing a java class that makes use of the package but my compiler complains for absence of the package. anyways, after reading the …

Software Development java
Member Avatar for mKorbel
0
131
Member Avatar for deeer

Hello, I have a question regarding reading a txt file and then putting the info in a link list. the problem is that the file contains 3 things to read a letter, a username and a password in the below format: S P2-output1.txt A Hanna hdfjuju first i must read …

Software Development c file-system
Member Avatar for Ancient Dragon
0
122
Member Avatar for yunus2807

Please could someone help with this Project thank you and would also be much appreciated. CD Collection Write a program that stores details of a CD collection. Level 1 maximum 50% (depending on implementation, demonstration, viva and documentation) must include the following:  Declaration and initialisation of variables  Separate …

Software Development java
Member Avatar for JamesCherrill
0
161
Member Avatar for TinyBelly

Hye guys...im trying to create ScrollBar Horizontal on whole frame, i keep trying and do some research but still fail...Please help me...What should i add. This is the code. [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class listOfMovies extends JFrame implements ActionListener { private JButton jbtBatman, jbtAngels, jbtFaster, jbtDueDate, jbtHuman, …

Software Development java java-swing oop
Member Avatar for mKorbel
0
208
Member Avatar for Howdydoody

Im having some problems with using the vector pushback method through a structure. The push back method works in one part of the code and not the other. Ive been staring at it for hours and testing different things and i cannot get it to pushback in the section of …

Software Development algorithm c++
Member Avatar for Howdydoody
0
484
Member Avatar for davidmhollis

I originally posted back in Feb. 2011 about needing to transform one xml file with another xml file.. thinking it would be a straight one for one transformation... but of course, it can't remain that easy! I now have to take multiple line items from the input file based on …

Software Development file-system xml
Member Avatar for davidmhollis
0
331
Member Avatar for Jaseem Ahmed

I have a MDI FORM, i have added a menu in it, now i want to add the pictures in that menu, but it is not displaying the pictures, while that same code i have tried on normal form, it works superb.but not working with MDI. [CODE]Option Explicit Private Declare …

Software Development visual-basic
Member Avatar for Jaseem Ahmed
0
130
Member Avatar for rustyone

I am using vb.net visual studio 2010 I have two comboboxes in the datagrid - one for Country and the other for State Province. Obviously the Country combo box controls what state/provinces to display. The trouble for rows with different countries - when the user is changing the state for …

Software Development vb.net visual-basic visual-studio
Member Avatar for richardd
0
318
Member Avatar for 650U

I have a question in Inheritance(Python): Write a class named Person with data attributes for a person's name, address, and telephone number. Next write a class named Customer that is a subclass of the person class. The Customer class should have a data attribute for a customer number and a …

Software Development oop python
Member Avatar for e-papa
0
241
Member Avatar for xanawa

HI, i have the following code and i am getting the error [CODE]private Reservation getReservationDetails() { Customer c = GetCustomerDetails(); ManagerCustomers mgrCustomer = new ManagerCustomers(); int customerID = mgrCustomer.SearchCustomerByIDCardNumber(c.IDCardNumber); DateTime reservationAdded = DateTime.Now; int numberOfPeople = Convert.ToInt32(nudNumberOfPeople.Value.ToString()); string dateOfEvent = dtpReservationDate.Value.ToLongDateString(); string timeOfEvent = dtpEventTime.Value.ToLongTimeString(); DateTime dateTimeOfEvent = Convert.ToDateTime(dateOfEvent + …

Software Development
Member Avatar for xanawa
0
1K
Member Avatar for laitingfei

I have a Computer Science project due Monday. We have to make a game and use GUI in order to ensure ourselves a good score. I decided to make Hang Man. The class reads in a txt file of common SAT words (I'm a sophomore in high school, so I …

Software Development gui java java-swing
Member Avatar for rebecca94
0
2K
Member Avatar for edensigauke

Hie guys, i am thinking of setting up an sms center which send sms' to subscribers. I would like to know where i can get as much research help as possible about sms centres and how they work. it would really help

Software Development java
Member Avatar for jwenting
0
163
Member Avatar for ashishnandwani

I am trying to update a JProgressBar in a for loop , The maximum size , I have set is equal to the size of the array which is computed upon and I am incrementing the value of the progress bar in the for loop.Here 's the code [CODE] private …

Software Development gui java
Member Avatar for ashishnandwani
0
199
Member Avatar for MeandJava

Hello everybody, I have a task to let an engine run. Now I want it to program that it runs once for 60 seconds and then stops. How can I do this? Timer is not an option because it don't need to repeat. Thanks in advance for your answers :) …

Software Development java
Member Avatar for MeandJava
0
163
Member Avatar for Sadun89

What is the best edition to learn java in basic.... Eg.. JavaSE JavaEE JavaME or if something else..... Is JavaEE [B]good [/B]for begin or [B]not [/B]? Why? What are the main differences between those editions.....

Software Development java
Member Avatar for Sadun89
0
133
Member Avatar for stobbz

[code=c] . . string line; vector<string>DataStore; ifstream file; file.open(fileName.c_str()); if (!file.is_open()){ cout<<"Error retrieving file " <<fileName<<endl; } while(getline(file,line)) { getline(file,line); stringstream lineStream(line); string bit; getline(lineStream, bit, ','); getline(lineStream, bit, '\n'); DataStore.push_back(bit); . . [/code] This piece of code takes a CSV and stores its data in a vector. The first …

Software Development c++
Member Avatar for stobbz
0
4K
Member Avatar for gulbano

Hey all Can any one tell me what is the basic difference between events and delegates :) Thanks

Software Development
Member Avatar for gulbano
0
128
Member Avatar for coding101

Do you think a hash table is a good data structure for implementing a priority queue? Any ideas?

Software Development data-structure java queue
Member Avatar for Lamthuy
0
142
Member Avatar for cwarn23

Hi, I am in need of a python ocr script that can convert images into text and for the script to work on BOTH windows and centos. All the scripts I have found seem to not be compatible with linux/centos or require an api to another server and I do …

Software Development api python windows-api
Member Avatar for cwarn23
0
167
Member Avatar for valter

I have an external dll that provides the time and date a photo has been taken I am getting an argumentexception for a certain image. I believe it is because it is a jpeg from a scan, so it doesn't have a datetime. My problem is that even with the …

Software Development
Member Avatar for valter
0
143
Member Avatar for Lamthuy

Hi, I have to read and store 70 millions of Double objects in a Vector. The problem is that it seems that Java will allocate 40 bytes of memory for each Double object and the memory amount we need to store such number of Doubles object is approximately 2.8 GB. …

Software Development java
Member Avatar for Lamthuy
0
162

The End.