32,199 Topics

Member Avatar for
Member Avatar for Danii

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 …

Member Avatar for Ezzaral
0
84
Member Avatar for HeroOfTime

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, …

Member Avatar for Ezzaral
0
134
Member Avatar for AbuShokry

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] …

Member Avatar for Ezzaral
0
88
Member Avatar for maydhyam

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.

Member Avatar for maydhyam
0
110
Member Avatar for eddy556

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 …

0
90
Member Avatar for joker40

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 ... …

Member Avatar for joker40
0
121
Member Avatar for ihtraa

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 …

Member Avatar for stultuske
0
102
Member Avatar for chaitramutalik
Member Avatar for Danii

> 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 …

0
68
Member Avatar for lordsvae

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 …

0
48
Member Avatar for Shveetis

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??

Member Avatar for Shveetis
0
125
Member Avatar for sibitech

i m looking for a J2EE project title..... can anybody help to start with??????????

Member Avatar for jwenting
0
73
Member Avatar for starxxx

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....... …

Member Avatar for starxxx
0
106
Member Avatar for gedcraw555

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 …

Member Avatar for gedcraw555
0
130
Member Avatar for maydhyam

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

Member Avatar for maydhyam
0
130
Member Avatar for sunne

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 …

Member Avatar for jwenting
0
137
Member Avatar for gallantmon1

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 …

Member Avatar for gallantmon1
0
143
Member Avatar for Shveetis

[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 …

Member Avatar for Shveetis
0
133
Member Avatar for Shveetis

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 …

Member Avatar for javaAddict
0
82
Member Avatar for Shveetis

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??

Member Avatar for Shveetis
0
140
Member Avatar for sibitech

i m looking for J2EE project title..... can anybody help me to start with????????

Member Avatar for stultuske
0
54
Member Avatar for the b

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 …

Member Avatar for stultuske
0
229
Member Avatar for SPJ

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. …

Member Avatar for stultuske
-2
354
Member Avatar for Parsu7
Member Avatar for piers

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 …

Member Avatar for Parsu7
0
153
Member Avatar for Danii

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

Member Avatar for VernonDozier
0
100
Member Avatar for Danii

boolean removedlNodes = false; what is the point setting this type boolean = false? Nodes = Nodes | NodesWithText(text); what does this " | " means here ? thanks in advance

Member Avatar for Parsu7
0
82
Member Avatar for Lioshenka

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 …

Member Avatar for ~s.o.s~
0
3K
Member Avatar for mayank.aga

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. …

Member Avatar for mayank.aga
0
196
Member Avatar for vatspoonam

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 …

0
71

The End.