35,618 Topics

Member Avatar for
Member Avatar for ni30rocks

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 …

0
99
Member Avatar for nirajs

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

Member Avatar for nirajs
0
166
Member Avatar for fredw300

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 …

Member Avatar for peter_budo
0
160
Member Avatar for OcarinaSensei

[url]https://www.edline.net/files/_IXADp_/d6877670786901263745a49013852ec4/ProgramAssignment2.pdf[/url] That is my assignment for AP Comp. Sci. Thanks in advance!

Member Avatar for coil
-1
130
Member Avatar for diyez treze

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 …

Member Avatar for NormR1
0
89
Member Avatar for Yutxz

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 …

Member Avatar for Yutxz
0
139
Member Avatar for ceyezumma

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

Member Avatar for ceyesuma
0
266
Member Avatar for ceyezumma

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 …

Member Avatar for ceyesuma
0
282
Member Avatar for steveh000

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 …

Member Avatar for adams161
0
90
Member Avatar for GDICommander

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 …

Member Avatar for GDICommander
0
5K
Member Avatar for vinay1424

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 …

Member Avatar for NormR1
0
380
Member Avatar for bryans2010

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 …

Member Avatar for NormR1
0
193
Member Avatar for Elsakom

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

Member Avatar for NormR1
0
98
Member Avatar for mrblippy

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 …

Member Avatar for mrblippy
0
1K
Member Avatar for madhu ms

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 …

Member Avatar for javaAddict
0
3K
Member Avatar for Bonface4

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 …

0
49
Member Avatar for bunifrog

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 …

Member Avatar for NormR1
0
172
Member Avatar for Chalandria

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 …

Member Avatar for coil
0
217
Member Avatar for RockOwnedYou

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 …

Member Avatar for coil
0
246
Member Avatar for YATHAVANATH

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")); …

Member Avatar for adams161
0
101
Member Avatar for kramerd

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 …

0
104
Member Avatar for pinky.shet

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?

-1
61
Member Avatar for BestJewSinceJC

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 …

Member Avatar for prashantpatel
1
140
Member Avatar for vinotional

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 …

Member Avatar for vaibhav1983
0
191
Member Avatar for bops

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 …

Member Avatar for masijade
0
160
Member Avatar for BzzBee

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

Member Avatar for dennishall
0
419
Member Avatar for darangho

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 …

0
61
Member Avatar for caierhui

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 …

Member Avatar for stultuske
0
2K
Member Avatar for 47pirates

Can i create a Ms access database through java code? Can i place Ms access Database inside my project and can i manipulate them?

Member Avatar for stultuske
0
132
Member Avatar for hooky75

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 …

Member Avatar for stultuske
0
2K

The End.