Type: Posts; User: amitection

Page 1 of 2 1 2

Search: Search took 0.16 seconds.

  1. [SOLVED] Re: Combining JMenuItem and a KeyListener

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

    [SOLVED] Re: Syntax Highlighting in Editor

    Well I figured it out. The Main Reason it was not working was that i have removed the "\\W" used for comparison by Word
  3. [SOLVED] Re: Combining JMenuItem and a KeyListener

    I found the solution!!!

    Dont noe how it worked but it did :P

    private KeyListener k1 = new KeyAdapter()
    public void keyPressed(KeyEvent e)
  4. Replies

    [SOLVED] Syntax Highlighting in Editor

    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...
  5. [SOLVED] Combining JMenuItem and a KeyListener

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

    Re: API to Invoke the TERMINAL in UBUNTU

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

    Re: API to Invoke the TERMINAL in UBUNTU

    Sorry for the dumb question but m new to Ubuntu...
    How should i find out which terminal program i am using?
  8. Replies

    Re: API to Invoke the TERMINAL in UBUNTU

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

    API to Invoke the TERMINAL in UBUNTU

    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...
  10. [SOLVED] Re: JOptionPane with Multiple JTextFields

    Finally Found The Solution!!! :D

    Earlier it was..

    out = new BufferedWriter(fstream);
    String s = "Name: "+name+System.lineSeparator()+"Roll No: "+roll+System.lineSeparator()+
  11. Replies


    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...
  12. [SOLVED] Re: JOptionPane with Multiple JTextFields

    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...
  13. [SOLVED] JOptionPane with Multiple JTextFields

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

    Re: Contributing To Open Source

    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...
  15. Thread: Question

    by amitection

    Re: Question

    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()....
  16. Re: Need Some GUI Help With My Application

    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...
  17. Re: Need Some GUI Help With My Application

    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
  18. Need Some GUI Help With My Application

    Hello Friends,
    I am trying to make a simple application. I have attached an image of my application.
    Its not complete yet. I have also attached an image of the Garena Auto Joiner.2933

  19. Replies

    Re: Contributing To Open Source

    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...
  20. [SOLVED] Re: Java class Person: with friend_data.txt issue:

    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
  21. Re: Donno why its not being checked against the array seem to skipp to the follow on if statement 's" of just spinning

    Could you please Indent your code properly. Its very difficult to read your code & as Greg said about the description.
  22. Replies

    Re: Contributing To Open Source

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

    Contributing To Open Source

    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...
  24. Re: Help me to round off double, PLEASE JAVA MASTERS!!!

    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...
Results 1 to 24 of 26
Page 1 of 2 1 2