Search:

Type: Posts; User: david1

Search: Search took 1.09 seconds.

  1. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    hahaha man I am beginner in java and your words big for me. However, my code right now is working and give me what I want except the value from the combo box.

    I want to ask you, what is the...
  2. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    thank you norm, I appreciate your help.

    I chose separate actionlistener for each button.

    The "Add Rectangle" button should draw a rectangle based on:

    - the x, y, width and height.
    - the...
  3. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    I have solved the problem and another problem appeared.

    How can I handle several ActionListener?
    there is a several buttons and each button has an action.
  4. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    thank you norm
    I appreciate your cooperation.
  5. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    here is the main() method



    package myframemain;

    public class MyFrameMain {

    public static void main(String[] args) {
  6. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    this is a Class.
    I invoked it at the main() method. this is no problem.

    I want to arrange the elements and if you see the attached screen shot, you will see:
    -label "oval" is over "X" label
    -I...
  7. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    as you can see, the elements not arranged well.
  8. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    package myframemain;
    import java.awt.*;
    import javax.swing.*;

    public class MyFrame extends JFrame {

    JLabel lblOval;
    JLabel lblX;
    JLabel lblY;
    JLabel lblWidth;
  9. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    thank you Norm,

    I want to build a three sub panel inside one JPanel and the JPanel be in the north.
    figure below will show you what I mean
    2908

    thank you again,
  10. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    in the question, he asked me to create three JPanel north, centre and south.
    how can I create sub panel inside the north JPanel.
  11. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    Re: GUI Exercise

    how to put the element, such as JButton, on a specific position?
  12. Replies
    3
    Views
    164

    Re: Writing Classes Exercises

    this exercise, one part is related to the previous one.
    I have answered the first three parts, and the rest are not clear for me.
  13. Thread: GUI Exercise

    by david1
    Replies
    22
    Views
    123

    GUI Exercise

    hello guys,

    I hop you are all well,

    I have an exercise in how to build GUI primitive, and I hop any can help with it.

    You are required to build a GUI interface MyFrameMain to be able to...
  14. Replies
    3
    Views
    164

    Writing Classes Exercises

    Hello guys,

    I hop you are all well,

    guys I need help in this exercises. Could any one help me with and understand it?

    Write the Java programs according to the following specifications
    ...
Results 1 to 14 of 14