36,051 Topics
![]() | |
how can i create a magic square program using jcreator?? pls help me.. | |
Hi, I've been working on this project off and on. I am very close to completing in. What it is is a program that calculates temperature from fahrenheit - centigrade - Kelvin. Please feel free to help. Here's my code sorry for the length of it: [CODE]//-- Shaun D. -- … | |
I need to merge two files using cmd argument. So can somebody tell me what is the command for that? | |
how can insert an image to a ms-access database with using a java swing form and vice versa | |
Hello guys I write a program and of the functions that write function calculates the speed of the CPU of a computer Got a problem here and I did not know how to write it?? Can you help me ...? Thank you ^ _ ^ | |
I need some assistance with three things in my code. My problems are: Next and Previous buttons do not loop through the array, instead they throw exception errors when they get to the end of the array. Second my image that is required does not show up, my instructor said … | |
My problem is getting snum in the main class to transfer over to the sub class, so that the snum in that class = snum from the main class The code is; [code] package workstation; import java.util.Random; import javax.swing.*; public class Main { public static void main(String[] args) { int … | |
[CODE]/*manimbo_mp4.java*/ import java.io.*; public class manimbo_mp4{ public static void main (String[]args) throws IOException{ BufferedReader br=new BufferedReader (new InputStreamReader (System.in)); /*initializing STRING FORMAT variables *smmort holds monthly mortgage amount *spaym holds mortgage payment amount *sremb holds principal amount*/ String smmort,spaym,sremb; /*initializing LONG FORMAT variables *lmmort holds monthly mortgage amount *lpaym holds … | |
Hi guys, I found this thread ([url]http://www.daniweb.com/forums/thread19814.html[/url]) that gave me guidance on this topic but I wanted to further develop my understanding. I understand that in Java, everything 'passes by value', even references. That is, a copy of the value is passed to the parameter so the original value is … | |
plz help me how to make this code that accepts 10 integers and display the largest.thanks in advance ...hoping for your positive responds | |
Hi, I have an application with one JFrame and two modeless JDialogs. When I mimimize the JFrame, the dialogs are still there, not minimized. So i need to hide them. I can hide them with WindowDeactivated event which runs one time when the JFrame is minimized but when I want … | |
i've got a 404 error when i tried to call a servlet it said Not Found The requested URL /Login was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument handle the request. please help me solve this problem Thank … | |
How to make so the new and old JOGL packages both work? :?: thanks :icon_cheesygrin: | |
![]() | [CODE]private JButton getBtnSave() { //if(btnSave == null) { btnSave = new JButton(); btnSave.setToolTipText("Save scan output"); btnSave.setText("Save"); btnSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { try { String lines[] = taOutput.getText().split("\\n"); for(int i = 0; i < lines.length; i++) { System.out.println("Value: " + i); BufferedWriter bw = new BufferedWriter(new FileWriter("audits.txt")); String … |
Hi and I have made a simple Java function/method and for some reason it is not working. It doesn't show errors. It doesn't display results. It returns nothing and forces other things around it to do nothing. Below is my script. [CODE]private String get_url(String address) { String result=""; try { … | |
i tried to copy the result of the java compilation to the text file using javac zz.java > compile.txt It works if the program has no errors and it did not work if it have errors | |
hello! i written a program..it has for loop and calling thread.sleep for every increment of for loop.. at the same time i initially called Swing Jtable which shows status of every for loop increment... when i executing main program swing table appearing but no content filled for every execution ... … | |
I need to checkout from svn repository using cruise control. Without using ANT target for checkout I need to do it by the config.xml file. So can somebody send me the code for that. | |
Hi, I'm having troubles with my JMenuItems and Jframe. I want that when you click on a JMenuItem the previous JPanel dissapears and the one you clicked for at the JMenuItem will appear. Now, I don't really know how to accomplish this. Someone said to me I should use the … | |
Hey guys, I'm quite new to Java and I usually try to get things done on my own, but it seems like I'm just sooo lost now. Would really appreciate any help you guys can give me So here's the problem: I need my program to read a text file … | |
People who have worked in JTAPI applications or more so with Cisco JTAPI must be aware of the makecall.java program. Well I am new to JTAPI and what better to start off then this example provided with the cisco SDK. Well I am using CCM 1.4 and its working perfectly … | |
Hi everyone please help on this: I am developping a program in java, but I need the user to enter his/her details if they are compatible with the values in a database table he/she get access to the main interface. here is what I've done so far [CODE]import java.awt.BorderLayout; import … | |
I tried to copy the content of one folder to another using the batch file. The below is the example. copy *.class c:\tomcat 5.5\webapps\serv\WEB-INF\classes In this, *.class is source which is correct c:\tomcat is the second arguement 5.5\webapps\serv\WEB-INF\classes as 3rd arg the 2nd ,3 rd arg are wrong how to … | |
I do realize that this is ugly code but i cant seem to have this program output "Your old". I dont know why my if statement is not working. Thanks [CODE]/* This class is to be used as new readline method */ import java.io.*; class ReadInput { public static void … | |
First of all hi guys, sorry for not being that much active. Lets get in the subject: I'm planning to make a big application that will help me in my job. I need first to define the requirements of my application a bit more: * It will be UI Web-based. … | |
Hi all, I was hoping somebody might be able to help me out w/ a pretty basic question. I'm creating a web app and trying to use the MVC pattern where I have a controller servlet that intercepts requests, does some work (like say reading from a database), possibly setting … | |
Hello everyone , i am trying to create a multi threaded web server, i did the basic part (socket programming ) successfully . Ref: [URL="http://www.daniweb.com/code/snippet217312.html"]http://www.daniweb.com/code/snippet217312.html[/URL] now , the next step , i am trying to establish it by making it multi thread or repetetive polling for client request (yet to … | |
i want to make tabpanel in which the tabs are in two rows...dnt require them in a single row...cuz the no.of tabs are more. can any1 help me in doign that in jsp?? | |
hello! i want to create jtable dynamically... i have two class one is add records to Data Base another one is show records list that were inserted... how do pass each records in JTable without replacing existing on... i need to grow the table every time the records success fully … | |
import java.awt.*; import java.lang.Math; public final class mastermind extends java.applet.Applet { int i,j,k; int pointX,pointY,pickX=-1,pickY=-1,dragX=-1,dragY=-1; int dotMap[],pointMap[],secretCol[]; static int shadX[]={0,8,142,142,136,136,0}, shadY[]={242,246,246,10,0,242,242}; int pickedCol=0,changedCol; int pickedDot,changedGrfx,currentRow; boolean drawBoard=true,gameGoing=false; boolean pickable[]={true,true,true,true,false,false}; boolean finished; Color lights[],darks[],darkGray; Image buffer,peg; Graphics bufg,pegg; Math m; public void init() { dotMap = new int[32]; // Holds colored … | |
hello guyzz,,i really need your help,,we are about to make a mastermind game in java,,i already have the code,,,but it has no main method..and i dont know how to implement the main,,help guyzzz,,,we are about to pass it next week.... import java.awt.*; import java.lang.Math; public final class mastermind extends java.applet.Applet … | |
Dear all, No matter what I do, I can't seem to be able to make the JSP with Database work. How can I connect to an Oracle database which is hosted in our University, over a JSP page. I have a project where we need to connect to Oracle database … | |
hi ! Happy new Year!!!! I struggling with open IE browser within swing .... like frame content pane showing IE... any help please...... | |
hello! i want to convert my jar application into exe.. because i need seal all class files extracting from jar... any freeware available for this.. i found something that are not free... thank you! | |
I am having a problem using both ActionListener and KeyListener in the same class that extends JPanel for a basic game i am working on. For the KeyListener only the KeyPressed class is implemented and is implemented as such. [code=java] public void keyPressed(KeyEvent e) { switch(e.getKeyCode()){ case 37:{ grid.moveSelectedWest(); break; … | |
I'm hoping someone out there can help me. i have to use a 2nd class to create a JMenuBar to attach to a JFrame i get an error :49: incompatible types found : javax.swing.JFrame required: java.lang.String return aTestFrame; (i have also tried something else and got a static/non static error) … | |
I have a chat window, JTextBox i think, and you hit enter and it invokes an action listener, to send text. It generally works, but now and then i hit enter, and nothing. I have to hit enter again and typically it sends text. the focus is there for typing, … | |
:cry: I have searched forever, need help, I am an older person, who ejoys to play games, for some reason one of the sites I was using I can no longer get into. I get the java applet failed, and applet not inited, I have checked in internet options and … | |
hi friends i am doing project on "design and implementation of misused intrusion detection system by using autonomous and mobile agents " if u have aglet code for this one , plz send it to me. It helps me a lot to go further work. i hope u will do … | |
Hi all.. AJAX is famous for its dynamic displaying feature(forgive me if the desc. aint right, i just wanted you all to get the point). I want to do a non-web based project which will implement this feature. I've read that AJAX can be used only for web applications. Is … | |
How to kill the running .jar file from another jar in java? There are two jars running A.jar & B.jar Both jars are running. I want to kill B.jar from A.jar. Pls let me know, if any one knows. Thanks in advance. | |
Hi all, it's my first post. i'm using tomcat 6 and put under it website done by jasper . this website contain xml.html ang jsp pages .the jsp pages needed to be encrypted, i try using ant but i'm fail may be i don't use it right. could you please … | |
I got a basic telnet socket connection working in an applet. YOu can log onto a server and type and read text. My issue is to show the servers chat i'm using a JTextArea. now this may be the best to use i dont know, maybe i just need to … | |
Hi, thank you for havin me in the forum... I'm kinda newbie to java... This is the code that I wrote for heapsort, but it seems like there is problem, can you pls pls help.. coz I'v been workin on this for a whole day, and i'v to submit it … | |
[code] <?php include "config.php"; include "header.php"; echo "<tr>"; echo "<td width=\"250\" valign=\"top\">"; include "left.php"; echo "</td>"; echo "<td width=\"4\" bgcolor=\"#CCCCCC\"> </td>"; echo "<td width=\"550\" height=\"320\" align=\"left\" valign=\"top\"><h3 align=\"left\" class=\"pagesect judul_besar\"> <span class=\"menu1\"> Sistem Pakar Gangguan Perkembangan pada Anak</span></h3>"; echo "<p class=\"pagesect judul_besar\">"; echo "<blockquote>"; if(!pasien()) { echo "<div align=\"center\"><span class=menu>Access Denied !!!</span></div>"; … | |
Hello, is there an acceptable way to do the following? [CODE=java]public CriarEquipamentoGUI (boolean showWindow) { if !(showWindow) dosomething(); return; else initComponents(); }[/CODE] Currently the return statement completly screws up the window. | |
Hi all, Here i pasted some code, In that i added to images to container but it is displaying the last one only, and one more thing is how to set the boundaries for jbutton, TextArea and Image. I need the code of count down timer. Thanks in Advance............... [code]import … | |
If somebody knows how to merge two SVNs plese tell me. I need to merge the code in local svn into client's svn. Actually there are 2 SVN servers. | |
Can anybody giving or suggest java solution to fill form in website automatically... | |
Hi: I took a course on Spring 2.56 from Interface21 and the labs I got get it to work during the training. But when I tried it at home it doesn't work. I go to the following url and it's find. [url]http://localhost:8080/accounts/[/url] It display "This is my JSP page. " … |
The End.