No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
This is my code.. But the image doesnt appear on the frame when i run the program Please help JLabel label = new JLabel(); String path = "C:/Documents and Settings/Administrator/My Documents/My Pictures//22.bmp"; try { URL url = new URL(path); BufferedImage image = ImageIO.read(url); label = new JLabel(new ImageIcon(image)); } catch(Exception … |
|
I am trying to write a code for sending a mail in JAVA.. And I am getting the error [code] javax.mail.MessagingException: Could not connect to SMTP host: mail.yahoo.com, port: 25; [/code] What can my mistake possibly be..?? Please help me find my mistake.. |
|
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?? |
|
[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?? |
|
package monitoring; import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.lang.*; import javax.swing.JEditorPane; import monitoring.task.jvm.JVMMonitoringTask; public class home extends JFrame { private JFrame j1; private JPanel c1; private JLabel m1; private JLabel l1; private JLabel l2; private JSeparator js1; private JButton j; private JButton s; private JButton tc; public home() { … |
|
I have established a connection with a website using the HttpURLConnection.. Now I need to retrieve the number of http requests to that site...and other such parameters.. How can I do this..Anyone can help?? |
|
Hello everyone.. I need some basic help in the monitoring of a website.. Can anyone out here help me with the retrieving of the URL of a website..?? Thanks a lot in advance.. |
|
Hello everyone.. I need to retrieve the number of classes loaded from the MBeans and I am facing problem with the same... Is there any specific package to be imported?? I am unable to work it out though it is really simple.. Thanks in advance... |
|
Hello everyone.. I am trying to retrieve a URL of applications from a text file... My text file contains 3 URLS for 3 applications say for example : C:/ABC.java C:/JVM.java C:/Tomcat.java I have tried implementing a code for the same but when I try to copy the URL into a … |
|
Hello every1... I am developing a project in JAVA.. My project is APPLICATION MONITORING WIZARD..!!! Can I get any help..?? Even if I get an idea as to how I start off, will be QUITE helpful.. The applications that I am planning to monitor include : 1.JVM 2.Tomcat server 3.Website … |