This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Spark in Action and have Jean-Georges Perrin on-line!
See this thread for details.
Win a copy of Spark in Action this week in the Open Source Projects forum!

kumar mars

Ranch Hand
+ Follow
since Jun 04, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kumar mars

I have Done the Both
17 years ago
hai
I have a problrm with mouse events.
i have a JPanel. I added MouseInputAdapter and a MouseMotionListener to this panel.
The problem is whenever i click the mouse at two different points (considerably distanced) consecutively, instead of two MouseClicked events a MouseDragged event is getting generated.
I am using J2SDK1.3. Some boby pl tell me reason and remedy for this.
Anticipating an early reply
With Regards
Maruti
17 years ago
hai
I am sorry that was a wrong calculation.
Bit i am still unable to get answer for my secound doubt. can u please help me in that
With Thanks and regards
Maruti
18 years ago
Hai
I have two questions.
First one is
how much of memory each character in a Stribg Buffer takes on average. I found it to be 216 bytes. Is that true?
Secound one is
I have a class like this
class LNode
{
LNode right;
LNode left;
chat data;
}
The fields right and left are references. If i create an object of type LNode how much of memory
1. Does whole of the object takes?
2. How much of memory does the Reference field takes?
Anticipating an early reply
With Thanks and regards
Maruti
18 years ago
hai
I have a problem while inserting components in JTextPane
i first inserted text using insertString() function and then a JLabel using
insertComponent() function but the Label is appearing before the text.
This is the case with any of the component that is being added
The components are being added before the text
can someone tell me a solution by which the components appear in the order they
were added
Thanking you in anticipation
18 years ago
hai
i have a JTextPane. A JButton is inserted in the JTextPane using insertComponent() method.
i want the cursor to be changed to HAND_CURSOR when it is over the button.
i added a mouselistener to the button. In the listener i implemented the method mouseEntered(). In this method i used setCursor() to set the cursor but the cursor is not getting changed. someboby pl help
And is there is way of inserting an URL in JTextPane??
Thanks in anticipation
bye
18 years ago
The code is too long that i cant post
but the error coming at the pice of code that looks like
public class exframe extends JFrame
{
exframe()
{ // error coming at this line!!!
// some initializations
// a panel is added to the frame
}
....
..
i just hope it will give u faint idea
18 years ago
Hai
i am getting the following error when i run my program'
Unable to create a suitable default GraphicsConfiguration. Try changing your Display Settings
what made this error to occur
some time back it was running properly on same mechine
its an application involving JFrame
thanks in anticipation
bye
18 years ago
hai
I have a problem in adding components to JTextPane
i added two strings using insertString()
and then a textfield using insertComponent()
but the textfield is coming ahead of rhe strings
as the first component
is there any way to specify the location for the component so that it gets added to the JTextPane after the strings.
expecting an early reply
thanks
18 years ago
is there any linux version of swing plug-in
i have a web page with swing plug-in
it comes nicely on windows machines but on linux it giving problem
a message coming up saying u have to download plug-in
but on java site it says there is no support for linux
please help i am in dead need
thanks in anticipation
bye
18 years ago
it doesnt suffise setting cursor position in terms of index
i need some way to specify the position exactly in tersms of pixels or some thing of that kind
18 years ago
hai
is there any way to dictate the movement of the cursor in JTextArea.
thanks in anticipation
bye
18 years ago
hai
i have a web page with swing applet in it
the applet has a JTextArea which has to display the text.
Even if the size of the text is more than the size of text area the scroll bars are not coming up
should i set any paremeters to get the scroll bars
please help me
anticipating an early reply
bye
18 years ago
hai
i have a web page with an applet in it
the applet has some text that is in local language
i have to set the font for the text to be displayed properly.
i am using applets paint method to display the text,
i tried with g.setFont().
the font is getting recognised and the text is coming only in English font.
please help me out
i tried even with text area added to applet but no use
anticipating an early reply
bye
18 years ago