Search Results

Showing results 1 to 40 of 99
Search took 0.02 seconds.
Search: Posts Made By: adatapost ; Forum: Java and child forums
Forum: Java 2 Days Ago
Replies: 2
Views: 149
Posted By adatapost
I think you might be aware of Globalization Development Kit (http://www.orafaq.com/node/21). Take a look at NLS FAQ (http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm).
Forum: Java 15 Days Ago
Replies: 1
Views: 217
Posted By adatapost
Use split() method of String.


.....
String []items=null;
boolean found=false;
while (!found && (text = reader.readLine()) != null)
...
Forum: Java 26 Days Ago
Replies: 2
Views: 527
Posted By adatapost
JavaOS (http://en.wikipedia.org/wiki/JavaOS) - JavaOS is an operating system with a Java virtual machine as a fundamental component. It is developed by Sun Microsystems. Unlike Windows, Mac OS, Unix...
Forum: Java 28 Days Ago
Replies: 2
Views: 260
Posted By adatapost
Create an instance of List to add an element,


TreeMap<String,String> map=new TreeMap<String,String>();
map.put("foo","foobar");

List<String> list=new ArrayList<String>();...
Forum: Java 32 Days Ago
Replies: 5
Solved: Blank JFrame
Views: 323
Posted By adatapost
Don't paint when value of x & y variable is zero.

public void paintComponent(Graphics g){
if(x>0 && y>0) {
g.drawString("X: " + x + ",Y: " + y + "",x,y);
g.drawString("Click #: " +...
Forum: Java 34 Days Ago
Replies: 18
Views: 565
Posted By adatapost
You could use HTML Parser (http://htmlparser.sourceforge.net/), which a Java library used to parse HTML in either a linear or nested fashion. It is an open source tool and can be found on...
Forum: Java Aug 31st, 2009
Replies: 3
Views: 346
Posted By adatapost
You need to set path not a classpath for javac (compiler) and java (launcher).

PATH=......;c:\Program Files\Java\Jdk1.7\Bin
Forum: Java Aug 9th, 2009
Replies: 16
Solved: ')' expected
Views: 545
Posted By adatapost
class Largest//finds largest value
{
public void findLargest(){
Scanner input = new Scanner(System.in);
int [] counter = new int [10];
int x;
...
Forum: Java Aug 3rd, 2009
Replies: 6
Views: 873
Posted By adatapost
Use setPreferredSize with Jscrollpane,

JScrollPane j1=new JScrollPane(chatArea);
JScrollPane j2=new JScrollPane(users);
j1.setPreferredSize(new Dimension(100,100));
j2.setPreferredSize(new...
Forum: Java Aug 1st, 2009
Replies: 7
Solved: j2me array
Views: 1,112
Posted By adatapost
Here is a link of a very good tutorial on J2ME - http://today.java.net/pub/a/today/2005/02/09/j2me1.html
Forum: Java Aug 1st, 2009
Replies: 7
Solved: j2me array
Views: 1,112
Posted By adatapost
Welcome nukabolhi,
Use code tags. Source code must be surrounded with code tags.
for example,


...


This way you can add items into form:
Forum: Java Jul 23rd, 2009
Replies: 2
Views: 225
Posted By adatapost
silliboy, a silly mistake.
Data member x and method test are instance memebers of class.

package javaapplication1;
public class Main {
public int x = 3; // Instance field
public int...
Forum: Java Jul 23rd, 2009
Replies: 7
Views: 375
Posted By adatapost
simplepritu,
You have to ask to sun micro system.
Forum: Java Jul 23rd, 2009
Replies: 1
Views: 291
Posted By adatapost
Read this article -http://www.theserverside.com/discussions/thread.tss?thread_id=34906
Forum: Java Jul 19th, 2009
Replies: 7
Solved: Palindrome
Views: 1,302
Posted By adatapost
Welcome Question???

You must have to read rule at daniweb,
1.Homework policy (http://www.daniweb.com/forums/announcement118-2.html)
2.How to post source code?...
Forum: Java Jul 18th, 2009
Replies: 8
Views: 627
Posted By adatapost
Yes private and instance.
Forum: Java Jul 18th, 2009
Replies: 7
Views: 374
Posted By adatapost
JAVA array is reference type.

I think following example help you to understand array argument and return type.

public class Arr{
public static int []getArr(int []ar) {
ar[0]++;
...
Forum: Java Jul 18th, 2009
Replies: 11
Views: 517
Posted By adatapost
It's a great book. I think 3rd and 4th are not free edition.
Forum: Java Jul 17th, 2009
Replies: 8
Views: 627
Posted By adatapost
Thanks BestJewSinceJC for valuable suggestion.
Do not use static modifier unless it is required. static modifier is used when we want to declare someting globally. In your program it is...
Forum: Java Jul 17th, 2009
Replies: 9
Views: 465
Posted By adatapost
BestJewSinceJC,
.class and a file (SummaryReport.rptdesign) must be in a same folder.
Forum: Java Jul 17th, 2009
Replies: 9
Views: 465
Posted By adatapost
>>But I guess I am going about creating a file connected to that resource wrong?

Nope.
Instances of File class may or may not denote an actual file-system object such as a file or a directory.
Forum: Java Jul 16th, 2009
Replies: 4
Views: 616
Posted By adatapost
applefat,
Post complete source code.
Forum: Java Jul 15th, 2009
Replies: 1
Views: 285
Posted By adatapost
GDICommander,
Read this http://mindprod.com/jgloss/remotefileaccess.html
Forum: Java Jul 15th, 2009
Replies: 19
Views: 493
Posted By adatapost
akulkarni,
Java Jagged array : array of array.

int a=4;
int m[][]=new int[a][];
for(int i=0;i<a;i++)
{
m[i]=new int[a-i];
...
Forum: Java Jul 11th, 2009
Replies: 23
Views: 906
Posted By adatapost
Thanks,

Mark this thread as "Solved" if you get solution.
Forum: Java Jul 11th, 2009
Replies: 23
Views: 906
Posted By adatapost
MonicaClare,
Don't post code again and again.
Compare the code posted at post #12 with your code.
Forum: Java Jul 11th, 2009
Replies: 23
Views: 906
Posted By adatapost
Here is error-free code. Did you wrote this code or copied?

import java.awt.Graphics;
import java.util.Random;
import javax.swing.*;

public class Change {
public static void main...
Forum: Java Jul 11th, 2009
Replies: 23
Views: 906
Posted By adatapost
MonicaClare,
Did you find any solution?
Forum: Java Jul 8th, 2009
Replies: 16
Views: 602
Posted By adatapost
It's my pleasure.

I am attaching zip with this post.
org.zip - original code - as per your post.
override.zip - some modification.
writeobject.zip - override writeObject method
xmlser.zip -...
Forum: Java Jul 8th, 2009
Replies: 16
Views: 602
Posted By adatapost
Hi JC,
I am bit confused while reading a following text.

This text is taken from Java documentation:


Another text from the java doc in my own words - for writeObject and readObject:
For...
Forum: Java Jul 7th, 2009
Replies: 7
Views: 530
Posted By adatapost
sincerelibran,
-d for dead
-d for drop
-d for duplicate
Do not write anything.
Forum: Java Jul 6th, 2009
Replies: 16
Views: 602
Posted By adatapost
Binary serialization not only store the state but it also preserve type fidelity. Classes - XMLEncoder, and XMLDecoder of package java.beans support xml serialization.
Forum: Java Jul 5th, 2009
Replies: 16
Views: 532
Posted By adatapost
If you want to change the size of any control use setPreferredSize() method.
Forum: Java Jul 5th, 2009
Replies: 16
Views: 532
Posted By adatapost
What is the current size of contentViever? Size of contentViever will be grows or shrink with frame.
Forum: Java Jul 5th, 2009
Replies: 7
Views: 530
Posted By adatapost
Thanks,

I have correct that.

See,

c:\xyz>javac AccountBalanace.java -d c:\pqr

.class files are copied at MyPack under c:\pqr folder.
Forum: Java Jul 5th, 2009
Replies: 16
Views: 532
Posted By adatapost
Use setJMenuBar method: It has a seperate layer.

setJMenuBar(menuBar);
Forum: Java Jul 5th, 2009
Replies: 3
Views: 401
Posted By adatapost
Use following code

String a="C:\\csnet";
Runtime.getRuntime().exec("cmd /c start "+a);
Forum: Java Jul 5th, 2009
Replies: 7
Views: 530
Posted By adatapost
If your program file has package statement then all these classes defined inside the file must be stored into package name folder.

Example in above post:


>javac AccountBalance.java -d .
...
Forum: Java Jul 5th, 2009
Replies: 16
Views: 532
Posted By adatapost
As per your post I did't find any ambiguity in your code. I have added JMenuBar and ContentView and some components into ContentView - There is no problem.

I am not sure about JEmailMenuBar class....
Forum: Java Jul 5th, 2009
Replies: 16
Views: 532
Posted By adatapost
Please post complete code with bb code tags.
Showing results 1 to 40 of 99

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC