Sorry Sir, but no insults meant. I did read the link you gave me. But the issue with Find.setMnemonic(KeyEvent.VK_F); was that it was working only with ALT. I wanted the key to work with CNTRL. Thats...
Type: Posts; User: amitection
Sorry Sir, but no insults meant. I did read the link you gave me. But the issue with Find.setMnemonic(KeyEvent.VK_F); was that it was working only with ALT. I wanted the key to work with CNTRL. Thats...
Well I figured it out. The Main Reason it was not working was that i have removed the "\\W" used for comparison by Word
I found the solution!!!
Dont noe how it worked but it did :P
private KeyListener k1 = new KeyAdapter()
{
public void keyPressed(KeyEvent e)
{
Here is the original code I found on StackOverFlow. It highlights some specific words in a JTextPane.
import javax.swing.*;
import java.awt.*;
import javax.swing.text.*;
public class...
I have a JMenuItem "Find" in the Edit Menu.
I want to add a shortcut key to the JMenuItem.
For Find for example i want to use Ctrl + F
Here is my 'Action' for 'Find' which can be used via...
Thanks for the link.
But my friend figured out the solution.
To invoke the terminal in Ubuntu you needn't pass any special command 'cmd' in the getRuntime().exec() API like you have to do it in...
Sorry for the dumb question but m new to Ubuntu...
How should i find out which terminal program i am using?
Well i tried using the API you suggested. It works well.
But now there is a new problem!!!!
In windows all annotation for command prompt is cmd. So the word 'cmd' can be passed as a parameter. ...
I know i am posting it in the wrong forum. I was totally confused to post this question in which forum.
I am trying to build and IDE for NASM in Java for Ubuntu.
There are other IDE's for NASM...
Finally Found The Solution!!! :D
Earlier it was..
out = new BufferedWriter(fstream);
String s = "Name: "+name+System.lineSeparator()+"Roll No: "+roll+System.lineSeparator()+
"Batch:...
Well i am doing something similar with my code but there is an issue.
The link i am providing you contains some code.
The code creates a JOptionPane with multiple JTextFields and Outputs the...
When i check the data in the variable name by printing it to the console using System.out.println(name) i get the correct correct content.
For example if i enter NORM i get NORM in console but In...
Here's My code to create multiple JTextfields in a Single Option Pane.
My goal is simple.
Take some input from the user and then store it a TEXT File.
The code is simple enough so i dont think it...
Like you said that you have a tremendous amount of experience. Then it should not be difficult for you to understand the projects on GIT hub.
KevinWorkman has posted a link of one of his projects in...
Well u can have a look at this.
How to Use Password Fields (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
The JPasswordField has a method which is setEchoChar()....
Well I think JList is just the thing i need.
Thanks a Lot..!! :)
I am facing one more problem. As you can see in the image above I have 2 JPanels "ImportedFiles" & "Database". Whenever i try to...
I havent added the Buttons yet but i can do that on my own. I just wanted to know how create a list as show in the autojoiner in JPanel
Hello Friends,
I am trying to make a simple application. I have attached an image of my application.
2932
Its not complete yet. I have also attached an image of the Garena Auto Joiner.2933
As...
Well i don't know how to thank both of you. These answers have finally ended my turmoil. I was searching for how to and where to start contributing to open source for weeks and finally I think the...
Your Tester class main method must use an array or an ArrayList of Person objects. It must
be populated from a text data file, friends_data.txt. Add the following data to your text
file,
Michelle,...
Could you please Indent your code properly. Its very difficult to read your code & as Greg said about the description.
Hello Sir,
Well when i said that i don't understand a single line i literally dint mean it :P
All i wanted to say was i see folders inside folders and many files and god knows what those files are...
Hello Friends,
I am doing Java since 5 or 6 months, so i am basically a beginner in Java.
But i have done C/C++ for like 2 years.
I would really like to contribute to Open Source & to learn from...
What Cornix said is absolutely correct. I am no expert in Java. I just started java 4 or 5 months ago & i really liked this language. I dont know what you are trying to do with your code but casting...