Search:

Type: Posts; User: andbin

Page 1 of 18 1 2 3 4

Search: Search took 0.44 seconds; generated 27 minute(s) ago.

  1. Thread: frame issues

    by andbin
    Replies
    3
    Views
    128

    Re: frame issues

    Please, describe and/or show the code you have used. We can't know at this moment .... are you moving a component at absolute locations? are you using custom painting in an your component? are you...
  2. Re: I think one class is over riding the other one?

    The content pane of JFrame has, by default, a BorderLayout. A BorderLayout subdivides the space in only 5 areas and only one component can be shown in each area.

    Doing:
    frame.add(xyz);
    is...
  3. Replies
    3
    Views
    142

    Re: TCP Java Socket Server

    The main point: you are not overriding the run() of Thread. ;)

    But there is also other you should understand and improve ....
  4. Replies
    4
    Views
    80

    [SOLVED] Re: Printf not working?

    See the word "Argument". You are missing an argument. printf/format methods make use of the varargs feature since Java 5.

    printf("format string", arg1, arg2 .............. );

    In your case:
    ...
  5. Replies
    2
    Views
    75

    Re: Finding the binary of negative numbers

    First, at binary level, there is no "negative" or "positive". Binary is 0s and 1s. Stop.
    The knowledge of "negative" is given by a specific representation (on a word of N bits), that is mainly...
  6. Thread: Reference type

    by andbin
    Replies
    2
    Views
    135

    Re: Reference type

    Yes. Was this your question or doubt?
    setValue receives a copy of the reference to the Person object instantiated in main. This means that setValue cannot change the value of the 'p' variable in the...
  7. Replies
    5
    Views
    174

    [SOLVED] Re: Graphics2D Exception

    And (besides Norm answer) I add another important issue: the mouseClicked (or any other event handling method) is not the appropriate moment/location where you can make a draw (except situations...
  8. Re: java networking in wireless sensor network

    First, at programming level there is no difference between a cabled network and a wireless network. In other words, there isn't a code for cabled communication and a code for wireless communication....
  9. Thread: Calculator app

    by andbin
    Replies
    14
    Views
    475

    Re: Calculator app

    No, not necessarily. It's just only one possible option. And it's not even easy because a string like that must be parsed/interpreted. There are apposite libraries for this. If you want to do this...
  10. Replies
    2
    Views
    112

    Re: Desktop Notifications using JEE

    A web application is normally executed on a server machine and then the results (HTML plus other) are viewed/executed typically by a browser on the client machine.


    At server side, being on...
  11. Replies
    3
    Views
    110

    Re: Date and SimpleDateFormat Class

    The initialization to null is not really necessary in this case, because d1/d2 are assigned by format.parse before any use of these variables.


    The main concept behind Date class is that it...
  12. Thread: Calculator app

    by andbin
    Replies
    14
    Views
    475

    Re: Calculator app

    Your code is certainly a starting point. There are some things you can improve, for example instead to use java.awt.Frame, you can and should use javax.swing.JFrame (AWT is "old" nowadays). Another...
  13. Replies
    4
    Views
    152

    Re: Creating a cube applet

    As GregBrannon correctly pointed out, your are missing many things. Your code is not a standalone GUI application and not even an "applet". You need to write several things to create a minimal but...
  14. Re: Please help resolve warning re parameterized types / Jlist ListCellRenderer

    To avoid the warning, scrollingList must be:

    JList<Object> scrollingList = new JList<Object>();


    Speaking in general, it's not very good that the "value" is a JLabel. It should be a simple...
  15. Thread: Calculator app

    by andbin
    Replies
    14
    Views
    475

    Re: Calculator app

    Firstly, since you want both an applet and a standalone "desktop" application, you should have a single panel (e.g. JPanel) that contains all your user-interface. Then it will be absolutely...
  16. Re: Options for data retrival (conceptual non-specefic)

    It depends on what is that data and what is its usage .... ;)
    There is no clear answer without a well known context.
  17. Replies
    2
    Views
    124

    Re: New paint method? Please help?

    First, if you want to use the Full-Screen Exclusive Mode API, please, at least follow the official tutorial:
    Lesson: Full-Screen Exclusive Mode API (The Java™ Tutorials > Bonus)

    And second, your...
  18. Re: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/dbname

    You miss one thing: the registration of the driver. Please, see here MySQL :: MySQL Connector/J Developer Guide :: 6.1 Connecting to MySQL Using the JDBC DriverManager Interface
  19. Replies
    5
    Views
    1,119

    Re: wait() and notify()

    A good start is Lesson: Concurrency (The Java™ Tutorials > Essential Classes)

    Some more you can get from articles like Java 101: Understanding Java threads, Part 1: Introducing threads and...
  20. Thread: MouseEventDemo

    by andbin
    Replies
    5
    Views
    208

    [SOLVED] Re: MouseEventDemo

    How do you compile? From an IDE? Or manually with JDK tools from command prompt? If the latter, it may be a "classpath" problem. Do you know what is the classpath and how to set it? If not, see How...
  21. Replies
    5
    Views
    172

    Re: problem with invokeLater and repaint

    Several things are really bad. First, never do a loop like that in runGUI. Also and mainly because the yield() is only an "hint" (from javadoc: A hint to the scheduler that the current thread is...
  22. Replies
    7
    Views
    208

    [SOLVED] Re: Creating a jar File

    Eclipse has a "Fat Jar" plugin that can create a jar containing your classes/resources and all classes/resources from all dependencies.
    Technically it's possible to do this from command prompt but...
  23. Re: How to call Servlet from JSP Along with a parameter

    If you mean: call the Servlet and include its output into the JSP .... you can use the <jsp:include> standard action. (note: with JSTL there is <c:import> that also works).

    If you mean: call the...
  24. Replies
    2
    Views
    295

    Re: Eclipse vs JCreator

    Yes .... the same between a Mini car and a Porsche car. ;)
  25. Re: Client / Server connection not working except localhost

    If the client connects to "localhost" there are certainly (at 99,9%) no problems. And if your client/server works well in this situation you have done your job as programmer.
    If the client connects...
Results 1 to 25 of 445
Page 1 of 18 1 2 3 4