43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dennysimon

hello all how to make window's short cut that call command line: java javaclassname.java thank you denny

Software Development java
Member Avatar for NormR1
0
202
Member Avatar for Dorar

[B]My project is Housing reservation system for University I design the interfaces by VB and connect to my oracle data base account Oracle 11g, VB express edition are used The proble is with the login form [URL="http://im20.gulfup.com/2011-12-23/1324652639153.png"]http://im20.gulfup.com/2011-12-23/1324652639153.png[/URL] when I debug and enter the ID & password for User : according …

Software Development open-source oracle visual-basic
Member Avatar for dspnhn
0
513
Member Avatar for mynamewontfitin

Hey - Sorry if this is an irritatingly simple problem, but I'm a newbie to the Java language and I can't see where I'm going wrong with this. I get an error with my code when trying to define 'label3' - "cannot find symbol - class Jlabel". It seems to …

Software Development java java-swing window-manager
Member Avatar for mynamewontfitin
0
2K
Member Avatar for varun45

I am having difficulties with placing images on Buttons using Java Swing. I have placed all images in a package named icon. The frame is loading as well as the buttons. I cant seem to get the images on the buttons. Can anyone point out my mistake please. [CODE]public Launch(){ …

Software Development java java-swing
Member Avatar for varun45
0
990
Member Avatar for squares86

I an a newbie to assembly language, been reading jeff duntemann's book, and I have been trying to write some code by myself too. There is an example in the book on converting binary values to hex values. I decided to re-write the code again by myself for self-practice but …

Software Development assembly
Member Avatar for squares86
0
163
Member Avatar for aldeene

my program freezes when I put this code on a button, but when I put it in the main it doesn't what could be the problem? protected void EstablishClient() { try { skt = new Socket("some.ip.of.me", 4444); out = new PrintWriter(skt.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(skt.getInputStream())); txtRecvd.append("Received string: '" …

Software Development java
Member Avatar for aldeene
0
113
Member Avatar for nHulk

I am trying to import all the classes present in a user defined package, by using the statement as import mypack.*; but it's not working in my program. [B][B]Its Giving error : C:\Users\Nitin\java>javac AOTest.java AOTest.java:6: cannot access AOperation bad class file: .\AOperation.java file does not contain class AOperation Please remove …

Software Development java
Member Avatar for nHulk
0
203
Member Avatar for adnysam
Member Avatar for adnysam
0
167
Member Avatar for Dmiller071

The title says it all. Basically what I'd like to do is have a JComboBox drop down with a list of items. When the user clicks on that item it will redirect them, or open a new browser tab, of the url to that specific item. Quick example (these sites …

Software Development apple java
Member Avatar for Dmiller071
0
178
Member Avatar for fusionking

I am writing a C# program that reads in a text file of a list of events followed by a date and time, delimited by a comma and prints it out to a textbox along with how much time is left till that date and time happens. It must read …

Software Development c#
Member Avatar for BhuvanRam
0
348
Member Avatar for ThomsonGB

////////////////////////////////////////////////////////////////////////////////// // Now I have an idea how to get my strings from the file so that I can properly // play with them (with fstream I did not have the string "in my clutches" quite // the way I wanted it). However, now I have a problem with my …

Software Development c++
Member Avatar for ThomsonGB
0
358
Member Avatar for Morley93

Hi all, I'm a long time reader of the forums and thought this would be a good place to ask a question. For the record, I am very new to Java! Basically, I have a [I]MainClass[/I] which inherits JFrame, the constructor for which sets window size, title etc. It also …

Software Development java java-swing
Member Avatar for Morley93
0
555
Member Avatar for Raisefamous

Hi, I'm using Codeblocks as a compiler. So when i'm creating a new class by following File>New>Class it creates two files xxxx.h xxxx.cpp Ok, code is simple. [CODE]#include <iostream> #include "Sally.h" using namespace std; int main(){ Sally so; } [/CODE] Sally.h [CODE]#ifndef SALLY_H #define SALLY_H class Sally { public: Sally(); …

Software Development c++
Member Avatar for Raisefamous
0
223
Member Avatar for gerchi152

Hello! can you give me some ideas on how I can make the field values to field names?

Software Development vb.net
Member Avatar for adam_k
0
201
Member Avatar for madhub2v

hi Friends can you pl help me to create a simple snake game. give me with step by step creation. thanks.

Software Development gaming java
Member Avatar for Ezzaral
0
2K
Member Avatar for creative_m

Hi I have a class which has alot of tasks related to multiple classes. the tasks are add, modify ,delete, write on a file and read array from a file.all theses methods operates on objects of other classes as a member variables. In other words, I have to perform a …

Software Development java web-design
Member Avatar for creative_m
0
119
Member Avatar for Mudzy

I want to extend JFrame needed for my GUI program but i get this.. [URL="http://imageshack.us/photo/my-images/209/screenshot20111226at163.png/"]http://imageshack.us/photo/my-images/209/screenshot20111226at163.png/[/URL] how do i solve this?

Software Development gui java
Member Avatar for JamesCherrill
0
187
Member Avatar for Srinivas0

i am trying to write a program for friend functions but it isnt working. :( [CODE] #include <iostream> using namespace std; class Z; { private: int a; friend void fn(); }; void fn() { Z one; one.a=5; cout<<a<<endl; } int main() { fn(); return 0; }[/CODE] can someone please tell …

Software Development c++
Member Avatar for Srinivas0
0
137
Member Avatar for Hussam Alahmadi

Hi every body How to find smallest number and how many occurrence with the user input numbers until enter 0 ? this my code ....... [CODE]package javaapplication101; import java.util.Scanner; public class JavaApplication101 { public static void main(String[] args) { int num = 0 , min = num ; int count=0; …

Software Development java
Member Avatar for stultuske
-1
170
Member Avatar for auwi987

hi guys trouble again, i want to print year from 1980 up to 2050 using loop in richtextbox and apply newline every print. thnx in advance guys

Software Development
Member Avatar for auwi987
0
122
Member Avatar for R32@

Hello, I'm new in Java and this is my first post here. I was doing my homework but faced the following error: [QUOTE]c:\java\my box\Login.java:25: variable p might not have been initialized if (p == pass) { ^ 1 error[/QUOTE] You can see the main code bellow: [CODE]import java.util.Scanner; public class …

Software Development java
Member Avatar for R32@
0
112
Member Avatar for martin11ph

I have a form that has a ton of work ongoing for around 10secs such as moving controls, resizing them, hiding some, making others visible and more importantly, mouse moving and clicking. I don't want the user to see these ongoing stuff so I thought of making a splash screen. …

Software Development api display visual-basic
Member Avatar for jumba_4u
0
163
Member Avatar for archelle

Hello people... I got a problem here.. I am using a vb 2005 and mySql as my database. I already created my project but it seems like when i edit my program.. it doesnt apply. What might be the problem? Is the vb.net application, MySql or the OS? Thanks in …

Software Development vb.net
Member Avatar for Pgmer
0
219
Member Avatar for fusionking

I'm creating a C# program that has a sizable textbox that prints out data every 5 seconds. Whatever data that is displayed is (supposed to be) cleared and replaced with new data every 5 seconds. I've created a thread so that the window opens (main thread) and the data is …

Software Development
Member Avatar for fusionking
0
697
Member Avatar for ThomsonGB

//////////////////////////////////////////////////////////////////////////////////////// // In this little project I am trying to learn to get and manipulate data from // a file input using fstream strings I also wanted to use the formating available // with the printf and related string handling methods. I have a question in regards // to the …

Software Development c++
Member Avatar for ThomsonGB
0
267
Member Avatar for fishsticks1907

I trying to get the hang of link list, but very time a write one i fail miserably... [CODE]struct node { int data; node *next; }; int main() { node *head = new node; head = NULL; node *temp = head; //node 1 temp->data = 1; temp->next = NULL; temp …

Software Development c++
Member Avatar for fishsticks1907
0
115
Member Avatar for twek

title is self explanatory how do i convert it to a std::string? all this LP stuff makes my brain hurt...

Software Development c++
Member Avatar for easysir
0
3K
Member Avatar for burcinerek

I write letter, it checks vowel or not but could not achieve for the capital letter without using if loop help me [CODE]#include <cstdlib> #include <iostream> #include "stdio.h" #include "conio.h" #include "string.h" using namespace std; int main(int argc, char *argv[]) { int a,b; char ch; printf("Enter Letter="); scanf("%c",&ch); if (ch==a) …

Software Development c++
Member Avatar for rubberman
0
108
Member Avatar for sania khan

This is not giving right output :((( [CODE]#include<iostream.h> #include<conio.h> using namespace std; int main() { char c[80],d[80]; cout<<"Enter a string = "; cin.get(c,80); strcpy(c,d); strrev(d); cout<<"String = "<<c; cout<<"Reverse word "<<d; getch(); return 0; }[/CODE]

Software Development c++ display
Member Avatar for vijayan121
0
371
Member Avatar for jackbauer24

What is wrong with this code? [CODE]import time import sys print """Welcome to the age finder. This program takes some input (they will be the years) and then adds it to 4 ages. For example, if you give the ages 10, 11, 12 and 13 it will return the age …

Software Development python
Member Avatar for Gribouillis
0
338
Member Avatar for skips

I'm just learning PERL. I'm working on a short practice data set. All I want to do is to see if A) all values from a list exist in a hash i've made from a separate data file, and B) are the values that do exist defined--i.e. have a value …

Software Development perl
Member Avatar for skips
0
137
Member Avatar for bibiki

hey there, I am trying to test strings using regex to make sure that the string may represent a monomial. that is, it must be 123123213x^213123. I am having difficulties to find any helpful information on how to test for ^. I am trying this: [+|-][0-9]*[.][0-9]*[x\^]? but I get a …

Software Development java regex
Member Avatar for bibiki
0
116
Member Avatar for lundon

i searched for similar threads but couldnt find any. i write python scripts ..but i want to store them in someother folder eg /Desktop/... the scripts get executed from the unix terminal..however the python intepreter(initialised by typing python in terminal window )is not able to find the files. i changed …

Software Development python unix
Member Avatar for Trentacle
0
162
Member Avatar for kbar1

I'd like to spend some time killing my brain cells over a small program which nevertheless uses appreciably high logic, e.g. some scientific application. I'd classify myself as a mid-range, so please go easy. Thanks!

Software Development c++
Member Avatar for mike_2000_17
0
161
Member Avatar for Dakot

hello,i must solve this problem : "Sum all even digits of a given number. That's what i've got so far. [CODE] #include <iostream> using namespace std; int main() { int sum = 0 , num; cin>>num; while(num > 0) { sum+=num%10; num/=10; } cout<<sum; return 0; } [/CODE] the problem …

Software Development c c# c++
Member Avatar for burcinerek
0
165
Member Avatar for mpooley

I have a datatable - 1 of the columns is a double so i read it like this Dim num As Double = Drow(1) I get an error about late binding here (with option strict on) I have tried converting to a double eg Dim num As Double = convert.toDouble(Drow(1)) …

Software Development vb.net
Member Avatar for mpooley
0
85
Member Avatar for mrbungle

Need help. I have a combobox (cmbCharge1) that gets populated by a text file. Inside the combobox, the data inside is laid out like this: 41-1A-1303: EXPIRED REGISTRATION Now, autocomplete works fine, if I start typing in the statute (like the 41 part). But what I need is for it …

Software Development vb.net
Member Avatar for malhar1122
1
1K
Member Avatar for sofia85

Hi, I need some help getting the hypergeom distr. I've started with this code, but it doesn't seem work: [CODE]def logchoose(n, k): lgn = special.gammaln(n+1) lgk = special.gammaln(k+1) lgnk = special.gammaln(n-k+1) return lgn - (lgnk + lgk) def hypgeo(x, r, b, n): return exp(logchoose(r, x) + logchoose(b, n-x) - logchoose(r+b, …

Software Development python
Member Avatar for Gribouillis
0
105
Member Avatar for vijaykavin10

Hi All [CODE]package apple; import java.io.IOException; import java.util.Scanner; /** * * @author Mates */ public class Apple { private double sample(){ double total; int a=120; Scanner as=new Scanner(System.in); System.out.println("enter the value"); double i=as.nextDouble(); total=i*a; System.out.println("apple"+i+"kg"+" "+total); [COLOR="red"]return total;[/COLOR] } public double sample1(){ int b=50; double total1; System.out.println("enter the value of …

Software Development apple java
Member Avatar for vijaykavin10
0
295
Member Avatar for ryanwebber

Hi I require assistance on how to sort numerous records in C# in chronological order e.g the date of birth, if someone could help me it would be much appreciated. Thanks Ryan

Software Development c#
Member Avatar for darkagn
0
184
Member Avatar for inuasha

The title really says it all. For example if I had a music file and I wanted to have it play all the way through then how would I make it start another music file after the first is done?

Software Development operating-system python
Member Avatar for inuasha
0
216
Member Avatar for Begginnerdev

I have recently written a VB.NET application and I am stuck on the deployment. I can't use the ClickOnce, because the program has to be installed on the machine under program files, therefore, I use InnoSetup. My problem is that the application requires sqlclient and .net 4.0 to be installed, …

Software Development vb.net
Member Avatar for Begginnerdev
0
814
Member Avatar for VB 2012

Is it possible to make a vb.net application faster Through code like using characters that the Computer already understands Like coding in certain areas through y x (math) etc. Will it be More faster since the compiler don't have to really do much work But its still must be VB.NET …

Software Development c++ vb.net
Member Avatar for VB 2012
0
3K
Member Avatar for hszforu

When i make 2 object for a same class, and then i make one object equal to another, then changes made to one object affect another object also, then when i assign one object as "null" then why the change is not made to another object as well? Here is …

Software Development java
Member Avatar for hszforu
0
126
Member Avatar for AquaNut

Hi All, I have a 3 richtext boxs where I add each line together and output to a textbox, all is working great. But the problem I am seeing is that I paste the contents from a spreadsheet which strips off the leading 0 (zero) from a 9 digit number …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
213
Member Avatar for glao

Hello , i have two tables ,animal ,which has name,familie and weight and table food which has feed. I want to assure that every animal has at least one food. I did this : [CODE]import mysql.connector from database import login_info db=mysql.connector.Connect(**login_info) cursor=db.cursor() data=[('Geo','Elephant',['hay',peanuts']), ('Gerald','Gnu',['leaves','shoots']), ('Leo','Leopard',['meat']) ...................... ] for name,familie,feed in …

Software Development python sql
Member Avatar for glao
0
4K
Member Avatar for jackmaverick1

So. I've written my first little graphics game (using the Graphics API) and would like to know two things: a) What's wrong with my collision detection? (Could you point me in the right direction?) b) What am I doing that is not the best way. Is there a better way …

Software Development api java
Member Avatar for JamesCherrill
0
125
Member Avatar for archelle

I created a table in mySql named 'user' where fields are: UserID,UserFirstName,UserMidName,UserLastName,Username,UserType,AcctPassword,DateCreated, DatLastModified and IsDeleted. I create a separate form in vb.net to insert user record in database. My program can do insert command and bound this data from mySql to datagridview. And now, i wanted to update this by …

Software Development mysql vb.net
Member Avatar for M.Waqas Aslam
0
450
Member Avatar for tricket_7

I am working on this visual studio 2008 calculator in c#. The calculator seems to be working, but when I created the Calculator Class, now it does not compute. I can click the number buttons, and they show up, but when I hit equals I just get a zero. Can …

Software Development visual-studio
Member Avatar for dynw
1
1K
Member Avatar for programing

plz i try to make factorial program but i have mistake [CODE] import java .util.Scanner; public class Factorialrec { int fact(int n) { int result; if ( n ==1) return 1; result = fact (n-1) * n; return result; } } public static void main(String [] args){ Scanner input = …

Software Development java
Member Avatar for programing
0
129

The End.