64,152 Solved Topics
Remove Filter ![]() | |
I don't understand why my labels are not coming up when i run the code are the JComboBox to big or what? [CODE]import javax.swing.*; //import javax.swing.AbstractButton; import java.awt.*; //import java.awt.event.ActionEvent; //import java.awt.event.ActionListener; public class floralOrderGUI { JButton submitButton = new JButton("Submit"); public static void main(String[] args) { new floralOrderGUI(); //system.exit(Q); … | |
Hi guys. First I have spent awhiel trying to find an answer for this online and haven't been able to. I have defined a variable ($new) in the beginning of my page. to test that is IS defined right i echo'd it...im using nested if statements to check thing. in … | |
hi, i am using cacls command to grant full permission to the user.But it's not working i am posting here source code please help me to identify the error.I also try this code by using Administrator account but it's not changing the file permission. code is [CODE] ProcessStartInfo psiOpt = … | |
i am trying to extend a splashscreen window ti 15 minutes can anyone help. [CODE]import java.awt.*; import javax.swing.*; public class flowerOrder extends JWindow { private JProgressBar bar; private JLabel ImageHolder; private ImageIcon myImage; private int i; public flowerOrder(){ setBounds(60,60,600,600); //set location and size of the window getContentPane().setBackground(Color.BLUE); //set the background … | |
hi all, i was trying to write to a pre existent binary file but every time it would change the size of file and remove all of its contents so what i should i do????? here is an example to what i'am trying to say(it is not exactly the same … | |
Hello! So I have a program where I need to open a file, pass the reader into a method, and then within the method read from the file. Then when control shifts out of the method, I need the file reader to be able to pick up where the method … | |
hello! i need to make this program that lets the user input like for example 99 then the program will output 'c'. i don't know how to start. but i thought about getting the first 9 first, then subtract 30h, the multiply it by 10. afterwards, add the other 9, … | |
Hi everyone, I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine. I went back to an old school assignment I did years ago, cut-n-pasted that code, intending to basically cannibalize it for the program I need to … | |
I have started getting an out of memory error that wasnt occurring before I changed hosts. I altered my php ini settings to add but the godaddy people pointed to this code and suggest I rewrite it. The problem I am having is I took this code from someone else … | |
We get files from a unix system that are delimited with linefeed only, this is not a problem. The problem is that within some of the fields themselves, there are carraige controls ("\r\n"). Reading the file using OS will see a row like this and stop reading at the crlf. … | |
I have a small test program made, and it actually fully works. It connects, and you can send messages back and forth.....but for some reason, when I call connect(), It returns SOCKET_ERROR, but connects, and works fine anyways. Does anyone know why? here is the code: see lines 160, 161 … | |
I have a problem where I need to be able to create an array using the data from the text file. The first line of the file is the array size and the following values need to be put into structs. There may be more than one array per txt … | |
When I read a text file as the code below the first line returns as nothing. I checked the text file and it contains 3 lines before the read. After the read the first line is blank the following 2 lines have values. I don't write back to the file, … | |
Suppose I have an Outlook account that is logged in at the computer. How can I send an email from this account to a given contact (if this can be a group, that would be really nice) via a C# program? Thank you very much! | |
Hey, I am having real trouble with this code, and for the life of me just can't see or figure out why this won't work. It works every other time I have done it. I have checked, double checked, tripple checked the table it's coming from. I'm as lost as … | |
Hello everyone, first of all I would like to say that I'm new to java and I'm getting this error while trying to compile a program from a book that I am using to learn the language. Ok so the program is very basic just two classes here is my … | |
EDIT: Deleted the original question. After reading, I realised that I would have to paste so much additional code that it would take someone a couple of days just to understand what was happening in my own code that it may detract from the issue at hand. Problem: When I … | |
Hi im doing bachelor degree of science IT. Now im in da final year n searching for a topic for my Final year project.I interested to develope a system using PHP but i still did not come out wif any idea, the previous idea that i give to my supervisor … | |
Dear members I am new to the world of XML and XSL transformation, i hope someone can help me with this XSL transformation for an XML. I am not geting the expected result as described below The following is the XML that I am trying to transform to another XML … | |
I am trying to access some functions with in a dll I downloaded. I know I need to use ctypes, but all the examples and tutorials use windll.kernel or windll.user32 respectively. How would I go about calling a function with in xyz.dll? EDIT: Never mind, with a bit more digging … | |
I use almost every day, [url]http://www.mibbit.com[/url] It's a web client for IRC. It has one real nice feature. when i type, if i misspell a word, it sort of writes a line through the word, and i can right click for spelling suggestions. I think actually it might be my … | |
Hello Everybody - I have a question that I need answered - Is there a way to implement either a vertical drop down menu or a horizontal drop down menu on a "hot spot" on an image map where as when the mouse rolls over the "hot spot" the "hot … | |
Hi there I have a page that has php code at the top. Ajax before the body tag and a form. I need to be able to call a php function (the one at the top of my page) that adds info from the form into the DB. Normally I'd … | |
Hello... In strings i learned how to sort about numbers... the question is, how does one sort letters? there are some sort in alphabet here in Daniweb but i cant understand its process is Letter A > than Z? is the computer using ascii values? isn't A(65)< Z(90)? if in … | |
Can you give me a sample registration module ? Please. Badly Need It. | |
hello, Can u tell me how can i use try...catch in following coding. This code is for save the data. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace savita { public partial class Form5 : Form { DataTable dt; … | |
Hi All I have a requirement to develop a VB application to download a pdf file from a server using an example URL [url]http://xxxxxxxxxxxxx/pdffiles/yyyyy.pdf[/url]. I need to perform a silent download and print the same to the local printer. As this is going to be a scheduled task, I need … | |
Hi I need to know how to keep data in a gridview after postback. I am using sqlDataAdapter with DataSet to fill the gridview. But if you want to go to the second page of the gridview list it loses the data. Would it be best to create a Session … | |
hi Im trying to write a program to store info on books (title, author, number of pages and price) i have a class for books that works and the program accepts input from the user correctly but my problem is that it has to throw a exception when the price … | |
I got this code off a site, with a really nice layout and style, I've never worked with input field, so I'm stuck how can I save this to a database. I tried changing everything to a <asp:Label> and <asp:TextBox> but then I do not get the same layout. [code] … | |
In the code below I have a class that handles what folder the user is in, so they can browse through multiple folders. I know that this isn't going to work right just yet. This is the first time I've tried using classes and I don't understand them so well. … | |
I have this php based website, that displays a photo and draws data from a db to display on the page. Currently has a link to a live camera(viewed by internet browser) that opens in a separate page. I have heard/read that using jquery you can create a iframe within … | |
Hi I need to write a sql script to split a string in two or more parts. e.g. I have a string: "tag: key1, key2, key3" I would like to use the ":" as a seperator and thus end up with two strings: "tag" and "key1, key2, key3" Is this … | |
Is there an easy way to convert a simple integer into a boolean type? | |
Hey guys. I have a question. In my program, I'm calling a Process (Internet Explorer) on button click, but I want to customize the size of the IE window being opened to something like 800 x 600 pixels. Do you know how do it? Below is my base code. [CODE]Process … | |
HEre is my C++ program I made.... first I will put the directions and then the program. I cant seem to compile it for some reason so can anyone tell me what I did wrong please!! Write a C++ program that does the following. Besides #include <iostream>, you will need … | |
[CODE] #include <iostream> #include <string> using namespace std; int main() { string character; cout << "capacity: " <<character.capacity() << endl << "Input a sequence: \n"; getline(cin,character); string reversestring; int counter = 0; for(int i = character.length() - 1; i >= 0; i--) { reversestring[counter++] = character[i]; } cout << reversestring; … | |
I want to insert number for City_Id and City_name , i wrote a query for auto generate number for City_Id,working fine but in the city name i want to avoid inserting duplicate value like if Mumbai is a City ihave already saved then system should not allow that name again. … | |
I want to find out the names of temperory tables from oracle database? | |
Hi Daniweb team, I need to understand newinstance in java.I do no how to implement it and i tried this program but getting some errors. 1.Can anyone tell me how to use new Instance and what mistakes i have made in this program.? [code] import java.io.*; public class sample { … | |
Hi Friends, I have a strange problem and I need your support to get this resolved. Recently I have created a setup and deployment project for my VB.NET application. In that seup project unknowingly I changed the command section to .exe. Now after Installing the application in my pc, whatever … | |
I am working on a program in c and I am trying to declare a ten element array, using a for loop to insert the elements. I am also using a second for loop to acquire the sum of all the elements in the array. I'm new to programming so … | |
I am following the code in a previous thread and cannot access SQL database. See attached login.aspx and login.aspx.vb files. Database file is a simple "Users" filw with AutoID, username, email and password. What am I doing wrong? Any help is greatly appreciated. | |
hi Im building an asp.net application which sends data to another webservice and then sends the data back. I get it to receive the data and save it into a sql database. But I cant get it to display in the gridview. I have been struggling with this for over … | |
Say for example I have: [CODE] List<string> itemset1 = new List<string>(); List<string> itemset2 = new List<string>(); // Linkedlist itemsetcurrent [/CODE] Which is declared outside the functions, and must be accessible from all the functions. Now, I have a code like this: [CODE] private void SetList(List<string> list) { itemsetcurrent = list … | |
ok what i'm trying to do is make a pong game in an applet. here's my code: [CODE]//<applet code = Pong width = 800 height = 600></applet> import javax.swing.*; import java.awt.event.*; import java.awt.*; import com.bruceeckel.swing.*; public class Pong extends JApplet implements KeyListener { int px1 = 770, px2 = 20, … | |
Hi, I'm kinda new to the c# programming and I have an assignment to make a simple app for accounting. So, I made a DB in visual studio, made a new project that is connected to that DB. Table B has a column 'FK_TableA'. On a form I have put … | |
Hi, I am trying to make a windows forms application that starts using Sub Main instead of the Form1_Load event. I have tried putting this in Public Class Form1 [code="vb"] Public Shared Sub Main() MsgBox("ASdf") End Sub [/code] and also tried putting this at the top of the programs code … |
The End.