32,199 Topics
| |
define a method addOn that it adds the data argument to the list in the sorted location in alphabetical. There can only be one of each company in this list. public void addOn(company data) { Node it = new Node(data, head); head = it; it.data.toString(); } this is a small … | |
Hello all. I was looking for a set of java classes that I can use to synch midi output of a speaker to output on the monitor (or other actions). I've been looking for the longest time in google, and I can't find exactly what I want, or at least, … | |
Hi everybody, my problem is as follow, I have two classes myClass and myGUI myClass code is [CODE] public class MyClass { public void start() { while (true) { // do some stuff } } public void stop() { System.out.println("Hello from stop method!"); } } [/CODE] myGUI code is [CODE] … | |
Hi, I have an application set to run in a .bat file, and would like to know what I can do to hide the command window that comes up with the application when it is executed, but still have the application running. | |
Hi, I have a JSP which searches through a database of categories and displays each one with a unique link if clicked. When the link is clicked it sends it to itself and saves it into a variable. <jsp:forward> is then called which should send the variable as a parameter … | |
Frist I would Like to Welcome All the members in this Forum And Also i would like to represent some tutorials about Java , and this frist tutorials maybe look selly to some people but as we move far in this programming language it will get harder and harder ... … | |
hi, I want to read the string as many time and filter that string, store in hashtable. I don't know any filter command is present in java.here I am sending the code. [code] import java.util.StringTokenizer; import java.util.Hashtable; import java.util.Enumeration; public class test123 { public static void main(String[] args) { String … | |
> define a method addOn that it adds the data argument to the list in the sorted location in alphabetical. There can only be one of each company in this list. public void addOn(company data) { Node it = new Node(data, head); head = it; it.data.toString(); } this is a … | |
Well, I was trying to add a simple applet to a web page(php nuke Home section), it didn't fin my applet, so I changed it and added it to a simple html file to make it as simple as I could get it. This is the code in the html … | |
Hello... I have implementd a user interface and I need to update the user interface every 5secs widout requiring to draw the entire JFrame again.. is dre anything that can help me change my textfield values every 5secs without affecting the other issues on my interface?? | |
i m looking for a J2EE project title..... can anybody help to start with?????????? | |
I need help n writing a simulated annealing algorithm that is able to maximize f(x)=sin(0.15*x)+cos(x) defined on the interval 0<= x <= 40 using the cooling schedule. Please help me im supposed to generate random numbers between 0 and 40 and Substitute in f(x)=sin(0.15*x)+cos(x) then what should i do next....... … | |
i have tried every thing to get image on my button, i have looked all over the internet but i can't get a image to display, if any one can please help me. [CODE]import static javax.swing.JOptionPane.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.DecimalFormat; //Don's carpark2.java was used in making … | |
Hi, I created an executable jar file for my Java application, and I was wondering if I should leave it like that or should I change it to a .bat file for execution via a webpage. May | |
Hi, I am new to this community. I have a problem described below. I need to write a java code which would archive a set of files in "newc" format and then compress it using gzip. There are apis to compress in gzip format but couldnt find an api that … | |
Here's my code: [code]import java.awt.FlowLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JOptionPane; public class DisplayGUI extends JFrame { public static void main(String args[]) throws Exception { ButtonFrame buttonFrame = new ButtonFrame(); buttonFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); buttonFrame.setSize(275, 75); buttonFrame.setVisible(true); } private JButton Fibonacci; private JButton Factorial; public … | |
[ICODE] abstract class Trial implements ClassLoadingMXBean, ThreadMXBean { public static void tri() { ClassLoadingMXBean classmxbean = ManagementFactory.getClassLoadingMXBean(); ThreadMXBean threadmxbean = ManagementFactory.getThreadMXBean(); MemoryMXBean memorymxbean = ManagementFactory.getMemoryMXBean(); OperatingSystemMXBean osmxbean = ManagementFactory.getOperatingSystemMXBean(); List<GarbageCollectorMXBean> gcmxbean = ManagementFactory.getGarbageCollectorMXBeans(); int load_class_cnt = classmxbean.getLoadedClassCount(); long unloaded_class_cnt = classmxbean.getUnloadedClassCount(); long total_load_class_cnt = classmxbean.getTotalLoadedClassCount(); // System.out.println("The number of classes … | |
I have created a Jframe and included 10labels and 10 textfields in it when i try to run the program, it does not show all the labels and textfields.. sometimes all are visible if i run again then few disappear.. at times they r visible for a few secs and … | |
Is it possible to set the value of a JTextfield in a class in which the textfield is not declared or created..?? How can one do that?? | |
i m looking for J2EE project title..... can anybody help me to start with???????? | |
Could someone please look over this code and make sure there are no errors in it? I've looked through it again and again and I can't see what's wrong. However when I run the program (a Rock Paper scissors game) it seems that the second constructor isn't called correctly or … | |
I know it says u help with hw only if u put some effort,, btu in this case i tried understanding the porogram but i dont kno where to start, this is my first year and first time doing java and this prog is 15 % of the whole module. … | |
I have to do a really strange thing. I have to take a string of 2 words and then separate it and put it into two other strings eg String name = "fred blogs"; move the part of the string name which says fred to the String firstname so it … | |
while (firstNodeNeedsToGo(text)) { removeFirstNode(); nodeRemoved = true; } can someone rewrite this while loop into an if - then loop or any other code you have , this will help greatly toward my upcoming test | |
boolean removedlNodes = false; what is the point setting this type boolean = false? Nodes = Nodes | NodesWithText(text); what does this " | " means here ? thanks in advance | |
| Hi there!!! I am back with more problems, now in Java :) What I am trying to do is to make an application to read and output a random line from a text file, but everything I know how to do is to output the whole lot. How can I … |
Hey Guys, I am writing to a Text FIle in Java using FileOutputStream. But whatever I write is stored in the same line. What should I do if I want certain things to be stored in the next line. Basically, it is like inserting a new line into the file. … | |
hi I am working on a call center management project. i want to maintain the details of all inbound calls like time duration, caller's no. , etc. Please tell me how can i achieve this. I think JTAPI(java telephony API) can help me but m not getting how to use … |
The End.