43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Carrots

Hi there, I'm completely new to Java. I am trying to use [I]import[/I] in a project, but despite using what I think is the right code, my application fails to build. When I build my app, it builds and runs fine, but I want to use [I]JFileChooser[/I], so add this …

Software Development ide java java-swing
Member Avatar for Carrots
0
109
Member Avatar for SMITA6076

I have two classes. The first class is called [ICODE]EmployeePayRoll.java[/ICODE] (this compiles fine) and the second is called [ICODE]TestEmployeePayRoll.java[/ICODE] (this does not compile). The trouble I'm having is that I'm trying to pass in methods as parameters when I instantiate my objects in the main method of the test class. …

Software Development java
Member Avatar for SMITA6076
0
302
Member Avatar for arezz09

i create 2 combobox in form, comboproduct & combomodel. i using accessdatabase and using oledbconnection..database in debug folder... i create 1 table, i name it"stock" & 2 column.. first column is product,second model.. i wont load data in product column into comboproduct and model to combomodel..like binding data.. anyone help …

Software Development vb.net
Member Avatar for arezz09
0
331
Member Avatar for e-papa

Please I downloaded the latest version of python QT but I've been unable to use because i don't know how, help from the experts in the house. Thanks in advance

Software Development python qt
Member Avatar for e-papa
1
882
Member Avatar for GhostMonkey

Hi, I need some help writing a text file into an array. I've got the text file opening and displaying but its at the bottom of the page instead of where the array is. Would it work if I just set the position to (0,0)? Heres the code for the …

Software Development c++
Member Avatar for GhostMonkey
0
77
Member Avatar for ztdep

Dear friends: I write a vector class "vec" based on the template, i am confused greatly by the "const" keyword appeared at the left most when the = operator is defined. const vec& operator=(const vec & a) Could you please tell me what is the function of this "const". I …

Software Development c++
Member Avatar for mike_2000_17
0
184
Member Avatar for Tellalca

Hey there; I'm having trouble with fork() and wait() functions. In the code below I'm trying to create a child process and first let the child process do its work then parent process finish execution. I use wait() function in the parent process but the output shows that child process …

Software Development c++
Member Avatar for Tellalca
0
241
Member Avatar for Mark_48

Hi guys im having a lot of problems trying to code. I have opened a csv file and have read it using strings.I have splitted the strings by the ','. I want to load each of these values into a 2 dimensional array! but im having problems. Ultimatly i want …

Software Development mathematics
Member Avatar for Mark_48
0
157
Member Avatar for pseudorandom21

Hello, I'm hoping you can help me make a smart decision. I have some code written in native C++, a full program actually--and I need to use it with C#. The application is, at the moment, very basic. It has a console user interface, and settings need to be changed …

Software Development c c# c++ user-interface
Member Avatar for George Truesdel
0
788
Member Avatar for stereomatching

[code] template<typename anyFunctor = printTxt> //printTxt is somekind of functor void testFunctor() { anyFunctor f; } void testFunctor2() { testFunctor(); } [/code] 1 : if [b]type anyFunctor[/b] need 3 arguments to initialize it, what should I do? Do I have another way to make this become more adaptable except of …

Software Development c++
Member Avatar for stereomatching
0
135
Member Avatar for a.muqeet khan

[CODE]#include "stdafx.h" #include <iostream> using namespace std; class distance { int feet; float inches; public : distance ():feet(0),inches(0) {}; distance(float in,int ft): feet(ft),inches(in) {}; void getdist() {cout<<"enter the values of feeet and inches "; cin>> feet>>inches;} void showdist() {cout<<"feet= "<<feet<<"\n inches="<<inches;} distance add_dis(distance);}; distance distance::add_dis(distance d2) { distance temp; temp.inches= …

Software Development c++ visual-studio
Member Avatar for a.muqeet khan
0
169
Member Avatar for fonzi

so i am working on a assigment for school, and i need help with the java.util.Calendar , i am trying to increment the year of as today by one each index of an array . This functions needs to be inside a toString(). so i need some help i know …

Software Development finance java
Member Avatar for fonzi
0
226
Member Avatar for kumarmpk4u

hello all, i am working on a project where a 16 bit code has to be changed to a 32 bit code. it is a mfc multiple document interface. when i try to compile a dll file i get a error "fatel error c1083: Connot open pre compiled header file". …

Software Development c++
Member Avatar for drkybelk
0
517
Member Avatar for stefilina

Hy, could anyone please told me how can i move controls on a windows form when i click for example, on a button? When i click on a button i want to increase the height of my form and move a textbox and label a little down... Please help.Thanks

Software Development gui microsoft
Member Avatar for stefilina
0
256
Member Avatar for abhishek20

Hi, Is there any nice java API available for converting pdf to text file.

Software Development api java pdf
Member Avatar for abhishek20
0
307
Member Avatar for lil_miss_choc

I'm working through an exercise to create a short program to calculate E using the series 1 + 1/1! +1/2! + 1/3! + ... The summation has to stop when value of a term is less than a value entered by the user. The code I have to produce the …

Software Development c++ programming-construct
Member Avatar for lil_miss_choc
0
231
Member Avatar for arezz09

anybody knw how to build system inventory that multiuser..1 server and 1 more is client using lan connection..i dont no keyword to search in google..

Software Development client-server vb.net
Member Avatar for debasisdas
0
91
Member Avatar for pito_donje

Public Declare Function SystemParametersInfo Lib "user32.dll" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long x = SystemParametersInfo(97, 1, CStr(1), 0) 'Disable Ctrl+Alt+Del Keys combination 'Use as in --->>> If KeyAscii >= vbKeyA And KeyAscii <= vbKeyZ Or KeyAscii …

Software Development visual-basic
Member Avatar for Jx_Man
0
94
Member Avatar for e-papa

I tried to find the square root of a negative number while writing a function to solve quadratic equations but the interpreter said something , it said math domain error, what does this mean. Even though I've been able to solve the quadratic equation using complex numbers and i will …

Software Development python
Member Avatar for e-papa
0
19K
Member Avatar for xorinzor

Hello, I'm attempting to run my first program in vb.net and everything works BUT the array. Ive asked several experienced people and they have no clue what might be the problem. Here is the archive: [url]http://dl.dropbox.com/u/6072059/ArtificialLife.rar[/url] password: vbproject The problem occurs in the Maps.vb file on line 17 when the …

Software Development vb.net
Member Avatar for xorinzor
0
79
Member Avatar for leo88

Hi, i got some problems with remove and split: i have the outputs, as below: {1 2} 3 How to remove the syimbol {} and split the 3 ?for example. it will become 1 2 3 anyone know? Please help me..

Software Development c#
Member Avatar for Momerath
0
182
Member Avatar for triumphost

The code below is from my form.. I declared a string GLOBALLY.. Then upon FormLoad, It inserts values for the string... When I do button click, the string is blank.. Why is it blank? Shouldnt the Values from FormLoad Event be in it? : [CODE] public ref class Form1 : …

Software Development c++
Member Avatar for jonsca
0
121
Member Avatar for sumprit

Hi everyone...., i need some suggestion whether it is possible to perform actions for each click of a single JButton. What i mean to say that for each click of a single JButton is it possible to perform actions for each time the JButton is clicked? Please give me some …

Software Development java
Member Avatar for sumprit
0
83
Member Avatar for lxXTaCoXxl

Okay so this has been bugging me for quite sometime. I thought if I skipped it and came back maybe I might figure it out but I guess not. The basic idea is to let the user generate their own content into a list box, text box, and the content …

Software Development storage
Member Avatar for abelLazm
0
93
Member Avatar for triumphost

Can someone explain why it wont find the window?? I did everything right, Im pretty sure of it :S Yet it just wont find it. EDIT: Admin delete.. I think I just figured it out.. [CODE] private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { Form1::Visible = false; Query ^ F = …

Software Development c++
0
87
Member Avatar for divin757

I have an image for the background of the form I'm working on, but I had to increase the size of the form. Is it possible to have it scale the image instead of tiling? I could stretch it in photoshop but I was wondering if this was possible.

Software Development image
Member Avatar for lxXTaCoXxl
0
277
Member Avatar for lxXTaCoXxl

Okay I finally figured this out... Thanks to getting curious and creating an encryption key for my application. It took me a second to understand it but here is the result. Make sure you declare your variables in the settings tab of the properties to your application. [code] void Form1_Load() …

Software Development app-store encryption
0
103
Member Avatar for Taimoor Rana

Hello guys, Im tring to make a stopwatch display in JTextField but so far i'am unable too :-(. The stopWatch itself is working perfectly but only in the system output window... I want the time to be displayed in the textfield(or Label) which is within a JFrame. I'll appreciate any …

Software Development java java-swing
Member Avatar for Taimoor Rana
0
846
Member Avatar for j23

Im trying to write a program which simulates ten coin tosses and returns the results to the user .can anyone help please!! [CODE] Imports System.IO Imports Microsoft.VisualBasic.ControlChars Public Class Form1 'write a program that simulates 10ncoin tosses using Random Number generator + Returns the results to the user. Private Sub …

Software Development visual-basic
Member Avatar for j23
0
1K
Member Avatar for kay19

Well, I seem to have some little error. Purpose: Finding Max and Min numbers from txt file by inputting four numbers. Then I calculate the Range by using (Max - Min) Problem: It does great with positive numbers. However, when I input negative numbers, calculation seems to be off. For …

Software Development java
Member Avatar for kay19
0
187
Member Avatar for Javam

Hey, Can you please give an solution of why this doesn't work correctly? [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * */ public class Main { static Thread hare = new Thread(new ThreadRunner("hare",90,100)); static Thread tortoise …

Software Development java
Member Avatar for Javam
0
386
Member Avatar for llocar

Hi. I'm wanting to append some information to a file, which is found in a different file. I have simplified the problem using animals. Here is the basic code to add the line to the file: [CODE]grep "some important info about rabbits" rabbits.data >> rabbits.txt[/CODE] Very simple, but this must …

Software Development file-system shell-scripting
Member Avatar for llocar
0
125
Member Avatar for dondajr

Hi everybody o/. I'm studing Linked List in C. I made two functions: add ( add data on the list) and destroy (destroy the list). For now, it's just this two functions that i need, but the function destroy doesn't works well. When I call the function destroy only the …

Software Development c linked-list
Member Avatar for dondajr
0
274
Member Avatar for chchew90

[code]import javax.swing.*; import java.awt.*; import java.awt.event.*; class CelsiusTemperature extends JFrame implements ActionListener{ private double readingInCelsius; private JButton button; private JTextField field; private JTextArea area; private JLabel label; public CelsiusTemperature(){ setSize(500,200); setLocation(250,150); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); label = new JLabel("Celsius"); field = new JTextField(20); button = new JButton("Convert"); area = new JTextArea(10,20); Container container; …

Software Development java java-swing
Member Avatar for Javam
0
110
Member Avatar for triumphost

K I just got this Idea that I want to implement into a program I downloaded. Yes the program is open source but I dont wanna compile it, I just want to sort of Inject?.. What I want to do is add a button to the program and have the …

Software Development c++ open-source
Member Avatar for triumphost
0
126
Member Avatar for El3et

Im learning about postfix and prefix operators and how to overload them. I've created my class with overloaded pre and post fix operators how ever when used in the main program the results aren't what I expected. The program creates a simple shape from a class that has default constructor, …

Software Development c++
Member Avatar for El3et
0
134
Member Avatar for sirlink99

Does anyone know of or have a website where you can upload your applets and other people can play them? (like kongregate for flash games) and maybe even make some money every time someone plays your game? If you're wondering why, I need money for school. 0.o

Software Development flash java
Member Avatar for javanoob101
0
135
Member Avatar for prishe

hi.. i need help in comparing value from the same table for my final project. example : table 1 : SubjectCode Classes Sub A class 1 Sub A class 2 Sub A class 3 Sub B class 2 Sub B class 3 Sub B class 4 Sub B class 5 …

Software Development vb.net
Member Avatar for prishe
0
202
Member Avatar for gmdune

i, Here is the scenario I'm dealing with: My company has a bunch of old servers and workstations that have data on them that I need to copy to a "drobo" (multi-storage device) and eventually send the storage unit to someone else. I have a list of "contract numbers" that …

Software Development shell-scripting storage
Member Avatar for gmdune
0
136
Member Avatar for comSysStudent

Hi all, I have a programming assignment to store sparse matrices using a list<list <myclass> >. I have pretty much everything nailed down but I'm going wrong at some point, the output is incorrect. Instead of giving me 4 lines with the column position and value of non zero values …

Software Development c++ matrix-multiplication
Member Avatar for comSysStudent
0
192
Member Avatar for e-papa

Is python 3.2 stable yet, because i use portable python v1.1py3.0.1, so far I'm making improvement, but I have problems loading modules, how do I go about it.

Software Development python
Member Avatar for e-papa
0
932
Member Avatar for e-papa

Please i just downloaded the latest version of pygame, but I've been finding it difficult to install, okay when i unpacked it, everything came up, but i don't know which should go to which. Python experts in the house what do i do.

Software Development gui python
Member Avatar for e-papa
0
178
Member Avatar for bklynman01

Hello - I am using Visual Studio .net 2008. I have a form that has a tabpage control in it with 5 pages. I need to add another page, but in position 2, not at the end. Is this possible? I do not see any settings for the position of …

Software Development vb.net visual-studio
Member Avatar for bklynman01
0
99
Member Avatar for pseudorandom21

I've found that often in my code I have a need for primitive variables protected with synchronization objects such as a boost::mutex, and I was wondering if the boost library provides a template similar to this one I'm considering, based on the C# property methods get/set: [code] template<typename var_type> class …

Software Development c++
Member Avatar for vijayan121
0
259
Member Avatar for Mike Bishop

i have the following code that isn't working correct [CODE] Dim con As New SqlConnection Dim cmd As New SqlCommand Try con.ConnectionString = "Data Source=" & ServerV & ";Initial Catalog=" & databaseV & ";Persist Security Info=True;User ID=" & usernameV & ";Password=" & passwordV & "" con.Open() cmd.Connection = con cmd.CommandText …

Software Development open-source vb.net
Member Avatar for Mike Bishop
0
92
Member Avatar for anish99virgo

[CODE]hey i am designing a Registration Page. In that i am having 3 comboboxes, one for country,one for state & last one for city. I am able to display all countries, states & cities entries from database. Here is my code. SqlDataAdapter da = new SqlDataAdapter("select * from Country","Data Source=.;Initial …

Software Development
Member Avatar for anish99virgo
0
89
Member Avatar for TheDocterd

Hi There I just wanna find out how I can save some data to a text file or access database (doesn't matter - the one that's the quickest). What my form does is it has a list box with ID's in it. I can select them. Then I have a …

Software Development file-system visual-basic
Member Avatar for AndreRet
0
192
Member Avatar for pito_donje

on each form is the "X" at the top right of Form. how ya how to disable or remove "x" is it?

Software Development visual-basic
Member Avatar for Jx_Man
0
124
Member Avatar for ekin5683

What wrong with my coding? when i run..nothing appear.. The output should be: Perimeter of Rectangle 1: 22 Perimeter of Rectangle 2: 6 Perimeter of Rectangle 3: 18 Perimeter of Rectangle 4: 4 [CODE]#include<iostream> using namespace std; const int TOTAL= 4; void CalculatePerimeter(int perimeter[], int width[], int height[]); //const int …

Software Development c++
Member Avatar for dkalita
0
87
Member Avatar for abhimanipal

Hello Everybody, I have a small confusion with regards to pointers. Here is some code [CODE] int main() { int *p1 = (int*)malloc(sizeof(int)); *p1 = 10; printf("The number is %d",*(char*)p1); }[/CODE] I run the code and the O/p is 10. My question is, is there no difference in using char …

Software Development c
Member Avatar for nezachem
0
142

The End.