Suparn Gupta

Greenhorn
+ Follow
since Feb 26, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Suparn Gupta

Hello everyone,

I am working on a web application based on Rest service architecture using EJB n EclipseLink. We have 3 boxes. On first one Has the Ui, second one has api war files and the last box is a mysql server. They are all on separate server instances. On thE UI javascript is supposed to make calls to the API. My concern is since UI and API are on different server instances,will cross origin resource sharing cause any issue. I mean will the browser accept response from API box. Or is this irrelevant to my scenario?
I realize that my reluctance towards hand coding GUIs is the issue. I must get over it. Thanks for the help...
10 years ago
I apologize for not mentioning the version. I was talking about the version 2.1. Can you advice me, which technology is best for creating GUIs? I know its a vague ques as it ll depend on what kind of application I want to develop. But I wanna learn something from which I can create beautiful looking desktop applications eg. form fillers or some payroll management systems for desktops. I like FX but it feels restricted to work with it since we dont have much designer tools for it. Also the event handling and scripting part is kind of prohibitive for me. I find swings far more easy. But yet again, they look like old age windows. I am confused. There must be something that I am unaware of. Maybe you can tell me!!
10 years ago
Hi,

I recently started using JavaFX for a desktop application. I need to display a blinking text. It can be anywhere like as a label or in a textarea. I created the CSS and used -fx-text-decoration:blink. But it doesnt work? Can anybody help me to get around with this?
10 years ago
Hi,

I am sorry for not replying for so long. I was sick(Jaundice). Meanwhile, I started trying JavaFX2. The CSS option is so great. It feels like Iam designing a webpage...!
10 years ago
Yeah! You got me right. It was Swings. I ll check JavaFX2. But like we have photoshop and other such softwares that can create wonders. Does Java has external application support of such extent that we can incorporate GUI designs (not just images but frames etc too) built using these softwares and run Java in background?
10 years ago
Hi all!

Lately I was helping my cousin in her college project. It was some kind of automated testing engine with a GUI in Swing. A question crossed my mind:

Java is so powerful, for desktop apps too. But why arent the GUIs that good looking?

I mean looknfeel concept is nice but still it doesnt produce those cool looking GUIs. Is Java weak in this sense? Or are there other GUI languages etc that can be merged with java code in background!!
10 years ago
Hi Henry!

I too suspect that. I ll contact my lab admin and see what he has to say.
Yeah I have checked the java.net package. When I enumerate the network interfaces using getNetworkInferfaces() it doesnt show the nic whose cable is unplugged. Even if I use netsh tool and extract the ip addresses from the output of the command, it wont do my job. I must get a NetworkInterface object for every interface as I have to use it in further code.

Take your time :-)
Hi!
I have a system with three NIC each on different subnet. I am working on a code that wants me to get the ip address of all the interfaces even if no network cable is connected to them. I dont need the IP addresses of the disabled interfaces. Please help me. It kinda urgent!!
Thanks Marco!

I got it working. i am so Happy!!
Hi Marco,

Actually I am developing a java program that should send a broadcast packet out of all its interfaces to the other machines attached to it by using the subnet broadcst address for each interface. When those remote machines receive the packet, they return their IP address and some information related to them.

UPDATE: I have one more problem, when I try to get the broadcast address using interfaceAddress.getBroadcast(), it gives me 255.255.255.255. This should return the subnet broadcast address like 10.0.0.3 (subnet mask /30, network id 10.0.0.0, hosts are connected as 10.0.0.1, 10.0.0.2)
Hello all!
My machine has 3 network adapters. it is connected to other machines via all those three adapters. Each connection is a different subnet. So in total I have my machine connected to three subnets. Now I want to broadcast a UDP packet to other machines. When I do so, the broadcast packet goes only from one network interface instead of all the three. I know I can bind the specific network adapter address to a socket but I want only one socket to control the communication. How can I broadcast UDp packets through all the three interfaces using only one socket bound to a port say 5000?
Please help me!
Hi!

I am working on a program that shows a graph in terms of table of nodes and edges. It creates an adjacency matrix. Now I was wondering if there is any way by which I can plot the graph graphically. I understand that I can use AWT to create circles for nodes and connect them using lines(edges) by specifying the coordinates. I want something more. I want my nodes to be represented as Java objects (not mere shapes) so that I can handle events on them. Also, I want to design the nodes like the way we can do in photoshop or coreldraw. I don't know whether my query is relevant or not. Still, Is this possible.?
10 years ago
Hi! Thanks a ton! You are right! +1
I tried typing the input as fast as possible and its showing me the correct result. I ll use code tags next time for sure.
have a nice time!