43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for peter_budo

I'm having small issue with drawing on panel. Neither image or text appears, however background is set correctly therefore it has to be due some issue inside my paintComponent() method. [code=Java] import java.awt.Graphics; import java.awt.Color; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO ; import javax.swing.JPanel; public class …

Software Development java java-swing
Member Avatar for peter_budo
0
157
Member Avatar for nmakkena

Hi All, Actually i want to dispaly the results of a select statement in a TextBox. Pls anyone give me an idea how to do it. Thanks

Software Development display
Member Avatar for sknake
0
165
Member Avatar for jaepi

Hello there! can anybody here point me to any GUI programming in Linux tutorials. Been googling around but no good hits. Thanks.

Software Development c++ gui
Member Avatar for CasTex
0
134
Member Avatar for Lensva

if using tomcat with eclipse plugin everything works fine through the eclipses built-in browser. is it suffice to say if i copied the eclipses project to tomcats webapps it should work as well? heres how my eclipse project looks like: [URL="http://i40.tinypic.com/315e713.jpg"]http://i40.tinypic.com/315e713.jpg[/URL] invoking html is in WebContent\ WelcomeServlet.html proccesing .class in …

Software Development java
Member Avatar for Lensva
0
99
Member Avatar for kolosick.m188

How do you close a QTabWidget? I have the code but when I click on the close button nothing happens.

Software Development c++
Member Avatar for kolosick.m188
0
284
Member Avatar for jcmeyer

I know how to store data into a database if I know the value of what I am storing. For example: [CODE]sql="INSERT INTO nameDatabase (name) Values('Joe')"[/CODE] However, I want to be able to store data that I do not know the value of into my database. So I can prompt …

Software Development python sqlite
Member Avatar for jcmeyer
0
121
Member Avatar for razsadeq

the following is a simple program that fragments standardized name consisting of 3 letters and 2 numbers then prints the full word, for instance spa11 print spanish eleven. Why is it not working? [code=c] char sname[4]; char snum[3]; // void strnumCpy(char *dest, char *source) { // NOT ACCURATE void strNumCpy(char …

Software Development c
Member Avatar for razsadeq
0
2K
Member Avatar for weblover

hi all ..how are u ? i have a security project in java ...i have to implement the DES cipher and the Stream cipher ...with GUI ..where can i find a working source code for these ciphers ...can someone help plz ...and thnx in advance?

Software Development gui java
Member Avatar for weblover
0
125
Member Avatar for begnnr_help

I am running into a baffling problem with my code. I am supposed to write a program to average the test scores for an entire class of students. In each case, the student should have taken 5 tests. You are to average the 5 tests. The program run should look …

Software Development c++ ios
Member Avatar for begnnr_help
0
655
Member Avatar for sdmahapatra

[code]double F_Ite() { //Main Function Start //Locally Data_type Declaration And Initialization : int numElement =20; double *a,*b,*c,*d,*Fc,*Fd; a = new double[numElement]; b = new double[numElement]; c = new double[numElement]; d = new double[numElement]; Fc= new double[numElement]; Fd= new double[numElement]; for(int k=1;k<(NI-1);k++) { //Main 'for' Loop Start std::cout <<"\n"; system("pause"); std::cout …

Software Development c c# c++
Member Avatar for sdmahapatra
0
752
Member Avatar for dsladev

Im new at C++ and am trying to teach myself. I want to ask the user of the program why they are feeling a certain way, but not do anything with the sentece. So its like -how are you feeling?- user -good- -why are you feeling good?- user- blah blah …

Software Development c++
Member Avatar for dsladev
0
173
Member Avatar for giftalp

I need write simple script,but I just started and don't know how to do this at all. And I need it before tomorrow. This is what I need. 1) Create a directory FileData and place four files into the directory. This part, I already did, but second still exist. 2) …

Software Development shell-scripting
Member Avatar for msvinaykumar
0
99
Member Avatar for Sune

Hello I am doing an C++ exercise and the task is to write a program that prints all INT values between 32 to 255 and the corresponding ASCII characters. I have declared the variables to store the ASCII character and the INT like this: [code] unsigned char unchar; int i; …

Software Development c++ windows-vista
Member Avatar for Sune
0
151
Member Avatar for goody11

I can't figure out how to write a program that can play multiple sounds at the same time. I tried doing some pretty complex things with the Beep function but I finally gave up. Is there any function or something to that extent out there that will let me play …

Software Development c++
Member Avatar for goody11
0
104
Member Avatar for lewigi2012

Hello I'm making a program where the user will be able to organise their orders so they see which ones are complete and incomplete. I want to allow the user to be able to delete an entry from a file (*.txt) as this will be used in two ways: 1. …

Software Development file-system pascal
Member Avatar for FlamingClaw
0
79
Member Avatar for Icebone1000

Im kind confuse about how PostQuitMessage works.. Im using like this: [CODE=cplusplus] case WM_CLOSE : DestroyWindow( hWnd ); break; //send WM_DESTROY case WM_DESTROY : CleanUp(); gsp_quit = true; PostQuitMessage( 0 ); //send WM_QUIT break;[/CODE] That is on my WndProc function. My message loop is like that: [CODE=cplusplus] while ( !gsp_quit …

Software Development c++
Member Avatar for Icebone1000
0
250
Member Avatar for goody11

I'm having trouble using my homemade .h files in my multi-source projects. If I I only include the .h in one of the sources I can't use it in the others. But if I include it other sources it's considered redefining the include and it won't compile. Other .h's besides …

Software Development c++
Member Avatar for goody11
0
392
Member Avatar for serkan sendur

let say i have a very small functionality in one of the classes of a very big windows application project. i want to use that functionality or let say variable from a class library project, since the functionality i want to hire is not even 1/1000 of the who windows …

Software Development
Member Avatar for Diamonddrake
0
115
Member Avatar for rasizzle

[code] import os import csv ifile = open("C:/Python26/testdata.csv", "r") [/code] here is the error i get: Traceback (most recent call last): File "C:/Python26/06_June_2009/testhenry.py", line 4, in <module> ifile = open("C:/Python26/testdata.csv", "r") IOError: [Errno 2] No such file or directory: 'C:/Python26/testdata.csv' I have no clue what to do. I can't read …

Software Development python
Member Avatar for rasizzle
0
157
Member Avatar for ejazmusavi

Hi Every one. i have three timespan t1 =00:10 t2=1:20; and t3. where t3=t1.Add(t2); now t3=1:30 how i can convert this to 1:30Am or 1:30PM Please any one to help me....... Thnx in advance

Software Development
Member Avatar for ddanbe
0
117
Member Avatar for vuyiswamb

Good Evening All Am amazed that i cant use the Replace Function , its Probably the long that i had. i have the Following code [CODE] String Username = "Vuyiswa"; String Password = "secret"; String strBody = @"<p>Thank you for using !obooking System <br><br> Username:(Username)<br><br>Password:(Password)<br<br>Kind Regards !oBooking</p>"; strBody = Regex.Replace(strBody,Username,"(Username)"); …

Software Development regex
Member Avatar for vuyiswamb
0
117
Member Avatar for brainbox

hi I am badly stuck with inserting and retrieving Date in SQL DB from C#. I have a C# application which needs to save date in SQL 2008 Database for various purposes. The format in DB is DateTime for my DateColumn and i am using Datetime Picker in my c# …

Software Development c c# c++ sql
Member Avatar for brainbox
0
664
Member Avatar for lexusdominus

Id like to edit a file. At first i thought this was going to be easy, but now it appears quite complex. As i understand it there is no standard way to delete part of a file? im storing data on different lines in the file, and want to target …

Software Development c++ file-system ios
Member Avatar for siddhant3s
0
120
Member Avatar for ejazmusavi

Hi Every one. I have an MS access database table in which i have stored a data type of date/time in short time format. When i access the table from c# and diplay it into a data grid view the column in short time format diplay as long time format …

Software Development
Member Avatar for kvprajapati
0
135
Member Avatar for jt_murphree

I am new to writing assembly in linux and I need help with the sys_read call. I am using nasm and I would like to read input from the keyboard. I know how to set the call up but what do I use for the file descriptor. I can not …

Software Development assembly
Member Avatar for ZYV
-1
104
Member Avatar for flip121

I need to change a character inside of a string in a list ex horizontal=2 across=2 List=['abcdefg', 'hijklmno', 'pqrstuv',] I would want to change just one character like the third character in the third string(but I don't know that the program will know using horizontal and across) to 'd'. if …

Software Development python
Member Avatar for flip121
0
83
Member Avatar for jcmeyer

I have a textentrydialog and my goal is that the user cannot leave the the text entry blank or just empty whitespace. So the dialog should not go away until the user enters some characters in the box or hits cancel. This is what I have: [CODE]def OnNewButton(self,event): error=1 while …

Software Development python
Member Avatar for JasonHippy
0
98
Member Avatar for Firefly1985

Hi, i know my following question may seem rather stupid but im having some problems understanding the static concept especially in the following code and id appreciate some help. [code] 4: using System; 5: 6: public class myClass 7: { 8: static public int sctr = 0; 9: public int …

Software Development
Member Avatar for kvprajapati
0
80
Member Avatar for smelf1

Hi all, I would like to be able to show all the websites visited on a machine. How would i go about doing this. Thanks

Software Development vb.net
Member Avatar for rapture
0
836
Member Avatar for rmlopes

Hello, I am developing a library, which untill a few days ago was working perfectly. With some changes I needed to perform I started having a segmentation fault. The problem is that I cannot understand why the fault is happening since the conclusion from gdb is the following: [code] Program …

Software Development c++
Member Avatar for rmlopes
0
157
Member Avatar for grvs

Hi I am trying to display time in a text box which updates itself every second. I am using visual C# and I am pretty new to it. (My first program in visual C#) (Actually its part of a little bigger problem in which I have to implement a timer …

Software Development vb.net
Member Avatar for grvs
0
617
Member Avatar for J-P

Hi, Is there any (free) graphical engine for Visual Basic .Net that can be used to show 3d graphics and/or create games? Anything is appreciated... Thanks,

Software Development vb.net visual-basic
Member Avatar for J-P
0
220
Member Avatar for stan yost

How can I stop processing in a sub so that the user can choose an option button for input?

Software Development visual-basic
Member Avatar for saikrish
0
129
Member Avatar for max.yevs

i've been trying to make simple programs and downloaded python 3.01. unfortunately i have no programming experience, and am a bit stuck despite searching around the tutorial, library, etc. (please forgive if this question is already answered somewhere) my first attempt at a program is >>>print (hello world) hello world …

Software Development python
Member Avatar for carapace
0
176
Member Avatar for Manak

Can nyone tell me how to relatr combo boxes???? i hv used this code bt this is throwing exception ......ny help would be appreciated .I hv jst started wworking on c# i hv used the following code nd i hv populated the cmbschoolcode in loading of my form [code=csharp] private …

Software Development
Member Avatar for Manak
0
279
Member Avatar for akkkk

Hi i have a program that currently reads in the contents of a file and stores it in a string. Some of the files are quite large so speed is quite important. I want to print out the words that begin with capital letters and was wondering how i could …

Software Development python
Member Avatar for akkkk
0
214
Member Avatar for serkan sendur

A wierd thing is happening guys, when i start the application without debugging everything works fine, when run the application in debug mode, it stops responding whether or not it hits any break point.

Software Development
Member Avatar for serkan sendur
0
77
Member Avatar for bharanidharanit

Hello, I want to read a text file in C and the output file must be created and want to reverse the data in tat output file created. So i used the below coding but not reversing the data in the output file created. eg: input file contains this data …

Software Development c
Member Avatar for Dave Sinkula
0
358
Member Avatar for Killer_Typo

[CODE]Could not connect to: : 50404 java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:560) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:377) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) [/CODE] has anyone run into this issue and or find a fix? I've not been …

Software Development java
Member Avatar for dmanchester
0
1K
Member Avatar for MrNoob

okay i understand all bitwise operators but in the chapter of k&r at bitwise operators i m really lost at there question i have no idea how to do them Exercise 2-6. Write a function setbits(x,p,n,y) that returns x with the n bits that begin at position p set to …

Software Development c
Member Avatar for Tom Gunn
0
378
Member Avatar for jcmeyer

I know that, in python, to start a file with it's associated application that is located on my hard drive I can simply use os.startfile. However, I want to be able to start a file with it's associated application that is located on an ftp site. Does anyone know how …

Software Development hard-drive python
Member Avatar for jcmeyer
0
132
Member Avatar for lotrsimp12345

[code=cplusplus]#include <iostream> #include <cstdlib> using namespace std; int main() { cout <<"enter the problemset and number""\n"; //problems represents name and numbers string problems; string problem_name_and_numbers=problems; string numbers; char quote; int total_length=problems.length(); //gather name if(cin.peek()=='"' || cin.peek() == ''') { cin >>quote; getline(cin,problems,quote); int problemslength=(problems.length()+1); int difference=total_length-problemlength; numbers=problem_name_and_numbers.substr(problemlength,difference); } else { …

Software Development c++
Member Avatar for lotrsimp12345
0
124
Member Avatar for Cman2020

Hello guys help please i'm trying to write to a disk and append it whenever i open the program i can add to it instead of witting a new one StreamWriter Write; Write = File.CreateText("c:\\TestFile.txt", FileMode.Append); Write.WriteAllText(txtOutput.Text); Write.Close(); MessageBox.Show ("File Created SucacessFully"); getting this error:- No overload for method 'CreateText' …

Software Development assembly
Member Avatar for Ramy Mahrous
0
187
Member Avatar for jooa

Hi, I am trying to write some code which uses a JSlider to specify the number of lables to be displayed on a frame. I know how to create the JSlider and display it, but I am not sure how to implement different numbers of lables. I hope someone can …

Software Development java
Member Avatar for VernonDozier
0
106
Member Avatar for serkan sendur

each time i hit run button to deploy my mobile application, it keeps asking whether to deploy .net framework which already is installed. i want to disable that compact framework deployment. do you guys know how?

Software Development asp.net
Member Avatar for serkan sendur
0
125
Member Avatar for hanzi_ru

hi i have created two combo boxes which contain locations and floors. After selecting the location from the first combo need to filter the floors allocated to the selected location, to the second combo. i have allocated floors to locations in another table called floor allocate. can somebody pls help …

Software Development dataset
Member Avatar for Manak
0
2K
Member Avatar for seebharath

How do I make a tooltip with summary appear for cutom defined functions just like the one that appears for inbuilt functions with VS 2008 Like when I type List.Add() a tool tip says what the inpute params are and what the add functions does I have tried writing comments …

Software Development
Member Avatar for seebharath
0
119
Member Avatar for williamyounger

hey, i am creating a basic game, something a bit like space invaders but only 3 levels long. I'm haveing trouble moving from Form2 (level 2) to Form3 (level 3), Form3 opens, Form2 closes, and I want the start menu (which is on another form called Start) to show if …

Software Development vb.net
Member Avatar for williamyounger
-1
123
Member Avatar for b89smith

In the application that I am building I have a log window that contains a listview control. This listview control has two columns, a time stamp column and log description column. When an event happens it is added to the listview. The problem is that when about 15+ events happen …

Software Development listview vb.net
Member Avatar for b89smith
0
145
Member Avatar for Brent720

I am having an inordinate amount of difficulties locating an example of how to display Unicode using Lazarus and FPC. It's supposed to be fully UTF-8 capable now, yet all I get are question marks for text strings, or else little skinny boxes in place of the characters. Can someone …

Software Development delphi pascal puzzle
Member Avatar for Brent720
0
1K

The End.