Main Class

We are going to create by AWT for encoding and decoding message in our Steganography system desktop application. For that first we create a MainClass from which We will open the Dashboard class where we will provide encode and decode actions to choose. MainClass.java

    
    import java.awt.Dimension;
    import java.awt.Toolkit;

    public class MainClass {
        public static int totalWinWidth,totalWinHeight,winWidth,winHeight;
        public static Dimension screenSize;
        
        
        public MainClass() {
            // TODO Auto-generated constructor stub			
            screenSize = Toolkit.getDefaultToolkit().getScreenSize();	
            totalWinWidth = screenSize.width;
            totalWinHeight = screenSize.height;	
            winWidth=totalWinWidth-totalWinWidth/20;
            winHeight=totalWinHeight-totalWinHeight/20;
            
            new Dashboard_Stegano(winWidth,winHeight);  	
        }

        public static void main(String[] args) {
            // TODO Auto-generated method stub
            new MainClass();
        }

    }
    

Programmer Mirta is for learning and training. Projects might be simple to improve learning. Projects are constantly reviewed to avoid errors, but we cannot assure full correctness of all content. While using Programmer Mitra, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 2021 by Programmer Mitra. All Rights Reserved.