ESP32 LoRaWAN Node using Arduino

To test out the recent addition in my lab that is the LoRa gateway, I needed one LoRa node also. LoRa modules are available to be used with Arduino as well as Raspberry Pi and are pretty cheap too. However, you can get complete LoRa module with ESP32 and OLED display at pretty low price from Banggood, and they fit the purpose. And by using these, you don’t need to jumble around jumpers. In this post, I have covered how to make a simple, cheap LoRa node that can send…

Read More

Making a Java Swing JFrame Transparent

programming

This is how you can create a transparent JFrame in JAVA. public class transparentJFrame { public static void main(String[] args) { new transparentJFrame(Date, Head, Detal); } public transparentJFrame(String Date, String Head, String Detal) { JFrame frame = new JFrame(); frame.setUndecorated(true); frame.setBackground(new Color(Color.black.getRed(), Color.black.getGreen(), Color.black.getBlue(), 1)); //Change value of ‘1’ above to have diff transparency ((JComponent) frame.getContentPane()).setBorder( BorderFactory.createMatteBorder(3, 2, 2, 2, Color.black)); frame.setBounds(100, 50, 500, 400); frame.getContentPane().setLayout(null); final JLabel lblX = new JLabel(“X”); lblX.setBounds(frame.getWidth() – 15, 5, 15, 15); lblX.setForeground(new Color(255, 255, 255)); lblX.setToolTipText(“Closern”); lblX.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent…

Read More