Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JFrame blink with JNA

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi everyone, here is my question!.
I'm trying to make a java chat from some big company blah blah, i have all the chat working great, the big problem is that when some one gets a new message i want the jframe to blink like msn,
Ok I now what you're going to say, why don't you use toFront() method it does the work for you etc,
I've allready done that, and yes it works, for some Windows distribution, yes i hear about jniwrapper, and i allready use it, and work great, but is a problem for the company to buy the license, and the boss is like no you do it... so i use JNA and i have done this:
Interface User32:


Class Flasher2.java


and the jframe trying to blink!



The result i get is:
User32$FLASHWINFO$PFLASHWINFO(allocated@0x8a60d8 (20 bytes))
{ int cbSize@0=1f4
WinNT$HANDLE hWnd@4=native@0xde0232
int dwFlags@8=3
int uCount@c=64
int dwTimeout@10=fa }
Rats! It failed!


PLEAASSEEEEE HELP!!
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not cross post into multiple forums. I'm locking this thread. The other one is at: https://coderanch.com/t/605292/GUI/java/JFrame-blink-JNA
 
    Bookmark Topic Watch Topic
  • New Topic