Search:

Type: Posts; User: eyalfish

Page 1 of 2 1 2

Search: Search took 0.59 seconds.

  1. Re: Hi everybody,i have an issue regarding to inner classes

    How can i make this work inside the button.
    Can i make new instance inside the actionlistener?
    If so how?
  2. Re: Hi everybody,i have an issue regarding to inner classes

    package smallExample;

    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;

    import javax.swing.JButton;
    import javax.swing.JFrame;
    import...
  3. Re: Hi everybody,i have an issue regarding to inner classes

    Hi Norm,
    thank you for trying to helping me,i cannot add all my code because it seperated from the BL and GUI.

    however if you can guide me or help me about what i have asked ,that question is not...
  4. Re: Hi everybody,i have an issue regarding to inner classes

    public class MainPanel extends JPanel {
    private Hospital theHospital;

    private JLabel lblAllPatients;
    private JComboBox<Patient> cmbAllPatients;

    public MainPanel() {
    theHospital = new...
  5. Re: Hi everybody,i have an issue regarding to inner classes

    "no inclosing instance of the type MainPanel.PatientPanel is accessible in scoop ".
    but bottom line my question is how can i do this:
    MainPanel.PatientPanel.\\ features from patientPanel.

    if...
  6. Hi everybody,i have an issue regarding to inner classes

    Thanks for any advice people,
    This is my classes at my code:

    public class MainPanel extends JPanel {

    public MainPanel() {
    .
    .
    .}
    class PersonPanel extends JPanel {
  7. Replies
    5
    Views
    120

    Re: i have a small problem in GUI

    Thank you solved:-):-)
  8. Replies
    5
    Views
    120

    Re: i have a small problem in GUI

    its returns null.
    newText dosent get the String input
  9. Replies
    5
    Views
    120

    i have a small problem in GUI

    Hi there,
    i am new to GUI and i will very appreciate your help.
    i create a JTextField and a Buttom("ok").and i want to get the String of the text after i push the button.

    what did i do wrong?
    ...
  10. Replies
    2
    Views
    166

    I cannot find my problem

    Hi everyone,

    File ff=new File("Questions.txt");
    Scanner f=new Scanner(ff);
    PrintWriter pq=new PrintWriter(ff);

    while(f.hasNext()){
    f.nextLine();
    }
  11. Replies
    0
    Views
    46

    whats wrong with this code please?

    String hex="7D";
    System.out.println(hexToDecimal(hex));
    }
    public static int hexToDecimal(String hex){
    int sum=0;int k=0;
    for(int i=hex.length()-1;i>=0;i--,k++){
    char...
  12. Replies
    3
    Views
    81

    Re: any idea?StringBuilder

    great i understoond and it works well via for loops.
    what isnt it working with my recursion:

    public static void switchLetters(StringBuilder str,int indexBegin,int indexEnd){
    StringBuilder...
  13. Replies
    3
    Views
    81

    any idea?StringBuilder

    Hello everyone,
    how can i replace each letter for example "abcde" to "edcba" with StringBuilder only and without the reverse tool:)
    this is what i tried:

    StringBuilder str=new...
  14. my first recursion ,what did i do wrong?

    public static boolean q8(int n){
    boolean check=true;

    if((n/10)<0){
    return check;
    }
    int f=n%10;
    int r=(n/10)%10;
    if((f%2==0)&&(r%2==0)){
    return check=false;
  15. Re: problem with understanding this recursion

    Thanks! Btw i didnt write the code i ordered to analayzed it.the value is indeed 952
  16. problem with understanding this recursion

    public static boolean goo(int n){
    If(n<10){
    Return n;
    }
    Int k=goo((n/100)*10+(n%10));
    Return (k*10 +(n%100)/10);

    }

    I am still a beginner to rec concept.
  17. Replies
    5
    Views
    133

    Re: How to create a text file?

    sorry i didnt find anything to make this text come to specific directory
  18. Replies
    5
    Views
    133

    How to create a text file?

    Hi everyone,
    this is what i tried(i tried a few things hope you would understand):

    File f=new File("c:/FilePractice/text.txt");
    f.mkdirs();

    and it creates only the folder text.txt.
    i am...
  19. Replies
    2
    Views
    80

    [SOLVED] Re: I need an advice

    Thanks Norm i just mistaken by the value .didnt see it
    This tread can be close thank you very much:)
  20. Replies
    2
    Views
    80

    [SOLVED] I need an advice

    Hi everybody ,
    can you guide me please what am i missing?
    so i create a class called Lecturer ,this is part of the code(of the class)

    private String name;
    private int numOfTimesPenFalls;...
  21. Replies
    0
    Views
    55

    [SOLVED] Need a little help,easy task

    nvm i understood:]
  22. Replies
    3
    Views
    215

    Re: Hi everyone i need some advice

    For(int i=0,j=1;i<=4;i+=2,j+=2){
    for(int k=i;k<=i;k++)
    Syso..print("*");
    For(int k=j;k<=j;k++)
    Syso..print(" ");
    }

    this is what i got the first line:
    *blank*blank*
  23. Replies
    3
    Views
    215

    Hi everyone i need some advice

    Hi,
    i need to create this shape:
    *" "*" "*
    " "*" "*" "
    " "" "*" "" "

    using loops.can you guide me on how to deal with the blank and asterisks?
    its just dont work correctly for me

    thanks...
  24. Replies
    9
    Views
    231

    Re: Again i need some advice please

    yes for array of example like i show{1 1 1 2 2}

    to matrix like that: 1 1 1
    2 2


    i count the number of different number=2.that's the row number.
    but how...
  25. Replies
    9
    Views
    231

    Re: Again i need some advice please

    yes it is sorted.
    i need to make a matrix from this array -each row different number and the times the number occuered
    1.i need to check how many numbers are different to determine how many rows i...
Results 1 to 25 of 42
Page 1 of 2 1 2