35,618 Topics
![]() | |
The following lab was originally assigned but skipped over because we were off for MLK day. I would still like to do it but am just not following what I should be doing. Help? In this lab you are going to extend the code you wrote in you first lab. … | |
I am having some problems with my java code, i am trying to write a C compiler and am currently working on developing a string tokenizer for the C programming language using java regex. my problem is first my program wont recognize multiline comments and second i cant figure out … | |
This is probably a stupid mistake but I can't see the issue, it's with the if statement at the bottom: [code=java] /** * Write a description of class Order here. * * @author David Taylor * @version 1.0 */ import javax.swing.*; import java.text.DecimalFormat; public class Client { // instance variables … | |
I've been having problems with the now deprecated mouseDown and mouseDrag methods, I know the deprecation causes no problem, the program runs fine, but for grading purposes I want my program to be error and warning free, is there any EASY alternative that can solve this deprecation method? I know … | |
hi all does any 1 here know how to save a Gnatt Chart to png file? thanks! | |
hi does any 1 can show me a simple code how to show a picture on a j2me cellphone? what i want to do is: i have a tcp server based on j2se. i want it to send a png/jpg to a cell phone via the socket and then show … | |
Hi, I would need help, pleas. I would like to portray the curve under the specified angles with the repeat and the number of segments. Will you help me please? now I have this: [code] import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Graphics; import java.awt.HeadlessException; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import … | |
I have a java applet and i'm letting the user open a chess engine on their computer. Technically they can open any program now. but it wont work unless its a chess engine that uses the winboard protocol. My question is could they maliciously choose to open any sort of … | |
Forgive me I am still really new to Java. I have this swing application which creates a small JFrame that when clicked, counts down from 2 minutes and stops at zero. I build a GUI in netbeans IDE and I read that in order to place this timer code into … | |
Hey guys How can i make instances of drawString editable? For example changing their x, y and value? Do i use variables for example [CODE=java]g.drawString(str1, x1, y1);[/CODE] Will the change be reflected as soon as i change the values of the variables? Thanks very much for your time! | |
Hello I am new at java programming and having a hard time at this very basic coding. How to i write a java application that inouts 3 different integers from the keyboard and prints the outpout as in the following : Output the 3 different integers are: 13, 27, 14. … | |
I have loaded the rows of the data from the database in the list.Now,i am trying to display the list of datas on the JPanel which is loaded inside the parent JPanel on button click. I have retreived the list of data but not able to display the data on … | |
I am facing a problem in using JUNG. I want to draw a network diagram where the vertices will be having different shapes and colors and edges will be dashed or full line in different colors. Since I am a newbie in Java, I am unable to understand the actual … | |
I have to access a uuge data from mysql , Can i replace that db call writing data into text file and accessing it again from the file itself . then file can be removed once data is processed | |
I keep getting an error starting from line public static boolean hide. Can someone please help I am using eclipse. [code]import java.util.*; import java.io.File; import java.io.*; import java.io.BufferedReader; import java.awt.*; import java.lang.String; public class Steganography { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated … | |
Hi, I am creating a website where a user has to register to access the site features. Once the user registers, his registration has to be confirmed by the admin guy, who is maintaining the site. The thing is I wanted a way to send an email automatically, once a … | |
My question is that the program is suppose to randomly generate a addition question with two integers less than 100 this is what i have so far: [CODE]import java.util.Scanner; public class ex3_13 { public static void main(String[] args) { // 1. Generate two random single-digit integers int number1 = (int)(Math.random() … | |
Hey guys :) I am stuck on this piece of code i am about to give below. What happens, is the server sends a "ping" to the client, the client sends "pong" back, but when the server sends "pong" back to the client (i KNOW this is sent) the client … | |
Hello all. I have the TreeSet Component that won't add any thing uising the add method ex: [CODE]nameSet.add(projectName);[/CODE] The exception always gets the text in the String projectName xxx for example. and Throws nullpointer and traces out the string but adds null to it. ex xxxnull What more do I … | |
Hi Everybody, I've created an array to hold the alphabet . It uses the scanner class to ask the user for a position in the array and print that. I have the first part working however I need to use system.array copy to create a new array of size 27, … | |
I'm making this code for class but it will only display the number of days as 28 29 or 30. Im new to Java and would really appreciate help. [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package days; … | |
Hi guys I just need some enlightenment on how I should implement one of my projects. I've been migrating my codes from unmanaged to manged code and I chose Java as one of our primary PL to use. From time to time I've used some of Java products like GlassFish. … | |
I'm pretty new to java and I've read some documentation on Layout specifically BoxLayout. I'm not hung up on BoxLayout but it seemed to do what I need. Problem is that label (status) is not left aligned and I can't seem to force it to the left. It will move … | |
I've taken a few classes in high school that used java (including AP Computer Science A/AB) and have a grasps on the basics of the language. However, I know nothing on making an actual application, since most of the projects we made in class were simple little things; their main … | |
Hi, I'm working on a dissertation based around graph visualization. I need to make a GUI for my program but I am having trouble getting the JPanels to display what is required. My code so far: [code] //Class to create the GUI import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Component; import javax.swing.JFrame; … | |
i have to create a n hotel management program using GUI, i hava done the gui part so far but i need help in creating the actionPerformed class,how am i supposed to do the reservation,and select rooms for 2 persons or one and rooms that overlook the sea or the … | |
I created a panel in the other components of inspector window in netbeans. I want to add and display this created panel inside the panel on button click which is inside the frame.But so far i am not able to do so. Any help will be appreciated | |
hey friends i m using servlet in order to write the output to jsp but i m getting output as something BufferedReader.io.inpitstreamreader@somenumbers i want to return the string output to jsp back .i need help stuck i this thing [code=java] try { String line; // String path="/home/muzammil/apache-tomcat-6.0.18/work/Catalina/localhost/remote_compile/"+filen[0]; Process p = … | |
The aim of this thread is to gather useful information in regards of Java web development. If you know some tips and tricks, tutorials or any interesting links that has not been already mentioned in previous posts please share with us (please always check to avoid double posting). Please DO … | |
hi, i just learned how to use the while code and put it in a simple program im working on, i however am stumped on how to use it in a part of it here is a snippet of the program code [code=java]String classname, faction; Scanner inputDevice = new Scanner(System.in); … |
The End.