dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Totte_ch

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,440

    Image grayscale fading effect

    I want to make an normal image to gray scale. I use a PixelGrabber to get the RGB values.

    int[] pixels = new int[w*h];
    PixelGrabber pg = new PixelGrabber(img, 0,0, w,h, true);
    pg.grabPixels();...
  2. Thread: PNG quality

    by Totte_ch
    Replies
    0
    Views
    1,586

    PNG quality

    I need to download an image with Java. The URL is...
  3. Replies
    4
    Views
    5,082

    Sorry, but I really don't understand what you mean

    Sorry, but I really don't understand what you mean
  4. Replies
    4
    Views
    5,082

    What do you mean by using KeyEvent.VK_UP?

    What do you mean by using KeyEvent.VK_UP?
  5. Replies
    4
    Views
    5,082

    Robot can't hold SHIFT key?

    I'm writing a program to control another application. I need to press the keyboard combination: CTRL+SHIFT+DOWN, but the result of the following code is CTRL+DOWN.


    Robot robot = new Robot(); //...
  6. Replies
    1
    Views
    2,348

    Edit: I found the registry key that holds...

    Edit: I found the registry key that holds screensaver status
    HKEY_CURRENT_USER\Control Panel\Desktop\ScreenSaveActive

    But would be much more better with a workaround, if it is possible. Changing...
  7. Replies
    1
    Views
    2,348

    Java display colors

    new java.awt.Robot().getPixelColor(x,y); // returns the color of the pixel at (x,y)

    When screensaver is running, this function will return the color of the screensaver that time. Is there any way...
  8. Replies
    4
    Views
    919

    OK, thanks for the tips I'll have a look at that

    OK, thanks for the tips
    I'll have a look at that
  9. Replies
    4
    Views
    919

    I've tried to make it with divs, but that didn't...

    I've tried to make it with divs, but that didn't go very well...

    I'll make a try with unordered list later today
  10. Replies
    4
    Views
    919

    Menu with tables

    Hey

    I have a problem here. I'm trying to make a menu bar with tables, but the layout isn't the same in all browsers.

    You can view the preview page at: http://web.telia.com/~u54602881/navbar.htm...
  11. Replies
    0
    Views
    2,160

    KeyListener for a JComboBox

    Hi

    I wanted to add a keylistener to my JComboBox.
    I know that this doesn't work:

    jcombobox.addKeyListener(...);
    An I know this should work:
    ...
  12. Replies
    1
    Views
    2,556

    Loop to draw rectangle in a graph

    Here is one way to do it. (see attached file)
    It took a while, but I made it! Some thinking is good for the brain! ;P

    Output:


    y
    ^
    20 +
    |
  13. Replies
    0
    Views
    1,299

    Setting up a public ServerSocket

    Hey!

    I am trying to make a application, that will request data from my personal server. I want the application to open a socket to my public IP with port number 6789.

    String host = ""; // my...
  14. Replies
    0
    Views
    1,565

    Function stack overflow

    Hey!

    This post is quite long, but please read and try to help me. Thanks!

    I was trying to make a program that computes a combination to the following problem:

    The first possible combination...
  15. Replies
    2
    Views
    1,385

    Well... I fixed the problem by extracting the...

    Well...
    I fixed the problem by extracting the second .jar-file to a directory. Then I packed my File.jar by command:

    jar cmvf start.txt File.jar *.class dir
    The extra classes i need from...
  16. Replies
    3
    Views
    12,435

    To create a file: File file = new...

    To create a file:

    File file = new File("MyFile.txt");
    file.createNewFile();
    To get last modified date of file:

    Date date = new Date(file.lastModified());
    To set last modified date of file:
    ...
  17. Thread: Hai

    by Totte_ch
    Replies
    1
    Views
    1,006

    Java har better and easier language, but i think...

    Java har better and easier language, but i think C++ can do much more (for example used for hacking)...
  18. Replies
    2
    Views
    1,385

    [RESOLVED] .jar-file uses .jar-file

    Hey

    I have a program (.jar-file) that needs another .jar-file. I compile my File.java by:

    javac -cp .;JAR2.jar File.java
    ...and that works fine. I also pack my classes into a .jar-file:

    jar...
  19. Replies
    2
    Views
    1,469

    I finnaly made my own date chooser, JDateChooser....

    I finnaly made my own date chooser, JDateChooser. I just need to translate the labels to work in other contries...
    What contries does start the week with sunday?
  20. Replies
    5
    Views
    2,574

    But how do I create a connection? I've tried with...

    But how do I create a connection? I've tried with java.net.MulticastSocket:
    Computer 1 = 192.168.0.101
    Computer 2 = 192.168.0.102
    The result I got was "java.net.SocketException: Not a multicast...
  21. Replies
    5
    Views
    2,574

    P2P = Peer 2 Peer? IM = Instant Messaging? -...

    P2P = Peer 2 Peer? IM = Instant Messaging? - Right?

    Well, I mean a connection between two computers, a connection without a server, so the applications could "talk" by the network. I'm making a...
  22. Replies
    8
    Views
    57,605

    Many sites uses this to start a download (...

    Many sites uses this to start a download (<head> section):

    <meta http-equiv="Refresh" content="0;URL=http://whatever.com/file.zip">
    The number in the argument called content sets the seconds to...
  23. Replies
    4
    Views
    1,765

    Example of code

    <select onchange="javascript:changeStyle(this);">
    <option>Style 1</option>
    <option>Style 2</option>
    <option>Style 3</option>
    <option>Style 4</option>
    </select>

    <script>
    function...
  24. Replies
    1
    Views
    1,186

    Something like this would work: JLabel myImage...

    Something like this would work:

    JLabel myImage = new JLabel(new ImageIcon("someImage.jpg"));
    myImage.addMouseListener(new MouseAdapter(){
    public void mouseClicked(MouseEvent evt){
    ...
  25. Replies
    5
    Views
    2,574

    Local network connection

    Hey

    I read a book, years ago, about Java. One of the last chapters was about how to create connections and send/reveice messages between a computer and a server.

    Now I need to create a...
Results 1 to 25 of 123
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles