132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Bhargavi V

Hi all, I am getting the following error when I am loading the data into the ComboBox and the ComboBoxes are linked to each other I am getting the errors as below Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at client.cpm.dailyT20.CBRCPMDailyT20View.appComboBox_actionPerformed(CBRCPMDailyT20View.java:235) at client.cpm.dailyT20.CBRCPMDailyT20View.access$1(CBRCPMDailyT20View.java:234) at client.cpm.dailyT20.CBRCPMDailyT20View$2.actionPerformed(CBRCPMDailyT20View.java:227) at javax.swing.JComboBox.fireActionEvent(Unknown Source) at javax.swing.JComboBox.contentsChanged(Unknown Source) at …

Software Development dataset java java-swing open-source session
Member Avatar for Bhargavi V
0
582
Member Avatar for ftl25

Hi guys, I need to write a piece of code which takes two strings (char arrays) containing hex values and perform an AND operation on them. (The aim is to mask bits from the first value). A Mask value of all Fs means that we don't want to mask any …

Software Development c++
Member Avatar for ftl25
0
114
Member Avatar for challarao

Hi! I have been learning c language on linux for two months.Today I have changed to Windows and don't know how to ,where to write programs and compile them and execution.Please exlain me. (Windows-7,acer) Thanx.

Software Development c
Member Avatar for Auraomega
0
314
Member Avatar for mbrown686886

Hi Daniweb Community, I have a application that opens a pdf viewer and I would like to email the current(one in the pdf viewer) as an attachment in Outlook. I have listed the code below that opens the pdf viewer and I have listed the code to send an email …

Software Development microsoft-office pdf vb.net
Member Avatar for msrd
0
460
Member Avatar for furqankhyraj

[code]Hi every one, i have to choose a project kindly give me idea what type of project i choose in c language i will rate my self 4/10 reply earlier because i don't have more time thanks[/code]

Software Development c
Member Avatar for creeps
0
104
Member Avatar for patilsunil47
Member Avatar for stultuske
0
73
Member Avatar for blknmld69

My program compiles and runs but its not outputting correctly. The program should check the file valid_accounts.txt and compare it to the users input. If the account is found int the valid_accounts.txt the output should display "That account number is valid.". I get "You did not enter a valid account …

Software Development java
Member Avatar for stultuske
0
215
Member Avatar for Isha810

Hello everyone, I have tried the code for start and stop time and been successful in doing so.Now I am trying to compare values of start and stop time as shown below in the code. I have used two masked txtbox. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using …

Software Development
Member Avatar for Isha810
0
222
Member Avatar for martin_anastaso

Hello all, I am getting the following linker error when I try to pass an object of type "string" to a function. Otherwise, the code compiles correctly. exercise_3.10.obj : error LNK2019: unresolved external symbol "void __cdecl reshuffle(unsigned int,unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?reshuffle@@YAXIIV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main Here is …

Software Development c++
Member Avatar for martin_anastaso
0
208
Member Avatar for susin

What are all the possible stamements that can be used in C, instead of printf and scanf statements?

Software Development c
Member Avatar for Auraomega
0
283
Member Avatar for shelly1234

Hi all, I am new to C#,i just need your help in figuring out the issues. I have two windows forms :"background form " and "foreground form". 1)minimise the background form when foreground form is minimised. 2)move the "background form" when "foreground form is moved" Please tell me how to …

Software Development
Member Avatar for shelly1234
0
151
Member Avatar for applepomme

for (i=0, i<imax, i++) { // ... Array< complex<float>, 3 > matrix(x,y,z); // x,y,z are large and vary in each loop // ... // matrix <=== values for each element assigned // ... // now want to write "matrix" in a single binary file. // later, this matrix can be …

Software Development apple c++ matrix-multiplication
Member Avatar for chiwawa10
0
191
Member Avatar for gudads

I know.. i am dumb, the simple logic is difficult for me.. get 5 numbers from user, and compare, which is largest and smallest, no array should be used. please help?

Software Development java
Member Avatar for peter_budo
0
1K
Member Avatar for amoon108

hi... what we need to send sms from pc to mobile and how using java?? plz help me if you can thx

Software Development java
Member Avatar for stephen84s
0
541
Member Avatar for pnelsonsr

Just a concept that has eluded me... Anyone who can help make this understandable would be a God send. in the directory c:/dev/myapp I have the subdir src/com/mycompany/myapp/MyApp.java which consists of [CODE] package com.mycompany.myapp import com.mycompany.MyUtil public class MyApp { public static void main(String args[]) { new MyApp(); MyUtil.Say(); } …

Software Development java
Member Avatar for JamesCherrill
0
104
Member Avatar for dustbunny000

Hi I am VERY new to python. I am trying to write a function that returns lines from a text file to a new file. I can't seem to get it right. So far my code looks like this: [CODE]def seperate_atoms(f):#Enter .pdb file in with quotations myfile=open(f,'r') crudepdb=myfile.readlines() cleanpdb=[] for …

Software Development python
Member Avatar for Beat_Slayer
0
148
Member Avatar for StacyAnn1296

Daily life magazine wants an analysis of the demographic characteristics its readers. The marketing department has collected reader survey records containing, the age, gender, maritial status, and annual income of the readers. Design an application that allows a user to enter reader data and, when data entry is complete produces …

Software Development java
Member Avatar for Nick Evan
0
158
Member Avatar for sushil490023

hiiiii plz can any body tell me how to dram following pattern in java using for loop 10001 01010 00100 01010 10001 such that number 1 form diagonal thanks

Software Development java
Member Avatar for sushil490023
0
83
Member Avatar for hurbano

im trying to run this code that adds a name and displays it. i keep getting the same message. can anyone tell me what i have done wrong? thank you. [code=cplusplus] #include <iostream> #include <string> using namespace std; class treenode { public: string data; treenode * left; treenode * right; …

Software Development c++
Member Avatar for chiwawa10
0
134
Member Avatar for solitaryy

Hi I have a file (.txt) I need my program to read that stores information like this: [CODE]Thomas 2000 Bill 3000 Jake 3500[/CODE] At which point I need to have the user input via cin, [I]name of the person[/I] ie: Jake and have them input another cin(double) which will multiply …

Software Development c++
Member Avatar for chiwawa10
0
94
Member Avatar for tylermlarson

I have to do a program for my C++ class, and we have to write all programs using gedit on ubuntu and run them all using the terminal command prompt. I dont know what the whole ./a.out is, and all i have for my program is [CODE]// This program will …

Software Development c++ ubuntu
Member Avatar for VernonDozier
0
118
Member Avatar for dre-logics

I use Visual Basic 2008 + MySQL Database I have create a textbox1.text MySQL Table [COLOR="Green"]Test[/COLOR] with Two Columns: Column Name DataType RecordID INT(11) Money Decimal(10,2) [CODE] TextBox1.Text = "€ 22,07" [/CODE] I want the [COLOR="green"]contents[/COLOR] of field [COLOR="Green"]textbox1.txt [/COLOR]save it into [COLOR="green"]money[/COLOR] in the column of the [COLOR="Green"]Test[/COLOR] table! …

Software Development mysql vb.net visual-basic
Member Avatar for dre-logics
0
587
Member Avatar for pnelsonsr

A group has been using a VB app for a while and it uses an access db as its data storage. I've been tasked with completely redoing this in java. The application will be self-contained with the data local (with internet updates), but not a central connection to a db. …

Software Development java storage
Member Avatar for ~s.o.s~
0
79
Member Avatar for alcx88

[CODE] #include <stdio.h> 5 6 #define MAX 100 7 8 int main(void) 9 { 10 char msg1[MAX], *p, *q, msg2[MAX]; 11 12 printf("Enter a message: "); 13 for (p=msg1; p<msg1+MAX; p++) 14 { 15 *p=getchar(); 16 if (*p=='\n') 17 break; 18 } 19 20 for (p--; p>=msg1; p--) 21 { …

Software Development c++
Member Avatar for chiwawa10
0
96
Member Avatar for zulhimi89

anyone can help me to merge a data from potrait to landscape...or else dont hav any solution for this

Software Development sql vb.net
Member Avatar for zulhimi89
0
91
Member Avatar for swathys

hi, How to code, if let say i want only 10 records to inserted in listview. By mean listview only can accept 10 records. please guide thank you

Software Development listview vb.net
Member Avatar for codeorder
0
205
Member Avatar for MisterBook

I've written a flexible quicksort module capable of taking a vector reference pass, cloning it, altering the clone and swapping with the original to print the list. For the most part, this works wonderfully, except for one thing. Occasionally, it gets numbers wrong. Not all the time. If I give …

Software Development algorithm c++
Member Avatar for MisterBook
0
133
Member Avatar for b1izzard

Hi all, I got this Error Message while I try to preview the records in Dataset Designer: "The connection string could not be found or Data provider associated with the connection string could not be loaded" Here is my dataset.xsd code [CODE] <Connections> <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="loginConnectionString1" IsAppSettingsProperty="true" Modifier="Assembly" Name="loginConnectionString1 (MySettings)" …

Software Development assembly dataset vb.net
Member Avatar for MaKhalid
0
509
Member Avatar for Katana24

Right so I have a pretty simple code that draws the contents of a 2D array onto a panel and the panel is placed onto a frame. The array is of type String and just houses a number of different fruit. The problem is that when the contents is painted …

Software Development java java-swing
Member Avatar for Ezzaral
0
2K
Member Avatar for LevyDee

Im trying to create an object of my CAMERA class in my APP class, but I am getting the error: error C2146: syntax error : missing ';' before identifier 'myCam' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C4430: missing type specifier - …

Software Development c++
Member Avatar for LevyDee
0
110
Member Avatar for gudads

// I have no knowledge of using gcc compiler. Can some1 please help my creating my first program in c on mac book.... saving on desktop. //saving as testing.c on desktop .. // Creating C program #include<stdio.h> int main(void) { int x=2; printf("X=%d",x); return 0; } Building target “PracticeC” of …

Software Development c
Member Avatar for knobcreekman
0
284
Member Avatar for flyingcurry

I am writing a program for class on catching exceptions. Everything compiles fine, but when I try to test my error trapping, this shows up. [COLOR="Red"]"How many integers would you like to enter? f Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 This is not a correct integer, please try again. Before: …

Software Development java
Member Avatar for flyingcurry
0
177
Member Avatar for bangor_boy

I need help with this, im writing a league system and i need to order the teams by the points they have received max to min, im lost to where to begin any help would be good. [code] public class League { /* instance variables */ private Team name; private …

Software Development java
Member Avatar for Ezzaral
0
157
Member Avatar for LianaN

Hi! Does anybody know how to add MouseListener to JMenu? I have the following working code, however, as you may see, I have MenuListener that allows running "createBaseRight" after selecting (NOT CLICKING) JMenu: home. Thanks in advance! [CODE] JMenuBar menubar = new JMenuBar(); this.setJMenuBar(menubar); JMenu home = new JMenu("Начальная страница"); …

Software Development java
Member Avatar for NormR1
0
180
Member Avatar for GHETTO COWBOY

HI I am currently in a college level programming class studying C, I've been enjoying coding and have seriously thought about it as a career... up until now. here is the link to the homework assignment if anyone is interested: [URL="http://www.engineering.uiowa.edu/~cie/Homework/hw02.htm"]http://www.engineering.uiowa.edu/~cie/Homework/hw02.htm[/URL] In short I have to create 2 matricies using …

Software Development c career engineering
Member Avatar for Adak
0
114
Member Avatar for javadumbass

I need to create a program where in you would draw a line, just like the paint application, but if you drag it, the lines you created would be deleted.It also displays the(x,y) where your mouse point at in the screen. I'm starting on nothing.So anyone who can help me? …

Software Development java
Member Avatar for javadumbass
0
1K
Member Avatar for Shotty

Hey just started working with inheritance in my java class, my account class compiles fine, but i get a .class expected error when i try to compile the CheckingAccount class, can anyone tell me why? thx [CODE] package bank; abstract class Account { public Account(int accountNumber, String accountOwner) { number …

Software Development java
Member Avatar for Shotty
0
259
Member Avatar for NewOrder

i have two codes: This one works. [CODE] public class ChessInterface1{ public static void main(String[] arg){ boolean valid4=false; int rowStart=8; int columnStart=3; int columnEnd =2; int rowEnd=1; int a=0; int size=rowStart-rowEnd; Math.abs(size); for(int i=rowStart-1;i>=rowEnd;i--){ for(int j=columnStart-1;j>=columnEnd;j--){ while(columnStart>columnEnd && rowStart>rowEnd){ rowStart--; columnStart--; a++; System.out.println("comparable variable is :"+a); System.out.println("The column number is …

Software Development java
Member Avatar for NewOrder
0
107
Member Avatar for LianaN

Hi buddies! I'm creating an application that will be used at different operating systems and, most likely, different display resolutions. My current display resolution is 1680x1050. I've tried using layouts to position components in the frame. So, I didn't define any sizes of components (did't use "setSize", "setBounds", setLocation"). However, …

Software Development display java operating-system
Member Avatar for Ezzaral
0
152
Member Avatar for LianaN

Hello! I have a problem with filtering JTable (AbstractTableModel)... So, this is my code: [CODE] //Create table and filter public TableRowSorter<MyTableModel> sorter; public static MyTableModel tableModel; ... //Define table and fill it with List "userDataList" List<UserDataRow> userDataList = readuserdatafromfile(); filetree.Form.tableDetails = new JTable(); tableModel = new MyTableModel( userDataList ); filetree.Form.tableDetails.setModel(tableModel); …

Software Development java java-swing regex
Member Avatar for adams161
0
536
Member Avatar for bmos31

I was just wondering how to pass two objects s1 and s2, both of which have to arguments, to a function, someFunction(). I actually only want to pass the second argument of each object for s1 and s2 to the same function, compare the two arguments and then display some …

Software Development c++
Member Avatar for bmos31
0
167
Member Avatar for smoothe19

How do i write a source code in java that finds the non-trivial factors of a number e.g Case : 2 is prime. Case : 3 is prime. Case : 5 is prime. Case : 7 is prime. Case : 10 has factor(s): 2 5 Case : 12 has factor(s): …

Software Development java
Member Avatar for Akill10
0
592
Member Avatar for tgiller

Hello I have a problem with my vba collection object. When I run the code below I get the "out of stack space (error 28)" message. It seems to me that my collection shouldnt take up so much memory as the each object in it is just a set of …

Software Development motherboards-cpu-ram visual-basic
0
103
Member Avatar for CodyOebel

I am programming in windows api, and I am familiar with using the ScreenToClient() function, and passing in a POINT structure variable for LPARAM with the coordinates defined in the point struct to simply send mouse clicks and so forth to the window in which I have the handle to. …

Software Development api c++ windows-api
Member Avatar for CodyOebel
0
142
Member Avatar for dkolcun

I'm very new to prgramming (in my first Programming class) and have a question about division. My project is to build a math flashcard program. I've gotten every thing else done but having trouble with the division. Where I'm having a problem is when the user inputs the correct answer …

Software Development c++
Member Avatar for dkolcun
0
113
Member Avatar for mjs051

I'm currently learning Python, and at the moment I'm writing a simple grocery list program. At one point in the program, the user is asked how many items are on their shopping list. What I want to do is take the number that the user inputs (lets say it's 5), …

Software Development python
Member Avatar for TrustyTony
0
9K
Member Avatar for simpatar

Here's the problem. I'm using pythons re-functions. I'm supposed to make a re-function to check if a string ends with 3 numbers(or more) before the extension.(e.g. 123.txt, 93821.ini) Here's my code that's supposed to do the magic [code] re.search('[0-9][0-9][0-9]\.','1234.txt') [/code] now, this doesn't work out. And I have no clue …

Software Development python
Member Avatar for simpatar
0
119
Member Avatar for StacyAnn1296

Daily life magazine wants an analysis of the demographic characteristics its readers. The marketing department has collected reader survey records containing, the age, gender, maritial status, and annual income of the readers. Design an application that allows a user to enter reader data and, when data entry is complete produces …

Software Development c++
Member Avatar for kes166
0
322
Member Avatar for Suzie999

I wonder if someone can point me toward some native functions to help me locate the physical co-ordinates of a flash object on a webpage. Its not static and depends whether there are advertisements on the page and other user specific options. Unfortunately I have no code yet as I'm …

Software Development flash
Member Avatar for Suzie999
0
129
Member Avatar for suvcss

Hello! I was making simple programm for word search, but found an error I can't explain. This code piece of code that causes it is: if (word==search){ printf("\n %i %s ", i, word); i++; } I can only suppose that the compiler(visual studio express) dosn't support such comparisions of sth …

Software Development c visual-studio
Member Avatar for suvcss
0
2K

The End.