132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for muusa

hello friends. i would like to know if it is possible to run a class file using a java program itself.i mean a program tht would return the answer (run) the class file .

Software Development java
Member Avatar for muusa
0
170
Member Avatar for adam291086

Hello i am new to java and playing around with some scripts. I have three java files [B]Main.java[/B] [CODE]package snake; import javax.swing.*; import java.awt.*; public class Main{ public static void main(String[] args) { new board(); } }[/CODE] [B]board.java[/B] [CODE]package snake; import javax.swing.*; import java.awt.*; public class board extends JPanel { …

Software Development java java-swing
Member Avatar for Stefano Mtangoo
0
162
Member Avatar for dkanthi

Hi... getdelim function is posing an "undeclared identifier" problem during execution .so i included #define _GNU_SOURCE even though it is posing the same problem . i am executing the c++ program in visual studio in windows platform . how to add GNU extensions in Visual studio ?

Software Development c++ visual-studio
Member Avatar for drekha
0
468
Member Avatar for axn

cant figure out why summaryCounter wont increment?? [CODE] if (source == calculateButton) { int summaryCounter = 1; double payment = Double.parseDouble(paymentTextField.getText()); double rate = Double.parseDouble(rateTextField.getText()); int years = (Integer)yearsComboBox.getSelectedItem(); DecimalFormat currency = new DecimalFormat(" ##,##0.00"); double futureValue; String s; int i; futureValueListModel.clear(); System.out.printf("\n Investment Summary Option %d \n Monthly Payment%,10.2f\n …

Software Development java
Member Avatar for verruckt24
0
103
Member Avatar for anevins

I need to create a program that uses the String classes to read the suffix .txt and if true, return the sentence inputted, but if false return another sentence. I'm unsure of which boolean method I will need to use to execute this. Can anyone help me? Here is my …

Software Development java
Member Avatar for verruckt24
0
103
Member Avatar for ELBUF

My following question regards a problem I am having remembering python code. It has been about a year and a half since I last opened the shell or wrote any sort of code. I am attempting to rewrite the bullseye program that was seen in the Greater New York Programming …

Software Development dataset posting-games python
Member Avatar for ELBUF
0
5K
Member Avatar for lewashby

I'M trying to switch from Windows to Ubuntu Linux. I'M trying to learn how to program and since I am also trying to move to Linux, thought that mono would be a good place for me to start. But I noticed when I installed mono ([url]http://www.mono-project.org[/url]), it said I needed …

Software Development open-source ubuntu
Member Avatar for lewashby
0
69
Member Avatar for Soileau

I am getting all sorts of incorrect type warnings when I compile the following code: [CODE]// hw1.c // Josh Soileau // 1/19/10 // Program: Asks / stores info on a bank // #include<stdio.h> int main(){ char name[25] = "blank", rating[25] = "blank", state[25] = "blank"; int lobbyists=0, prevemploys=0, number=0; double …

Software Development c
Member Avatar for WaltP
0
182
Member Avatar for jamesonh20

I have a windows form that starts at a designated size (not mazimized). I have a pictureBox1 control that zooms in & out. when I maximize my window and zoom in I need the pictureBox1 to return to it's original size upon clicking back to the original sized window. ANY …

Software Development
Member Avatar for jamesonh20
0
146
Member Avatar for sfurlow2

We have a programming project due in which we are supposed to create a boggle board. We are supposed to read in a file with the boggle dice (basically just sixteen lines of six random letters), then ask the user if they want to shake the board. If they say …

Software Development c++
Member Avatar for sfurlow2
0
596
Member Avatar for vlady

hello, pls, can anybody help? I try to print words which contains forbidden letters but counting without them and excluding the words which has the smallest number of letters. example: words = 'hello this is my test' forbidden = 'h, t, e' 1. hello this test -> these word contains …

Software Development python
Member Avatar for sneekula
0
124
Member Avatar for gamerchick

Does Anyone know how i can convert this 1D array (findArray) that checks for an element Into a function called 2Dfind that searches a 2D and pass each array to arrayfind(), to do the searching [CODE] int findArray(int A[], int n, int x) { for(int i = 0; i < …

Software Development c++
Member Avatar for dusktreader
0
230
Member Avatar for Soileau

I am very very blurry about when to use pointers or not. I am writing a function (given below), and trying to pass in two variables, statenumber and state. I have them being passed in as chars, and not char *s. I get error messages both ways. I dont know …

Software Development c
Member Avatar for gerard4143
0
138
Member Avatar for chaienbungbu

I read this code section from a tutorial, but I cannot understand it thoroughly. It is about Pointer & Class Pointer & Array Pointer. This is it: [code] // pointer to classes example #include <iostream> using namespace std; class CRectangle { private: int width, height; public: // prototype void set_values …

Software Development c++
Member Avatar for chaienbungbu
0
180
Member Avatar for khipasi

Hi, I am trying to write a program that will show the difference between two days. The end or ( to date) will be given(CONSTANT). But the from date must be entered in the edit box in the following format: YEAR, MONTH, DATE, HOURS,MIN,SEC. example 2009,01,22,12,32,02 I will be happy …

Software Development pascal
Member Avatar for finalist
0
161
Member Avatar for joehms22

I need a way to check what service a port is running in python, thanks for the help in advance.

Software Development python
Member Avatar for SoulMazer
0
442
Member Avatar for nagajyothi

Hi! please tell what is the function intead of getdelim to work as getdelim in windows. because it is supported for windows envirnmnt na..

Software Development c
Member Avatar for Ancient Dragon
0
141
Member Avatar for Aamit

[code] #include<stdio.h> #include<conio.h> #include<string> #include <iostream> #include<stdlib.h> #include "convert.h" using namespace std; int check(string); string send(string); string hr_str; int main() { int result=2,n; char tt[7]; char h[2],m[2],s[2]; cout<<"\nEnter the Time "; string colon=":"; while(result !=1) { printf("\nHR -> "); scanf("%s",h); result= check(h); } cout<<"\nMain Fun"<<hr_str; string t_time; strcpy (t_time,hr_str);//-----problem is …

Software Development c++
Member Avatar for Ancient Dragon
0
3K
Member Avatar for Memo..~

Hi everyone.. I wrote this program but I could not get the panels as what I arranged them.. also I don't know what's wrong with the scrollbar cuz I couldn't get the concept of it very well.. [CODE]import javax.swing.JFrame; import javax.swing.ImageIcon; import javax.swing.JPanel; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JTextField; import …

Software Development java java-swing
0
65
Member Avatar for jemz

hello can you help me where to put the messagebox "file not found"...because if i put on else after the grd.Rows = grd.Rows + 1 only one data having this precint number will be display all i want that all of them will be display..sample ..D-314 is the precint number …

Software Development visual-basic
Member Avatar for vipin saxena
0
345
Member Avatar for boris_rk

Hello, I am new here and I have a bit of a problem. It's probably solvable and some of you with more experience will probably be able to help me, and I'd appreciate it! So, I'd like to learn how to make a little tool that I'm making be able …

Software Development hard-drive
Member Avatar for boris_rk
0
76
Member Avatar for Filipov

I need help with my JAVA homework, i need to make a java program about making a diagram, or diargrams of any kind graphic diagrams about any kind of data.

Software Development java
Member Avatar for Ezzaral
0
66
Member Avatar for rahul8590

I got this silly problem and honestly dunno why it isnt working . The scenario is i got a text file with information and i got to print the ASCII equivalent of the text into the screen . While attempting to do so , i am getting the binary equivalent …

Software Development c++ file-system
Member Avatar for nezachem
0
200
Member Avatar for Shmoil

Hello. I am new to jave so please forgive my newbishness. I've used Netbeans IDE 6.0 to construct a GUI for my project. However I have ran into a few problems; 1. I cant seem to get a jButton to change the text of a jLabel. (im trying to get …

Software Development gui ide java
Member Avatar for Shmoil
0
114
Member Avatar for Eddy Dean

Hello, I've had some problems converting a string into a char. I've tried many, many things, but it didn't seem to work. I'll post the code below: [code] char filename[1024]; char* url; string sUrl; HINTERNET hINet, hFile; hINet = InternetOpen("InetURL/1.0", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 ); if ( !hINet ) { …

Software Development c++ first-post visual-studio
Member Avatar for Salem
0
2K
Member Avatar for fadia

I'm working on this program. There are 3 classes. These two classes [COLOR="Red"]PassengerMenu and SecurityMenu[/COLOR] are inherited from the class [COLOR="Green"]MainMenu[/COLOR] So the main menu would provide the logo and a description (normal cout). Also an access to either the passnger menu or the security menu. according to your choice. …

Software Development c++ oop
Member Avatar for fadia
0
169
Member Avatar for stahlsta210

Working no something for school and keep getting this. \\filesvrcls\2011\stawil\Java\midterm2.java:37: illegal start of expression public static int numsum(int a, int b) ^ \\filesvrcls\2011\stawil\Java\midterm2.java:60: class, interface, or enum expected } Process completed. [CODE]//*********************************************************** // midterm2.java Author: Will Stahl // // demonstrates Keyboard class //*********************************************************** public class midterm2 { public void main(String …

Software Development java
Member Avatar for masijade
0
103
Member Avatar for itzshaheer

I made a query for inserting a value from text box to MS ACCESS db [CODE] sql = "INSERT INTO Equipment (port_number,display_name,equipment,tonnage,user_privilage) VALUES (" & CLng(txtPort.Text) & ", '" & CStr(txtDisplay.Text) & "', '" & CStr(txtCA.Text) & "', " & CLng(txtTonnage.Text) & ", '" & CStr(cmbUser.Text) & "')"[/CODE] Actually I …

Software Development microsoft-access vb.net visual-studio
Member Avatar for vbdotnetlover
0
151
Member Avatar for stahlsta210

Stuck again. could use some help from the community. [CODE]// This program accepts a height and a radius from the user // It uses a subroutine to calculate the volume of the cone // The formula is v = (3.14 * r * r * h)/3 public class Midterm { …

Software Development java
Member Avatar for Zaad
0
126
Member Avatar for cpp_noobsauce

Ok so I posted this before but didn't get a response... Our prof gave us this problem: "Write a program that will get, from the user, a string of characters such as a sentence, and place this into a declared char array. Ask the user which letter they would like …

Software Development c++
Member Avatar for Salem
0
240
Member Avatar for Memo..~

Hi everyone ... I hope that all of u r OK... This is the second semester for me in JAVA .. I have an assignment to create a GUI using JAVA and I almost finish but the problem is the teacher asked to use any component that she didn't teach …

Software Development gui java
Member Avatar for Ezzaral
0
153
Member Avatar for mice1793

I have tried many things obviously not everything or it would work, but i need your help. i have run out of ideas on how to fix this. im programming a fishing database where users enter the data and over time it collects and shows them were the type of …

Software Development java
Member Avatar for cale.macdonald
0
162
Member Avatar for vbdotnetlover

Dear Developers How to enable "Autio Hide" command for Solution Explorer Window Please Help

Software Development vb.net
Member Avatar for padtes
0
118
Member Avatar for helinix

Hello everybody First thanks for your help and the good forum. My question needs a little bit explanation first. I study computer science.I had a course in Computer Organization and design and we had a course about microprocessors with an assignment on 80C51 microprocessor. actually i couldn't do it well. …

Software Development assembly
Member Avatar for Salem
0
126
Member Avatar for Izarian

Hey guys, I'm working on converting some existing Java Code over to C++, trying to use only built in standard libraries because the platform we are building on we won't be able to have any outside libraries, and it's been a while since I had to write "fancy" c++ code …

Software Development c++ java
Member Avatar for Izarian
0
138
Member Avatar for Gaiety

Is there any problem with the code . Why this code is generating all offsets as 28. [CODE] #include<stdlib.h> #define offsetof( T , M ) (( size_t )(( char *)&(( T *)0) ->r - \ (char *)(T *) 0)) int main(void) { struct STU { char name[20]; struct DATE { …

Software Development c
Member Avatar for Gaiety
0
100
Member Avatar for kiroyzki

C:\Documents and Settings\Elliona\Desktop\kirby>javac payrollsystem.java payrollsystem.java:166: '}' expected filter.close(); ^ 1 error here is my full code [CODE]import java.io.*; import java.util.*; public class payrollsystem{ public static void main(String args[]) throws Exception { File employee = new File("employee.txt"); File dtr = new File("dtr.txt"); PrintWriter pw = new PrintWriter(dtr); Scanner filter = new …

Software Development java
Member Avatar for musthafa.aj
0
100
Member Avatar for cruisx

Hi, i was wondering if someone could show me how to log into a website using c++ .net? I want to login to say megaupload.com for example, now i have to code in c++ but how could i do it in managed c++? A link or something would be great, …

Software Development c++ flash xml
Member Avatar for kvprajapati
0
276
Member Avatar for yasmena

Hi, I'm learning aspectJ and was wondering how can i use the Plugin in Eclipse IDE ..i Googled alot but nothing helped me !! i downloaded the Plugin fom the eclipse site but can't find an aspectj project when i open eclipse and try a new project i'm supposed to …

Software Development ide java
Member Avatar for yasmena
0
55
Member Avatar for chaienbungbu

I'm a java developer. Recently, at university, I have been assigned a task about network programming with C++. The specification is about create a distributed application (with a server and many clients). If they allow to use RMI in Java or .NET Remoting with C#, it's easy for me, because …

Software Development c++
Member Avatar for adcodingmaster
0
163
Member Avatar for lordx78

Hi there, I'm unable to run the demos java files. I followed the ways according to the prefuse tutorial. It says, 1) Go to "build" folder 2) Launch demo of interest java -cp prefuse.jar:demos.jar prefuse.demos.<name of demo here> and I inputted e.g. java -cp prefuse.jar:demos.jar prefuse.demos.TreeMap.java Please advice. [COLOR="Red"]*Screenshot Attached![/COLOR]

Software Development java
Member Avatar for fleure
0
105
Member Avatar for checho

Hi i have the next task. 5. Create a hierarchy Dog, Frog, Cat, Kitten, Tomcat and define suitable fields, properties, constructors and methods according to the following rules: All of these are Animals. Kittens and tomcats are cats. All animals are described by age, name and gender. Kittens can be …

Software Development java
Member Avatar for JamesCherrill
0
834
Member Avatar for Ecliptical210

Hi Guys, I posted earlier, and I figured it out after a few hours of playing around with it. Now, a new question arises. Is it possible to get the input from a JTextField and add it into a JComboBox via an array? The only thing stopping me from achieving …

Software Development java
Member Avatar for javaAddict
0
155
Member Avatar for GoldenDrago

I had posted earlier requesting help with my code, but I quickly cleared up my issues. I am almost complete with my work, but I was just wondering if I could get some help on fixing some code which may cause my program to crash or not function properly. [CODE]public …

Software Development java
Member Avatar for javaAddict
0
83
Member Avatar for jayrana

when i comple this code it says, wander.cc:28: error: 'Wander' was not declared in this scope I got this code from Jenny Owen's tuorial on Player/Stage. In that one th Wander function is not decalred. Could you please tell me why I am getting this error and how to declare …

Software Development c++
Member Avatar for thomas_naveen
0
66
Member Avatar for Ecliptical210

Hi guys, I'd really appreciate it if someone could look over my code and tell me why my JComboBox isn't working. I've got 3 Classes, 2 for the GUI, one for the standalone which the array is contained in. [CODE]import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JFrame; import javax.swing.JComponent; import javax.swing.SwingUtilities; import …

Software Development api gui java java-swing windows-api
Member Avatar for javaAddict
0
160
Member Avatar for snakay

Hi, I want to set typed dataset in my appl. joining 2 database tables. I can define dataset as xyz.xsd no problem, I define the relations. So this is a fixed set that I can use. But what if I have to add additional conditions to filter the data within …

Software Development dataset
Member Avatar for snakay
0
76
Member Avatar for Ashwin1985

Hi.. I have created an application which is using the org.apache.log4j.Logger class for logging various INFO/DEBUG?ERROR messages.. The application is working fine, including logging, when Run As Java Application in the Eclipse IDE..(log file is generated successfully and entries too are created) Then I exported the project to a .jar …

Software Development apache file-system ide java
Member Avatar for peter_budo
0
2K
Member Avatar for speakvair

wn compile a code(400 lines app) after running 3 times through the loop(loop in the sense assume the 200 lines) it says unable to open a file...(which it had opened d previous 3 times and executed wel) so i tried perror() and found "not enough memory" Please suggest me wt …

Software Development c
Member Avatar for thomas_naveen
0
162
Member Avatar for browne

I have written the below program for a homework and am really stuggling to find out how to do the email verification. Could anyone please help? (I have looked online and in the text book). Thanks so much. [code] program DataInput; uses Classes, SysUtils, crt; var sname: string[15]; fname: string[15]; …

Software Development email pascal
Member Avatar for FlamingClaw
0
126

The End.