Search:

Type: Posts; User: lf2killer

Page 1 of 2 1 2

Search: Search took 0.25 seconds.

  1. Re: calling class in other class not working

    it is suppose to be a constructer call because I want to be able to use the entire array. but i have no idea how to make that call :S
  2. Re: calling class in other class not working

    so i should make it like this: when i call my method?

    UsernameArrayHolder username = new UsernameArrayHolder();
    PasswordArrayHolder password = new PasswordArrayHolder();...
  3. calling class in other class not working

    hi there :)
    i have this class here:


    public class UsernameArrayHolder {
    public String[] UsernameArrayHolder() { //need identifier
    ...
  4. Replies
    5
    Views
    676

    Re: Java simple login function not working

    don't i do that with

    login.addActionListener(new login());

    or is that just me that is wrong? because i can make it work if i take it out of the login method there then it works butn when i put...
  5. Replies
    5
    Views
    676

    Re: Java simple login function not working

    and what does that mean?
  6. Replies
    5
    Views
    676

    Java simple login function not working

    Hello there :)
    i have this simple login function where i compare what you write with what is in the array and if it is the same it will open a new window else nothing will happen but it doesn't seem...
  7. Replies
    4
    Views
    287

    [SOLVED] Re: Getting information from a other class

    i'm pretty sure i have done that
  8. Replies
    4
    Views
    287

    [SOLVED] Getting information from a other class

    Hello i'm trying to call my login class from my main to run the program, but i don't know what i'm doing wrong :/
    i get this error here:
    Bank.java:24: error: constructor testlogin in class...
  9. Replies
    4
    Views
    277

    Re: Action Center problem

    okay :)
    but how do i remove the frame from the code you gave me bacause I tried to cut it own, but the code wont work after that?
  10. Replies
    4
    Views
    277

    Re: Action Center problem

    Thanks for that :)
    but i have other objects which i change into when i press different buttons, would it be better if placed all them in my main and then called my method on how to do diffrent...
  11. Replies
    4
    Views
    277

    Action Center problem

    Hello i have this little program here, what i would like to happen is when i press the login button it makes that dialog dissapear and open a new frame. I can make that happen but i can't make the...
  12. Replies
    2
    Views
    298

    Re: Class in class

    i have my first method



    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;

    public class login implements ActionListener {
  13. Replies
    2
    Views
    298

    Class in class

    i have this code here:


    import java.io.*

    public class ReadLastLine {

    public static void main(String[] args) throws Exception {

    FileInputStream in = new FileInputStream("test.txt");
  14. Replies
    2
    Views
    249

    [SOLVED] Re: Out of scope problem

    ok thanks :) but what should i do it to run? make a new public class where i call this method?



    public class textAreaTest {
    public final JTextArea Center = new JTextArea(400, 500);
    public...
  15. Replies
    2
    Views
    249

    [SOLVED] Out of scope problem

    hello there i have a problem where my Center is out of scope of do i make it in scope? :)

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;


    public class...
  16. Replies
    3
    Views
    795

    Re: JTextArea display button

    Thanks for the reply now i have been trying to make sense of it with that but with no luck :s
    I have a Jframe and in that i have a JTextArea and two buttons and when i press one button it displays...
  17. Replies
    3
    Views
    795

    JTextArea display button

    Hello there :)
    i'm trying to make a button where i push that and it display what is in the text file on the JTextArea, but i can't not make it to work when i press the button i have no idea how to...
  18. Re: Saving login information into a text file in my GUI App

    when i tried what part?
  19. Re: Saving login information into a text file in my GUI App

    it don't need to be secure at all ^^ that is not my focus point at the moment now i just want a login system and be able to open you personal file ^^

    --- Update ---

    But i have onemore quiestion...
  20. Saving login information into a text file in my GUI App

    Hello there :)

    i have question i wonder if it possible.
    I have a simple GUI where i have a log-in system, but i want to know if it possible to keep the log-in information in a txt file. and when...
  21. Thread: Button help

    by lf2killer
    Replies
    2
    Views
    393

    Re: Button help

    Thanks alot :)
  22. Thread: Button help

    by lf2killer
    Replies
    2
    Views
    393

    Button help

    Hello

    i'm trying to make a simple program and when i press a button i open up a new window but how do i make the old one disappear?
    can't find out how i'm doing :S

    here is my code for the...
  23. Replies
    3
    Views
    460

    Re: need help finding code in javadoc

    ye okay :/ but isn't there a way to do it without arrays? :S
  24. Replies
    3
    Views
    460

    need help finding code in javadoc

    Hello there :)

    i have some names in a txt file that i put in jGrasp, then i want to make the names in alphabetically order in a other txt file.
    is there a command to do that? i have been looking...
  25. Replies
    6
    Views
    828

    [SOLVED] Re: Dice game need help

    Thanks but i got it to work late but if you wanted to know what i tired to create here is the code :)


    import java.util.*;
    public class dicegame11_0_gruppe_5 {
    public static void main...
Results 1 to 25 of 30
Page 1 of 2 1 2