35,618 Topics
![]() | |
I have tried to connect to gmail using IMAP and specification given on [url]http://mail.google.com/support/bin/a...n&answer=78799[/url]. My code looks like [CODE]StreamConnection socket; byte serverData[]= new byte[50]; byte accountInfo[],emailAddInfo[]=new byte[500]; try { socket = (StreamConnection)Connector.open("socket://imap.gmail.com:993"); DataOutputStream oStrm = socket.openDataOutputStream(); oStrm.writeChars("Account Name:username@your_domain.com");//my account name oStrm.writeChars("Email Address:username@your_domain.com");//my email address InputStream iStrm = socket.openInputStream(); iStrm.read(serverData); String … | |
Hi, I am neal from india from india i want to discuss on online test software in java i hope you all will help me for this. please ................. | |
Hello all, I need to develop a simple web application in java that will take MS excel files as input and generate output in excel format as well. Since I am not very experienced in java I am not sure what framework should I be using. Do I need to … | |
[url]https://www.edline.net/files/_IXADp_/d6877670786901263745a49013852ec4/ProgramAssignment2.pdf[/url] That is my assignment for AP Comp. Sci. Thanks in advance! ![]() | |
please help me to create a code for this using Bufferreader.. thanks Welcome to Nancy's Addition Tutorial Program! ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ Enter 2 3‐digit numbers please, separated by a space and press enter: 123 678 You requested the following operation: num1: 123 num2: + 678 ‐‐‐‐‐ 1st addition: last digit of each … | |
Hey guys, I'm having a little trouble with my Java homework. So far I'm stuck on problem 3.5, C). My code so far is: [CODE]package multadd; /** * * @author Josh */ public class Main { public static void multadd (double a, double b, double c) { System.out.println ( a … | |
///////////////////////////////////////////// make .jar runnable ////////////////////////////////////////// Hello; I can make a .jar from my program and move it to a folder in my progject but I would like to make it runnable. So I have shown the Command to make the -cmf (non runnable) .jar that works fine. I will show … | |
j ///////////////////////////////////////// Hello; I Have a JDesktopPane that opens with a x frame (JInternalFrame)wit a JMenuBar and 11 JTabbedPanels .produced by x.class.I click the menuItem to produce z.frame using x.class a new JInternalFrame with 4 tabbedPanels on it again produced by x.class. Now I click on x.frame and try to … | |
Hi Guys I am really green when it comes to regex , I have never had to use it much but here goes, I want to be able to remove html tags from a string so I am only left with the content. i am using [CODE] String.replaceAll("<(.|\n)*?>","");[/CODE] This doesnt … | |
Hello everyone! When I'm starting a OSGI bundle in my Apache Felix container, I have a ClassNotFoundException. This is the output that I have: [CODE] start file:/C:/Users/Pierre-Alexandre/Documents/NetBeansProjects/Prototype1/src/Prototype1Client.jar 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged INFO: bundle changed: null 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged INFO: bundle changed: null 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged … | |
I am facing one problem in this type of pro-gramme where i use Class name as a Return type or pass object as an argument like here , i am getting same error(the class already defined), i am using eclipse. [CODE] ****class Test //showing error that the class Test already … | |
There's something wrong with this code. I must implement the TestScores class, but I know I am missing something. /** TestScores class */ import java.util.Scanner; // Needed for the Scanner class // For use in CodeMate, the TestScores class is not declared to be // public. Normally the class header … | |
Hi, I have recently embarked on an adventure into the programming world and am a 'newby' to java. Am trying to get 'my robot' to recgonise the difference between 'blue' and 'red', and execute commands - My program so far is the following - it's not recgonising the colour difference. … | |
hi everyone, i am trying to write a java program that assigns a specified number of true values to random elements in an array. for example if i have a boolean array of 10 elements i would like 5 of these elements to be randomly assigned true values. im new … | |
Hi.. i need to learn how to send the username and password to the database and when the user logs in it should retrieve the password from the database and authenticate if the username and password is correct. Am using this jsp code and getting error in (Resultset line) [U]here … | |
Hi guys? I have been programming in Java using J2SE. currently am working on J2EE enterprise application development using JavaServer Faces Technology.Since am new to JavaServer Faces have decided to start by a simple login applications.Developing the interface is not a big problem but getting the parameters from the inputText … | |
Hey guys I am stumped. My code worked fine until I added the calculations: [CODE]else{ interestRate = rate[choice]; termLoan = tYear[choice]; }[/CODE] :\Users\Mom\Desktop\DuttonWeek4.java:252: incompatible types found : double required: javax.swing.JTextField interestRate = rate[choice]; ^ C:\Users\Mom\Desktop\DuttonWeek4.java:253: incompatible types found : int required: javax.swing.JTextField termLoan = tYear[choice]; ^ 2 errors Tool completed … | |
I have tried to figure this out and am having major problems with math pow. Any help would be great... This project deals with reading input from the user, storing the input into variables and displaying those variables. This program is an introductory project into the basic data types of … ![]() | |
I'm trying to figure out how to transfer several methods in a cash register into one void method. Here is my code. /** * A cash register totals up sales and computes change due. */ public class CashRegister { private double purchase; private double payment; /** * Constructs a cash … ![]() | |
![]() | import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; class NewUser //extends Variable implements ActionListener { JInternalFrame ifrm; JLabel lbleid,lblena,lbleadd,lbletp,lbleage,lbluse,lblpas,lblcat; JTextField txteid,txtuse,txtena,txteadd,txtetp,txteage,txtpas; JButton btnadd,btndelete,btnclear,btnsearch,btnupdate; JComboBox cmbcat ; public JInternalFrame display() { JInternalFrame ifrm=new JInternalFrame("User Process",true,true,false,false); // ifrm.getContentPane().setLayout(null); ifrm.setSize(600,600); ifrm.setLocation(0,0); ifrm.setResizable(false); ifrm.setDefaultCloseOperation(ifrm.DISPOSE_ON_CLOSE); ifrm.setVisible(true); JPanel p; p=new JPanel(); p.setLayout(null); //pic =new JLabel(new ImageIcon("Employee.jpg")); … |
I have a complex UI with little screen real estate, so I'm trying to allow users to manage contents of a combo box using a right-click context menu. But I'm having trouble getting the combo box's drop down list to appear at the same time as the pop-up menu. I've … | |
How to write a program to calculate incoming and outgoing packets at each system. what are the different files which are used to calculate Ip and Mac address? R there any files which are used to draw real tie graph? | |
Oracle Certified Professional Java Programmer was formerly known as the Sun Certified Java Programmer certification. Does anyone know if the switch to Oracle has changed anything significantly, such as the questions that will be on the test? Or is it the same cert with a new name? The reason I … | |
I am fresher in software engineering seeking job. But i want to know in which designation can i able to be placed. I am some what good in programming (java,c,c++). When i registered in any companies they ask me about job code. And also i am undergoing course in web … | |
Hey, I was thinking of trying to write my own custom swing component. I was thinking of a simple text based component that would act like an open book. Text would be displayed on the left side/page of the component until there is no space left and then the rest … | |
hello, I had a fckeditor at my php page, i want to put some data in fck editor when user click a button. How can i do that using javascript. Please help | |
Hi everyone, I am trying to write a code that receives an input from textarea, transfer that input to servlet and send an email with that input using javamail API. It seems that the codes work fine with english characters, but it doesn't work with non-english characters (i am using … | |
I am trying to make an Inventory GUI application using MySQL and NetBeans. So far, i was able to do add,delete,search, and save using Java Desktop Application. I now have to add a SEARCH button, a notification for the quantity if it is less than 10 and a USERNAME and … | |
Can i create a Ms access database through java code? Can i place Ms access Database inside my project and can i manipulate them? | |
Hi all, I have written a basic program with 3 option using a switch statement, the 2nd option being a reverse string code using charAt() when you select option 2 and press enter it then switchs to case 2: which then asks for the string you wish to reverse, is … |
The End.