35,618 Topics
![]() | |
I have to generate html files from .java files. I tried generating from eclipse but was stumped. there are just 4 files. Can somebody help me out. Send me a pm please!!! | |
hello everyone, I am stuck with this problem.If anyone could help me, it would be a great favour. I am working on a leave application. Here the leaves are been applied by employees and accordingly the leaves are been approved or cancelled. so the problem is that when i am … | |
hi, i have a jsp with 3 tabs add,modify,view. when i select modify there are two dropdowns. when i select a value from 1st dropdown i have to populate another dropdown based on the selected value. now the problem is when i am going from servlet to that jsp after … | |
hi i'm developing a webpage.page contains various fields like collegename ,studentname and so on.collegename field will be a dropdown box and it gets option from backend table collegedetails.every collegename will have a unique collegeid in collegedetails table.after selecting collegename and filling necessary fields in webpage the details should be stored … | |
public class Test { public static void main(String[] args) { String line=".Raghu"; System.out.println(line); char[] h= line.toCharArray(); char[] f=null; int c=0; if(h[0]=='.') { for(int i=0; i<h.length; i++){ f[c]= h[i]; System.out.println(f[c] + h[i]); c++; } f[c]='\0'; } } } | |
I'm having a project form school for a inventory management system and I want to do something extra. The inventory management system is for spare parts for machines and I want to be able to see the the manuals(PDF files) for thous machines in the GUI but I have no … | |
Hello there, I am using the JTextPane in my Java Swing Application. How do I make it Handle Hypelinks. Like lets say the use enters [COLOR="Green"]\\some_foldername\some_subfolder_foldername\some_file.xls [/COLOR]or any other file type, It should Automatically, treat it as a hyperlink. Is it Possible to have such a functionlaity [B][U]JTextPane Hyperlink Functionality[/U][/B] … | |
Hello, I have an assignment where i have to create few methods using linked lists. one of them is method that should create an integer singly list and return the head. While i know how to add a single node i am not sure how to create list of them. … | |
Hello, I have been fighting with this assignment for almost 3 week now and it's almost ready besides one part that I simply don't understand. I would appreciate if someone could maybe translate it into "simple English" for me and maybe give me a little guidance. Basically we are writting … | |
I am using Apache Tomcat 6.0.18 on a Windows Server that also has IIS. For IIS I can enable Integrated Windows authentication to fetch the Intranet Windows login username using ColdFusion. Is there a setting in Apache Tomcat I need to enable Integrated Windows authentication so I can fetch the … | |
Hi everyone I've been trying to develop a mid-scale (size wise) application in the past few days. Something I'm doing for fun, to get some experience. My application is some sort of log system, it can have different users, each user has its own log entries (or records) and so … | |
this is part of my app where i ask a user if they want to do something. they need to either input a "y" or a "n" for it to do something and if they input something else like a j, 1, 2 , ; , " any other character … | |
Good Day, I am also a newby to the JAVA world of developing. I am SERIOUSLY struggling with a homework assignment ... I have a swing program that is using a JFrame and the task is to calculate the average grade. First, a JOptionPane needs to be used to get … | |
I have two classes in here..One extends from a Jpanel , it is where I do all the paints and staffs on my screen. The other one is just a class. But in that class I want to define a draw function..say public void draw(Graphics g){ g.drawImage(image,100,100,30,30,?????); } Now, I … | |
In the course of writing some throw-away code, I ran into a weird problem with static methods. I've defined a static method that's supposed to return a [icode]Double[/icode], but Java insists that it's returning some new type named after the function. Static method: [code=java] public class Temperature { // ... … | |
problem i'm having is getSelectedRows() and getSelectedColumns().... they dont return anything when i select the rows. am i doing it wrong? i need it so when the button is pressed to output the selected strings[] [CODE]import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.*; import javax.swing.table.AbstractTableModel; import java.io.*; import … | |
Hello! I've been given the task to write a program in java that is going to capture audio from a flash-application on the web. The flash-application is a music application where you can make your own song and then click a button to make it into a sound-file. The flash-application … | |
Hello all! I have some troubles in saving a file by byte chunks, (will use in saving large file size.). My goal is to chunk the file bytes first into a certain size before writing. I have this code: [code=java] FileConnection fc = (FileConnection) Connector.open("file.ext", Connector.READ); InputStream fis = (InputStream) … | |
Hello, I am currently doing an assignment which requires the use of hashmaps. The game is called "zuul" which is a text based game. A player class can pick up and drop items and if an item is picked up, the item is taken away from the rooms hashmap and … | |
I need to know how to access two tables which has some reference values within the table.I need the Java Code to Fetch Both the tables values which are same and have to display it | |
Timeout doesn't work properly.. is there any problem? with my source.. These are relevant source for the TimeOut Thread.. [code] /////////////////////////////////////////////////////////////// public ChatJin() { //Find Local IP Address & Name try { InetAddress myInet=InetAddress.getLocalHost(); System.out.println("My InetAddress "+myInet.getHostAddress()+" name "+myInet.getHostName()); } catch(UnknownHostException e) { System.out.println("InetAddress Error on Port "+8000+" Error code … | |
[code=java] import java.util.*; public class Coin { private Random randomNumbers = new Random(); // flips a coin many times public void flipCoins() { Scanner input = new Scanner( System.in ); int heads = 0; int tails = 0; int choice; do { // display a menu System.out.println( "1. Toss Coin" … | |
24.21 (Modifications to the Multithreaded Tic-Tac-Toe Program) The programs in Fig. 24.13 and Fig. 24.15 implemented a multithreaded, client/server version of the game of Tic-Tac-Toe. Our goal in developing this game was to demonstrate a multithreaded server that could process multiple connections from clients at the same time. The server … | |
I need to know how to access two tables which has some reference values within the table.I need the Java Code to Fetch Both the tables values which are same and have to display it | |
assistance with the following code: 1. package triangleMod; 2. import java.awt.Dimension; 3. import java.awt.Frame; 4. import java.awt.Point; 5. 6. import javax.swing.JFrame; 7. 8. 9. public class Main extends Frame{ 10. 11. static Point a; 12. static Point b; 13. static Point c; 14. static Triangle tryAngle; 15. static JFrame frame; … | |
[CODE=Java] package ce.ass2; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.logging.Level; import java.util.logging.Logger; import ce.board.Board; import ce.board.MoveData; import java.awt.Color; import javax.swing.JButton; public class TickerBean extends JButton implements java.io.Serializable{ int timeDelay=500; private LifeBean lb=new LifeBean(); private Board tickerBoard; private javax.swing.Timer t = new javax.swing.Timer(timeDelay, new ActionListener() { public void actionPerformed(ActionEvent e) { try … | |
Hi all I'm having trouble using panels in a GUI. I created panels for steps through a programme. Like when you're installing something, you click "Next" and the GUI switches to the following step. So for each of these steps, I've created a JPanel. But I was wondering, how can … | |
Hello, I am working on the problem. Here is the wording: 6) Specify, design and implement a class that can store an array of integer. The number of Maximum element can be 100. Write methods to : a. Add an integer at the beginning of the array b. Add an … | |
I'm working on a program to upload some files to an ftp. I created a thread the starts the upload when the upload button is pushed. When the upload button is pushed the GUI freezes because it is uploading. What change would I have to make to get the GUI … |
The End.