32,199 Topics

Member Avatar for
Member Avatar for sheehab

Hello... I try to do like this.. But I still ther are some errors...... I don't know how I solve them Could healp me.. please This is my code [CODE] import javax.swing.JApplet; import java.awt.Color; import java.awt.Graphics; import java.io.IOException; import java.io.*; import java.util.Scanner; import java.awt.*; import java.io.FileNotFoundException; public class colok__ extends …

Member Avatar for javaAddict
0
157
Member Avatar for justM

Hi I am trying to tokenize a string from a file. The file contains two lines that have different info. I need to tokenize the lines separately and compare the results of each line. Now, I think my problem is identifying the separate lines to perform operations separately [CODE] /* …

Member Avatar for justM
0
97
Member Avatar for mahesh.gothi

Hi I have a 32-bit java dll which i need to call from a asp.net application on a 64-bit machine. Please let me know if have any solution. Thanks

Member Avatar for kvprajapati
0
71
Member Avatar for btreksql

Hi, I need help, I am trying to connect from remote windows xp computer B to ms sqlserver2005 express edition in another windows xp computer A and got this error: java.lang.classnotfoundexception com.microsoft.sqlserver.jdbc.sqlserverdriver My software can connect locally to the sqlserver 2005 though in the local computer A, however when i …

Member Avatar for btreksql
0
297
Member Avatar for _dragonwolf_

I have file with a list of names in it and next to the names is a series of digits. The digits represent its level of popularity per every 10 years. The program I have asks the user to input the file path, then it asks for the user to …

Member Avatar for kvprajapati
0
157
Member Avatar for MSoul

Hello, I am currently making a game in my Java programming course My game is similar to Guitar Hero where the sprites will come down 4 different lines. What I am trying to do is make them come down those lines at random So far, I have made them come …

0
43
Member Avatar for dorotalp91

This program is supposed to ask the user to input a number and the print will read out the factorial. This code is wrong how do I fix it? Maybe not add much just jumbled up variables? Help! This was given to me created in BLUE J software i know …

Member Avatar for dorotalp91
0
160
Member Avatar for leoeroy

I need help with my java program. This program will generate Prime numbers. Class testerPrime will invoke Class Prime. Everything is working but i need my output to print in 10 columns then go to the next line. Here's my code Class Prime [CODE] class Prime { int number; int …

Member Avatar for leoeroy
0
136
Member Avatar for smachee

Hi. I am new to Java and am trying to figure out a homework problem. It is a password verifier with the following criteria: [LIST] [*]at least 6 characters long [*]conatin at least one uppercase and one lowercase letter [*]should have at least one digit [/LIST] This is what I …

Member Avatar for smachee
2
3K
Member Avatar for theCommander

I need to create java interface that prompts users to imput their username and password to access a component database using access or text file. then i need tohave search fields and buy field and then a contact us.....aahhh im trying but im reqal frustrated aaaaaa

Member Avatar for theCommander
0
166
Member Avatar for kenji

Hey, I want to know whether it is possible to send a formatted string ie. [code=java] System.out.printf("%2d%6d%23f...",a,b,c); [/code] to a .txt file so that when I view the .txt it will appear properly justified with spaces and tabs. Thanks

Member Avatar for kenji
0
93
Member Avatar for jko2326

I'm trying to create an array of two radio buttons. but with the code i have right now it just wont show up on my jframe. Can anyone tell me what I might be doing wrong? Help please.. Here is a snippet of my code .....I'm only working on the …

Member Avatar for Ezzaral
0
77
Member Avatar for c16

Hi there How do I write a simple value like 1(5v) to the DB9 port and how do I monitor the DB9 port for state changes on it? Here is the scenario : I made a circuit with a 16f627 processor that is connected to the PC via DB9 port. …

Member Avatar for rdblaha1
0
117
Member Avatar for lookof2day

I've been trying to get a list of values from database using hibernate. I'm using MS SQL Server XE 2005 and using Hibernate 3.2.2 to fetch DB rows. I've tried JDBC drivers provided by Microsoft as well as jTDS but all I get is an empty list. Here is my …

Member Avatar for lookof2day
0
819
Member Avatar for Alpdog14

I was wondering if someone can help me, I have this snippet of code that I know is giving me an issue but cannot figure why: [CODE]public D put (K key, D data){ DataTreeNode<K,D> dtn = insert(key); if(key.equals(dtn.key())) [B]return dtn.data();[/B] else return null; }[/CODE] I know I want the [B]return …

0
66
Member Avatar for rukshilag

I would like to know a list of systems (standalone) that can be made using JAVA. For example payroll system, billing system etc. Please state some simple systems that requires basics of OOP and few swing codes. Thank YOU :)

Member Avatar for peter_budo
0
101
Member Avatar for arifihsan

how to write a program in java for regular expression as • [0 − 9]*(a|b)+[x − z]?b • a+(a|b)*c(c?b|ca+)* please help me in coding ,i will waiting thanks

Member Avatar for Ezzaral
0
26
Member Avatar for SORelena

I want creat thread but I dont know...[CODE]import java.util.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; //------------------------------------------------------------------------------------------------ public class MyApp extends JFrame { // Data static boolean stopped = true; // Is the counting stopped? (True or False) --> shared variable static JTextField number; //------------------------------------------------------------------------------------------------ // Constructor public MyApp() { // …

0
51
Member Avatar for noktasizvirgul

Hello All, I need to make parallel processing with Java. I know there are threads but i need to examine a distributed-like system. I will implement the MST algorithim and with a distributed syncronizer I will merge those sepereted nodes with rounds to find best and minimum spanning tree. This …

Member Avatar for noktasizvirgul
0
577
Member Avatar for nitrogen33
Member Avatar for eechan03

[code] import javax.swing.JOptionPane; import java.text.*; public class casestudy { public static void main(String[] args) { JOptionPane.showInputDialog(null, "Program Application", "Choose a Program", JOptionPane.QUESTION_MESSAGE, null, new Object[] { "Bubble Sorting","Balloon Sorting", "Insertion","Exit" },"casestudy"); switch(casestudy) {case 1: {String stno,ndno,rdno,thno,fthno,sthno,vthno,ethno,nthno,tthno; stno = JOptionPane.showInputDialog(null, "Input 1st number:"); ndno = JOptionPane.showInputDialog(null, "Input 2nd number:"); rdno = …

Member Avatar for javaAddict
0
97
Member Avatar for galaxygal

[code=php] exec('java -version', $javaver); print_r($javaver); echo "<br />"; exec('java -jar start.jar', $output); print_r($output); echo "<br />"; exec('java -jar post.jar /home/content/j/a/n/jandtesting/html/solr/example/exampledocs/solr.xml /home/content/j/a/n/jandtesting/html/solr/example/exampledocs/monitor.xml', $output2); print_r($output2); [/code] I've never attempted anything with java before. I'm trying to get started on the solr tutorial -- a java based search engine based on Lucene. I …

Member Avatar for galaxygal
0
902
Member Avatar for jakal121

Hi, I am kind of stuck on how to display numbers between an inputted number and a specifed number, for example 10 and 5, how would I go about doing this? can anyone help me please?

Member Avatar for javaAddict
0
104
Member Avatar for gabec94

Hi, I am trying to write a binary search. The main method randomly makes an array of 1 mil int's, and the binary search returns if an entered int is in the array, but I seem to be having trouble getting it to work, I've been working on it for …

Member Avatar for gabec94
0
113
Member Avatar for lightner86

Hi gud evening to all!! :) Can someone help me with regards to my exercisE? I really need to finish my exercise.. The problem is this.. I am going to determine how many times does the letter occurs in a sentence including spaces and periods... For example: Sentence: We are …

Member Avatar for javaAddict
0
75
Member Avatar for Web_Sailor

I want to control the number of clicks in my button group which is inside DefaultTableModel of JTable. Like only one click for a certain Radiobutton. Suppose I have 3 radio buttons in a button group: 1) A 2) B 3) C If a user clicks A he can select …

Member Avatar for javaAddict
0
130
Member Avatar for student_cs

can any1 pls help me with the codes for uploading images to my java prog.. and codes for DB connectivity with MS access... its nt connecting.... i need it asap..!!!

Member Avatar for masijade
0
72
Member Avatar for hdurina

one fellow gave my full house address while chating i asked how is it possible he said he got it through ip address

Member Avatar for The Dude
-1
565
Member Avatar for xclaim

hi may i know how to exit the mediabox? for example i create a group inside that is the mediabox but when i click the close button(custom button) it will go to the other group and thus exit the mediabox. current situation is that when i click the close button, …

0
59
Member Avatar for StarZ

Hi, I've read the rules for this website and i'm aware that we should not expect people to do our homework. But I really need help on this program.. and I'm not sure how to start it, and it's last minute help please. I'm suppose to do this using sorting …

Member Avatar for P00dle
-3
105

The End.