64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for grako84

Hi folks! I'm trying to wire simple code and so far I'm stuck on ActionListener. My program should contain (JMenu) Menu called SELECT and two options InnerFrame 1 and InnerFrame 2. To debug it I've started using System.EXIT , unfortunately I cant compile my program, I'm receiving an error: "java:48: …

0
123
Member Avatar for Daigan

Here's what I have so far.. [CODE] // The "AddingPrefixes" class. import hsa.*; import javax.swing.JOptionPane; public class AddingPrefixes { static Console c; // The output console static char proc; static String prefix; static String word; static String sentences; private void title () { c.print (' ', 32); c.println ("Adding a …

Member Avatar for NormR1
0
181
Member Avatar for Murugavel B

[CODE]class point { private double pi; public double PI { get{ return pi; } set{ pi = value;} } } class Program { static void Main(string[] args) { point p1=new point(); p1.PI = 3.14; Console.WriteLine("The value is {0}",p1.PI); Console.ReadLine(); } }[/CODE] Actually i couldn't understand the use of PROPERTIES concept.... …

Member Avatar for skatamatic
0
111
Member Avatar for bwilson1

I know its bad to wait last minute ,but I have been working on the code the last couple of days with no result ,and now I'm finally starting to panic.I am having trouble with my program. I have been working on it for the last couple of days. I …

Member Avatar for Schol-R-LEA
0
183
Member Avatar for jazz_vill

I have a Java Desktop Application I made and I am now on the process of deploying the application. I tried to use Java Web Start but came up with certain problems. My application is fully working when I start it locally or inside my IDE. But when I try …

0
136
Member Avatar for Begginnerdev

A co-worker and I are trying to compile a VB.Net / ASP.Net application on another machine. We are getting two different sets of errors. One set of errors lists 103 undefined statements with no library missing. The other error is, " It is an error to use a section registered …

0
84
Member Avatar for javaAddict

Hello everybody. I have a question/problem. I have a select tag with several options. Sometimes the text of the option becomes very large. So I tried something like this for example: [CODE] <select> <option>A Very Big <br/> sentence</option> </select> [/CODE] But it didn't work. What I was trying is to …

Member Avatar for javaAddict
0
107
Member Avatar for mrar85

i have a formview which show the data from a database.. in another page, i have a datalist that also display data from the database.. in the datalist, i have a hyperlink that when click will navigate to the page that have the formview which display data that suppose to …

Member Avatar for mrar85
0
138
Member Avatar for nameunknown

Hi everyone, we have constructed a content management system that gets updated quite frequently and is used by many clients for their day to day opperations for their websites. We have decided to build a section of the CMS with additional modules that we will host on our cloud and …

Member Avatar for BitBlt
0
231
Member Avatar for tgr0ss83

I have an array that looks like this: [CODE]array 0 => array 'Time Stamp' => string '11/22/2011 00:05:00' (length=19) 'Name' => string 'CAPITL' (length=6) 'PTID' => string '61757' (length=5) 'LBMP ($/MWHr)' => string '48.24' (length=5) 'Marginal Cost Losses ($/MWHr)' => string '1.13' (length=4) 'Marginal Cost Congestion ($/MWHr)' => string '0.00' …

Member Avatar for cereal
0
95
Member Avatar for martin11ph

Hi all. I have this problem within the form. I take data from a DB and pass it on using POST. Considering that I fetched array correctly, the following code has the following output: echo $value[0]; //echoes [B]Hello World[/B] echo "<input type=hidden name=value value=".$value[0].">"; //when echoed in the form action …

Member Avatar for martin11ph
0
141
Member Avatar for PF2G

Can someone tell me what's wrong: Imports MySql.Data.MySqlClient Public Class Login Dim server As String = "Server=localhost;Database=escola_musica;Uid=root;Pwd=;" Dim con As New MySqlConnection Dim da As New MySqlDataAdapter Dim sql As String Dim cmd As New MySqlCommand(sql, con) Dim dr As MySqlDataReader Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As …

Member Avatar for bluehangook629
0
126
Member Avatar for slash16

want to do: [ICODE]dict = {'1': ['a'],'2': ['a', 'b', 'c']}[/ICODE] invert it to: [ICODE]inv_dict = {'a':['1','2'],'b':['2'],'c':['2']}[/ICODE] i know the one liner, if the dict was one to one, [ICODE]inverse = dict((d[k], k) for k in d)[/ICODE] can I modify this to work if it was not one to one? My …

Member Avatar for TrustyTony
1
2K
Member Avatar for PF2G

Hi, I have a form for registration and i would like to make Phone Number and other textboxes numeric and don't accept letters, i mean, if you write a letter 'p', for exemple it doesn'te write. Can someone help me? Thank You, PF2G

Member Avatar for stbuchok
0
127
Member Avatar for pendo826

Can anyone see the problem with my method ATTACK [CODE]#include "Monster.h" #include "Player.h" #include "Weapon.h" #include <iostream> using namespace std; Monster::Monster(std::string Name, int health, int hitPoints, int miss, int damage,const std::string& weaponName) { Name = Name; hitPoints = hitPoints; Weapon weapon; miss = miss; damage = damage; weapon.Name = weaponName; …

Member Avatar for pendo826
0
138
Member Avatar for PF2G

Hello, I'm doing a website about a music school, in this moment i'm working the list of instruments: [CODE] <?php $username = "root"; $password = ""; $hostname = "localhost"; $database = "esola_musica"; $connect = mysql_connect($hostname, $username, $password) or die("Erro na ligação à BD."); mysql_select_db($database,$connect) or die(mysql_error()); $sql_imagem = "SELECT cod_curso, …

Member Avatar for PF2G
0
162
Member Avatar for user543820

Hello! I want to split a string, say : "I have a dog" of string data type to an array of strings. I want to save that array. i.e I want an array like: array[0]="I" , array[1]="have" , array[2]= "a" , array[3]= "dog" Please help me out. Thanks,

Member Avatar for user543820
0
6K
Member Avatar for nyuszi

Hi i need a little help. i want to read a multi array from a file but code blocks said a lots of error and i dont know whats the problem. can u help me? [ICODE]#include <iostream> #include <cstdlib> #include <math.h> #include <fstream> #include <sstream> using namespace std; int maxn=100; …

Member Avatar for nyuszi
0
260
Member Avatar for Despairy

i have an assigment to fork the main program to 4 sons each will sort an array in a different way [ICODE] for (sonID=0;sonID<4;sonID++) { status=fork(); if (status<0) error("Can't Fork!"); if (status==0) { checkFiles(argc,argv,&in,&out,sonID);// opening the files for use readFromFile(&nameList,&sizeOfList,&numOfStrings,in); sortArray(numOfStrings,&nameList,sonID); outputToFile(nameList,numOfStrings,out); //output the array to out file freeArray(sizeOfList,nameList); //freeing …

Member Avatar for Despairy
0
184
Member Avatar for rotten69

Hi php geeks, I'm just looking for PHP exercise online. If anyone knows websites that offer hands-on PHP exercise, Please send me a link or something that redirects me to useful exercises. Your help will be appreciated. Cheers,

Member Avatar for rotten69
0
213
Member Avatar for shamsidah

hye everyone..i just want to share my problem using php..:$ i have data for field [B]total[/B] i.e total = (2,3,4,5,62,45,67,89,10,23,11,23,98,12) from all data i want 5 max values only. please help me to meet the solution.:)

Member Avatar for rotten69
0
105
Member Avatar for rhn94

I looked around quite a bit on how to solve this but i couldn't find a lot .. can anyone help me? The capitalized variables are constants [CODE] case '4': { bubbleSort(aList); string strKey; cout << " Input: "; cin >> strKey; binarySearch(aList, strKey); int binarySearchResult = binarySearch(aList, strKey); if …

Member Avatar for rhn94
0
260
Member Avatar for Unsated

Working on a simple banking program and it doesn't compile. Worked perfectly when everything was in main, then i was told to divide into methods( where everything went wrong ). The errors im getting are: C:\Users\DJ3\Desktop\School\Minilab5.java:30: illegal start of expression } ^ C:\Users\DJ3\Desktop\School\Minilab5.java:67: illegal start of type switch (userChoice) ^ …

Member Avatar for Unsated
0
425
Member Avatar for TehCPP

Hello everyone, i thought of this question and i would greatly appreciate some pointers on it. I have 2 simple Java Projects which are GUI based. One writes some information to a text file. The other reads the text field and displays it on the GUI. My question: Is it …

Member Avatar for TehCPP
0
171
Member Avatar for shamsidah

[U]Table's name: grandTotal[/U] (have two fields :defect_code and total) defect_code total LM 23 FM 15 DF 5 How this data can be an array like this array("LM" >=23, "FM">=15,"DF">=5) using query? please help me..:S

Member Avatar for shamsidah
0
121
Member Avatar for mundvawala

Hi, I want to append the content of an already defined "old div" tag to the "new div" tag dynamically but as I'm new to javascript i don't have any idea that how to do this. The code i tried is attached below. And one more question, how to remove …

Member Avatar for niranga
0
223
Member Avatar for walid86

Situation: i have a bitmap loadedImage1 which the user is able to resize, and move around inside picturebox1. objective: this loadedImage1 is then to be added to a pdf document (which is working) but needs to be using the current size and location(as the user can move it around) atm: …

Member Avatar for walid86
0
204
Member Avatar for minghags

Hello! I just made an program, but now i have problem with sorting output in the asc. order (int datum) thats date in our language :) [CODE] #include <iostream.h> #include <stdlib.h> struct datum { char dan [32]; char mesec [13]; char leto [5]; void vnosDatum(); void izpisDatum(); }; void datum::vnosDatum() …

0
118
Member Avatar for Oneryavuz

I want to open some files using my program. and I decided to use a shell command. but when i use shell it gives "file not found error" for example Shell("C:\Documents and Settings\ÖnerYavuz\Desktop\aa.txt") ==> it gives error but Shell("C:\Documents and Settings\ÖnerYavuz\Desktop\warkey.exe")==> its work and i thought it opens only exes. …

Member Avatar for sujimon
0
1K
Member Avatar for poojavb

Hello Friends, I need a hint to auto complete the combobox. I have two table SpeciesMaster and BreedMaster (Access Database) In the java code on the action Listener of the Species combo Box the breed details gets populated in the breed combobox. But now I want to filter the breed …

Member Avatar for poojavb
0
1K
Member Avatar for rpv_sen

Hi friends i am having n number check box, if i checked one check box it has to select all the similar values of the check box and the other check box should be disable. can any one help me to solve the issue i am having a java script …

Member Avatar for rpv_sen
0
202
Member Avatar for libathos

Is there any way that i can create a gui which contains an excel diagram sheet?not a jtable..

Member Avatar for peter_budo
0
100
Member Avatar for jithusdani

hi freinds,, In my application i have to send email to a specified email, I have done this and its working fine , Now I want to send some word attachment in the same email id. The word attachment will select the user through the application as browse option just …

Member Avatar for dean8710
0
167
Member Avatar for terence193

I am trying to create a program that creates a loop to enter different values in an array. but the program is skipping values of i. I can't understand why.. [CODE] #include<stdio.h> int main (void) { char s[10]; int i; for (i=1;i<=10;i++) { printf("enter %d'th value of the array 's'\n",i); …

Member Avatar for ashlock
0
98
Member Avatar for abathurst

Hello, I am having trouble inserting data from a XML file into a table in a SQL data base. The worst thing is it isn't coming up with an error but nothing is being inserted into the database Here is the condensed version of the XML code I am using …

Member Avatar for abathurst
0
2K
Member Avatar for Mrinal1991

I have one field of the student in database and I have to pass two rules in it i.e Classes 1-9 will only have 1 book for 1 week and Classes 10-12 will have 2 books for 2 weeks. How can I do that?

Member Avatar for lolafuertes
0
150
Member Avatar for Aardwolf

I don't know how to do this for Javascript, but I can explain in PHP as I have further experience in it. maybe someone can translate. A textbox's value is "username", and it needs a onclick javascript code that makes it 'this.value = ""' When users click the textbox that …

Member Avatar for Aardwolf
0
403
Member Avatar for smallrubberfeet

Hello, I need to sort the following by ID as I enter them into a linked list by while loop. So far I can build through the list, but I'm not sure how to sort by ID as they are entered: Albert 1000 55.5 150 Babs 3000 60 110 Freida …

Member Avatar for mazzica1
0
131
Member Avatar for happyhound

Objective: User enters a score then clicks Add button. Everytime Add button is clicked a Score is added to previous score to display total, averaged,counter. Issue: I enter first scores then click add. The first score displays but the second score overwrites the first. It is not accumulating. I believe …

Member Avatar for happyhound
0
200
Member Avatar for bawbawbiscuit

I searched all over the net trying to find the reason behind why numbers are illegal as first characters in naming identifiers in C++, they say its illegal but they don't say why its illegal Id be glad if someone could tell me why :) , just curious

Member Avatar for bawbawbiscuit
0
155
Member Avatar for mmxvoid

[CODE]import java.util.Scanner; public class Sales { private String salespersonName; public Sales( String name ) { salespersonName = name; } public void setSalesPersonName( String name ) { salespersonName = name; } public String getSalesPersonName() { return salespersonName; } public void displayMessage() { System.out.printf( "Welcome to the sales calculator for\n%s\n\n", getSalesPersonName() ); …

Member Avatar for mmxvoid
0
215
Member Avatar for roflspanker

I have been working on this code for quite a while and have not been able to figure it out. I looked online and through the forums and could not find something that showed how to fix it. This program takes in the julian date ie. 12df234(first two # are …

Member Avatar for Adak
0
144
Member Avatar for borchu

Hi, my question is simply but a little bit tricky; let assume that there are two array array1 = (2, 5, 6, 1, 7) and array2 (3, 2, 6, 8) and after function setUnion new array or use pointer return (2, 5, 6, 1, 7, 3, 8). Below my code …

Member Avatar for mazzica1
0
579
Member Avatar for sheennave

[CODE] System::String ^name_string; SqlCeConnection ^sqlConnection = gcnew SqlCeConnection("Data Source=Northwind.sdf"); sqlConnection->Open(); SqlCeCommand comSelect = gcnew SqlCeCommand("SELECT * FROM tablo WHERE id = 33 ", sqlConnection); SqlCeDataReader ^reader = comSelect->ExecuteReader(); name_string = reader["name"]->ToString(); sqlConnection->Close(); [/CODE] What's the mistake on the code above ? :?:

Member Avatar for sheennave
0
128
Member Avatar for libathos

I'm writing a project in xlib and have a problem concerning the colors.I use unsigned long type variables for storing the color values.does anybody know how can i take the red green and blue values of each color?

Member Avatar for libathos
0
108
Member Avatar for dzerocall

Please tell me how to print invoice using Epson TM-U210 printer using c sharp.I can print invoice using normal usb printer such as hp injeckt pinters. I used [CODE] printDocument1.Print();[/CODE] command to print. But Epson printer is serial port printer. There for is there any need of using port command …

Member Avatar for lolafuertes
0
433
Member Avatar for ndraycott

Hi I am trying to store the filepath of uploaded files in a sql server database using vb.net. I have run the code at it uploads fine but nothing is being added to the database. Any help will be greatly appreciated. [CODE]Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As …

Member Avatar for lolafuertes
0
146
Member Avatar for mrar85

Write a program that launches 100 threads. [COLOR="Red"]Each thread adds 1 to a variable sum that initially zero. You need to pass sum by reference to each thread. In order to pass it by reference, define an integer wrapper object to hold sum[/COLOR]. Run the program with and without synchronization …

Member Avatar for mrar85
0
2K
Member Avatar for rayidi

Dear Friends, I'm developing a website that can show online users, When ever a user logged we can update the status to "Online" On our database. Now i'm using AJAX. Is it possible to show the online users without refreshing a page ? That means timed interval for a ajax …

Member Avatar for makman99
0
172
Member Avatar for coolbeanbob

Hello all, I have a text file set up as follows. 1 1 1 2 2 2 The program below is not reading the first line. The code below will only read 2 2 2. What am I missing here? main.cpp [CODE]#include <iostream> #include <limits> #include <cmath> #include <cstdlib> #include …

Member Avatar for coolbeanbob
0
165

The End.