132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for conanzz

I have a picture with 2 buttons, and I want to move it through these buttones the problem is I don`t know how to make the actionListener for the other button to move to the other side, [COLOR="Red"]pictures are in the attachments[/COLOR] [CODE]import java.awt.event.*; import javax.swing.*; import java.awt.*; import javax.imageio.*; …

Software Development java java-swing
Member Avatar for conanzz
0
206
Member Avatar for farhanrocks

can anyone tell plzz!!!!what is difference between interface and annotation type in java?

Software Development java
Member Avatar for JamesCherrill
0
80
Member Avatar for bradploz

hello, I am trying to connect MS ACCESS 2007 Database with textboxes which will show the info of the users..for example..when I login..I see my info in the textboxes..and when other user logs in..they can see their info.. This is the code I have on load after the window login.. …

Software Development ide vb.net
Member Avatar for adam_k
0
173
Member Avatar for phoenx

I have a problem in my game about button how I can display the random number example "3 + 5" in the upper button ...I try one button here but you need to click it in order to see the random number and only one number will appear..please any idea.. …

Software Development java java-swing
Member Avatar for phoenx
0
166
Member Avatar for Mona Ali

HI TO ALL [CODE] import java.applet.*; import java.io.*; import java.awt.*; import java.awt.event.*; import java.net.*; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; public class sid_fari extends Applet implements ActionListener { String msg,msgs,msgss; Button loads = new Button("clik me"); public void init(){ add(loads); loads.addActionListener(this); } public void paint(Graphics g) { g.drawString(msgs,10,40); …

Software Development java
Member Avatar for Mona Ali
0
503
Member Avatar for kainat0615

[CODE]#include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <unistd.h> void *thread(void *vargp); char **ptr; /* global */ int main() { int i; pthread_t tid; char *msgs[2] = { "Hello from Thread A", "Hello from Thread B" }; ptr = msgs;for (i = 0; i < 2; i++) pthread_create(&tid,NULL,thread,(void *)i); pthread_exit(NULL); …

Software Development c++
Member Avatar for kainat0615
0
167
Member Avatar for treepig

I am having trouble replacing the numbers on my Tic Tac board with the X and O from my if and else if statements. I would also like to know how to make sure how to keep the X and O in place without it being replaced after every loop. …

Software Development c++
Member Avatar for danb737
0
678
Member Avatar for bigdan182

hi Is there a way to pass a structure into a function in C++? ie if I have a structure of data, can I pass it in and use all the members without having to pass them indevidually? I basically want to pass team data into a function and that …

Software Development c++ data-structure
Member Avatar for danb737
0
160
Member Avatar for codeholic

Goodday great Programmers in the World Am not advanced upto this extent and have to ask for help I need a help and codes to solve this. I have 5 columns of 11 textboxes each on my form the textboxes are generated with this code [CODE] Private Sub Form1_Load(ByVal sender …

Software Development vb.net
Member Avatar for Momerath
0
531
Member Avatar for rhuffman8

I am working in an older version of Python (2.6, I believe). I cannot update to the latest version because it is not currently compatible with the other program I need the code to run with so, unfortunately, the "decimal" module is not available to me (as far as I …

Software Development python
Member Avatar for Gribouillis
0
240
Member Avatar for z_zendegi

hi I have a program in c# that have connection string for network use to connect to sql server 2008,it works correctly until our company make DC server and join all computers I change my connection string,then if I log on to my computer(my computer is a server) from any …

Software Development
Member Avatar for Momerath
0
98
Member Avatar for Cesiumlifeboat

Hello python gurus! I dabble in python casually, and I've just recently begun to use classes. For the most part they've proven very helpful, but this error has me stumped: [CODE]creature.health=creature.health-2*creature.metabolsim/resolution AttributeError: predator instance has no attribute 'metabolsim'[/CODE] Here's the full code of the program (it's designed to run a …

Software Development python
Member Avatar for Gribouillis
0
165
Member Avatar for fadeterra

I searched in this forum, but it didnt help my solve my problem. Please help me. This is my code [I]int intOrderNo = (int) Session["sOrderNo"]; DetailsViewRow row0 = DetailsView1.Rows[0]; string strProductId = row0.Cells[1].Text; DetailsViewRow row6 = DetailsView1.Rows[6]; string strUnitPrice = row6.Cells[1].Text; float floUnitPrice = float.(strUnitPrice); string strQty = DropDownList1.Items[DropDownList1.SelectedIndex].ToString(); int …

Software Development session visual-studio
Member Avatar for fadeterra
0
333
Member Avatar for DeathEater

hey ya all my question is simple, how to simulate an event by code, for example consider a simple form which has 2 buttons. button1 changes the forms color, now i want the code that i should put in click event of button2 that when i click it the app …

Software Development
Member Avatar for DeathEater
0
132
Member Avatar for Joeflims

Hello, kind citizens of DaniWeb! I beg your assistance in the solution of my problem! I was trying to create a simple audio player using Tkinter and pygame, pygame being the best library that included audio playback I could find (by the way, DO NOT USE SNACK!!). Anyway, I was …

Software Development audio python tkinter
Member Avatar for Joeflims
0
183
Member Avatar for Sabatino

Here is the error [IMG]http://i1199.photobucket.com/albums/aa465/aaron55494/compileerror.png?t=1311972955[/IMG] and here is the code that i'm working on [CODE] public String getKillMessage(String player) { String[][] selection = {{"Congratulations, you have defeated ", "}, {"Congratulations, you have ", "}}; int index = (int) Math.floor(Math.random() * 9); return selection[index][0] + player + selection[index][1]; }[/CODE] Any help …

Software Development java
Member Avatar for Sabatino
0
89
Member Avatar for OneDreamCloser

Hello All, Could you please help me with the following VBA code that I have to understand (but I am not aware of VBA) [CODE]Public Function ErlangB(Servers As Single, Intensity As Single) As Single 'The Erlang B formula calculates the percentage likelyhood of the call ' being blocked, that is …

Software Development perl vb.net visual-basic
0
111
Member Avatar for efronefron

I was doing a projecteuler problem. I made a program that would find all the prime numbers under 1000000 and write them all in a file. Why is that if I use the file name as "primes.txt", the result is gibberish from beginning to end, but when I use "primes.dat", …

Software Development java
Member Avatar for NormR1
0
821
Member Avatar for DeathEater

hey guys i have a DGV which has a check box column. what i want to do is that when user checks one of these check boxes the entire row be highlighted as if a normal cell was clicked, here is the tricky part, and i want when user clicks …

Software Development
Member Avatar for DeathEater
0
105
Member Avatar for BoBok2002

Hi Guys, I hope you can help me because I've tried everything and don't know what else to do. I keep getting the error "Object reference not set to an instance of an object" and I can't seem to figure out what the problem is. I've even tried instantiating the …

Software Development
Member Avatar for cudahead
0
234
Member Avatar for syria718

pals i just wanna ask if anyone could show me how to declare and call a 2d array? thanks in advance!!!

Software Development java
Member Avatar for NormR1
0
139
Member Avatar for MareoRaft

error: ‘void __stderrp(MattsMatrixSpace::Vec)’ redeclared as different kind of symbol I have a function called "stderr" in my program. I'm not sure where the "__" or the "p" came from. Any idea what this error is related to? PS, the next error is: /usr/include/stdio.h:169: error: previous declaration of ‘FILE* __stderrp’

Software Development c++
Member Avatar for Salem
0
418
Member Avatar for Farhad.idrees

Hi i m having problem... i want to give each random number to each month.. but it gives erros [CODE] public class a { public static void main(String[] args) { float average = 0f; String[] Year = {"Jan","Feb","Mar","Apr","May","Apr"}; int[] values = new int[5]; for(int i=0; i<values.length; i++) { values[i] = …

Software Development java
Member Avatar for Farhad.idrees
0
149
Member Avatar for rhuffman8

I am working with a CSV file with multiple rows, which I need to be able to access individual data elements from a row so I can assign them to variables and send them to the other program I am working with in a loop, going through each individual row. …

Software Development python
Member Avatar for rhuffman8
0
373
Member Avatar for mrnutty

Meant mostly for windows, uses system("cls") although you can simply set USE_NON_STANDARD_CLS to false and it will use newlines to clear screen. Test it out. [code] /** * Note: Use at own risk, this is just for fun */ #include <algorithm> #include <iostream> #include <vector> #include <string> #include <windows.h> #include …

Software Development algorithm c++
Member Avatar for mrnutty
0
157
Member Avatar for imolorhe

I am currently designing an application form that the user fills to use a room in a specified time. The application is to check if the room specified is available at the time period specified. I am stil wondering how to do this such that there is no clash. Any …

Software Development vb.net
Member Avatar for imolorhe
0
328
Member Avatar for ShaggyDogg

Hi, I'm trying to present results on an aspx web page where a store procedure parameter is defined by a dropdown list control on the page. To help accomplish this, I have followed [URL="http://support.microsoft.com/kb/306574"]this guide from Microsoft[/URL] and have my resultset presented in a DataGrid view. But I cannot seem …

Software Development display vb.net
Member Avatar for ShaggyDogg
0
217
Member Avatar for 47pirates

Is it possible to add mouselistener to particular cell of a Jtable?? plz help...

Software Development java
Member Avatar for mKorbel
0
92
Member Avatar for selvavijay1987

Dear Sir/Madam/Friends, Sir, i have written code for first step of euclidean distance . now i need to merge the smallest distance points as single point. The class which i have written is using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Collections; /// <summary> /// Summary description …

Software Development c# dataset
Member Avatar for selvavijay1987
0
231
Member Avatar for ijsrog

lets say I have a form (form1) with lables a-z which are all designed with default text "0". So they all show 0 on program startup. which is fine. I also have a dialog with 2 TextBoxes; I want my program to update the default text/value on (only)form1 labels x, …

Software Development vb.net
Member Avatar for adam_k
0
133
Member Avatar for s†ig†rex

i'm havin a hard time trying to use other looping statements, i cant get the proper syntax on other types of loops. i need to use others like while wend or something..ty [CODE]range = Text1.Text If Text1.Text > 8 Then a = MsgBox("Error", vbInformation, "Ooops!!") End If Print "Upper Left" …

Software Development visual-basic
Member Avatar for WaltP
0
111
Member Avatar for aldeene

I am developing a program where I will save the information from a "Log file" from an external application.. example: I have a biometrics system that reads and saves the log file to disk, once the user logs to the system, the system will save the file to a log …

Software Development vb.net
Member Avatar for adam_k
0
121
Member Avatar for jp071

Hello, I would like to know how to read multiple files without using DIR. For example, program will search ".bin" file and create a new variable for the file. But the exception is my compiler does not know the directory (like opendir or readdir). I am doing dsp programming. I …

Software Development c++
Member Avatar for WaltP
0
255
Member Avatar for vomhaus

I need some help parsing a string array returned from method. current results: Here is the test Information: SPRCBT - Algebra 1 - Form 9D - Joe Smith Here is my Test Name [Ljava.lang.String;@5ec24193 Any ideas on the best way to return the values of the array instead if the …

Software Development java
Member Avatar for NormR1
0
227
Member Avatar for maxzoel

Hi, First of all i am a newbie, trying to learn machine vision... I am trying to use opencv 2.3 in visual studio 2010 on windows 7 ultimate(64bit). I tried in various ways like pre-built versions, built using vs 2010 from SVN source and not even a single attempt is …

Software Development c++ ubuntu visual-studio webcam
Member Avatar for maxzoel
0
364
Member Avatar for shizu

Hi All.. I using VC++ 6.0..with windows XP.. I have bmp image which I would like convert it save as jpeg format.. can anyone teach me the steps..?? Thank you.. Shizu..

Software Development c c# c++
Member Avatar for mrnutty
0
3K
Member Avatar for Tomi1988

Hi! I created an object (Jack the Pig) in the dynamic memory (heap). Because it is a pointer, I can erase it by delete. So I deleted Jack the Pig, but it is not deleted, because Jack->Row function still is working (writes out Rooooow). Why can Jack->Row function still work, …

Software Development c++
Member Avatar for mrnutty
0
207
Member Avatar for jemz

Hi, Can you help me please I am still beginner in the IBM data studio,my problem is that i want to use the existing table in the SAMPLE database,I want to querry on the 4 tables,like in employee table or etc...in using the stored procedure can you help me please …

Software Development sql
Member Avatar for rubberman
0
90
Member Avatar for D33wakar

I'm trying to embed python script in c in windows. [CODE] #include <Python.h> int main(int argc, char *argv[]) { Py_Initialize(); PyRun_SimpleString("from time import time,ctime\n" "print 'Today is',ctime(time())\n"); Py_Finalize(); return 0; } [/CODE] from the python documentation. I'm compiling with Microsoft's lcc. I'm getting following errors. Error c:\lcc\examples\python\pyembed.c 7 undefined reference …

Software Development python
Member Avatar for D33wakar
0
397
Member Avatar for wingwarp

if you have read or use [U]Learn C++ in 24hours [/U]is it a good book to learn formor object oriented Programming in c++ is that a good book to learn OBJECT oriented programing to learn graphics...

Software Development c++
Member Avatar for tiredoy
0
451
Member Avatar for makibao

ordering form Expand Post » hey can you please help me) because we have this assignment ordering form in vb 6.my problem is you have 3 attempts only to log in and in payment it should be 0.00, if you enter a number example 1 the output should be 0.01 …

Software Development visual-basic
Member Avatar for makibao
0
191
Member Avatar for bleachisback

Hey guys, I'm not entirely new to java, but how it handles jar files puzzles me a bit. I want to be able to back up an already existing jar file (which I have working great), then detect and add all of the class files I have in my program's …

Software Development java
Member Avatar for NormR1
0
280
Member Avatar for DeathEater

hey ya all i have a simple question how to change the language on enter and exit events of text boxes and if you could include a link to a language code table or something that would also be nice thanks

Software Development
Member Avatar for DeathEater
0
151
Member Avatar for whitefly

I'm trying to understand Pascal. This code does not work! does not allow me to enter data, using debug seems to go from where I've indicated (procedure createdir) then jumps to end of main program. Can any person shed light on it. P.S. I would put it as attachment but …

Software Development pascal
Member Avatar for whitefly
0
151
Member Avatar for DeathEater

hey you all i have a main form and there is a button that will open another form as a dialogue, let's call it the AddForm. on the main form i have a DGV and I've written a function to refresh it called DGVreload. it works just fine but i …

Software Development
Member Avatar for DeathEater
0
122
Member Avatar for logicmonster

I have a string that has a bunch of white space on the end of it and was wondering if there is a simple way to eliminate the trailing white space with a standard C function. I know there is one called "String.trim" but I can't use anything that isn't …

Software Development c
Member Avatar for Adak
0
162
Member Avatar for s†ig†rex

how do i create a lucky seven random number? or a lotto program?

Software Development visual-basic
Member Avatar for s†ig†rex
0
377
Member Avatar for Denmbithi

Which is the best programming software for teaching yourself java using window xp pack 2,please help out.

Software Development java
Member Avatar for a.oprea
0
97
Member Avatar for agent7

type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/web/tomcat/service/WebAppClassLoader) previously initiated loading for a different type with name "javax/ejb/EJBObject" java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) …

Software Development apache java
Member Avatar for peter_budo
0
312
Member Avatar for RicardoE

Ok! Hello Daniwebbers, lets see if you can help me this time: I'm planning to do a bot, to login into a site, collect some data and then send a report to me. Problem is, I've done some web-scrapping data before, but I have no idea on how to do …

Software Development java
Member Avatar for RicardoE
0
154

The End.