199,114 Archived Topics
Remove Filter ![]() | |
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 . | |
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 { … | |
hi all, iam familier to php forum here but completely new to vb.net, i am developing a web application using oracle database,vb.net and asp.net,just stuck up with generating manage content table with edit and delete you can see it in image file attached which is done in php here is … | |
[code]function calculateDate(value) { if (document.form.fromDate.value != null && value != null) { var date = getDate(document.form.fromDate.value); date.setDate(date.getDate() + parseInt(value)-1); var curr_date = date.getDate(); var curr_month = date.getMonth()+1; var curr_year = date.getFullYear(); var dateString = formatString(curr_date) + "-" + formatString(curr_month) + "-" + curr_year; document.form.toDate.value= dateString; } } function calculateValidDays() { … | |
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 ? | |
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 … | |
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 … | |
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 … | |
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 … | |
I am new to PHP and have not yet learned all the syntax and commends but was wondering if an easy script can be made to copy files of the same name from one directory over to another directory thru a PHP script in other words if I have 2 … | |
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 … | |
I don't know if this is possible with php, but i am trying to set the background of a site to a series of randomly placed, random images of the same size. What i am curious about is whether there is a way to take a handful of images and … | |
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 … | |
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 … | |
G' day!i have my code here in searching a record..it runs very well..but i want to add an options..i want to add like this: [CODE]<select> <option name="course">course</option> <option name="surname">surname</option> <option name="department">department</option> <option name="email address">email address</option> <option name="student no">student no</option> </select>[/CODE] i want to add that code in my program..and i … | |
Hey Guys, I appreciate any and all help. I'm trying to print out the results of a query I've made to another server using the nusoap client. I'm successfully sending my XML Array to their WSDL web service and they are sending an XML response back. <RESULTS><TEXT>Success</TEXT></RESULTS> However all < … | |
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 … | |
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 < … | |
Hi, I have developed an application a while ago and used CSS for the formatting of the generated web pages. As I am using Google Chrome, everything was working fine and I have tested it few times on Firefox and noticed slight differences. Yesterday, one of the users complained that … ![]() | |
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 … | |
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 … | |
Hi all, Been pulling my hair out on this one. I have a simple query: [CODE]$query = (" SELECT course_code, student_grade, start_date FROM ccdata WHERE student_id = '$local_id' AND start_date= '20091023' ") $result2 = $mysqli->query($query, MYSQLI_STORE_RESULT); //$total_courses_I = $result2->num_rows; while ($obj2 = $result2->fetch_row()) { $course_code = $obj2[0]; $ypos += 5; … | |
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 … | |
Hiya, Ive been using sessions for my website login but dont actually seem to be able to get my head round the data and content of it! For example ... if im using a session that holds the username of the member which is used to indetify and check access … | |
hi guys, i just want to ask how could i input an action to a link?? the best choice was to create a button which will do the act, however, im having difficulties with it. now my resort was to add the code to the link..meaning instead of the submit … | |
Help, my forums worked great until I got over 1000 posts, but then they stopped ordering correctly. Whenever someone posts a new thread it puts it on the second page now. HELP! | |
I need a way to check what service a port is running in python, thanks for the help in advance. | |
Hi! please tell what is the function intead of getdelim to work as getdelim in windows. because it is supported for windows envirnmnt na.. | |
[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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 ) { … | |
Hello, I've wound up with a strange problem with my php script. The script goes into a SQL DB and checks the values of two different columns to see if they are equal. If the columns are not equal, then I store all of the possible values in column 1 … | |
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. … | |
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 … | |
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 … | |
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 { … | |
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 … | |
I was planning on taking a program regarding haskell, but I don't know if its the good thing.. I mean... some said its like out of style ... I am still searching and trying to know if I need it ... or if I need to learn more about functional … | |
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 … | |
![]() | Hi, I'm having a problem debugging a piece of code. I will paste the JSP version (that works) and then the exact same thing in Servlet form (that does not work). The code's function is to change a picture on mouseover and then revert onmouseout. I will paste for only … ![]() |
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 … | |
Hi I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got … | |
Dear Developers How to enable "Autio Hide" command for Solution Explorer Window Please Help | |
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. … | |
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 … |
The End.